'rev_user_text',
'rev_user',
'rev_minor_edit',
- 'rev_timestamp' ),
+ 'rev_timestamp',
+ 'rev_deleted' ),
$conditions,
'Revision::fetchRow' );
return $db->resultObject( $res );
$this->mUser = IntVal( $row->rev_user );
$this->mMinorEdit = IntVal( $row->rev_minor_edit );
$this->mTimestamp = $row->rev_timestamp;
+ $this->mDeleted = IntVal( $row->rev_deleted );
$this->mCurrent = ( $row->rev_id == $row->page_latest );
$this->mTitle = Title::makeTitle( $row->page_namespace,
$this->mUser = isset( $row['user'] ) ? IntVal( $row['user'] ) : $wgUser->getId();
$this->mMinorEdit = isset( $row['minor_edit'] ) ? IntVal( $row['minor_edit'] ) : 0;
$this->mTimestamp = isset( $row['timestamp'] ) ? StrVal( $row['timestamp'] ) : wfTimestamp( TS_MW );
+ $this->mDeleted = isset( $row['deleted'] ) ? IntVal( $row['deleted'] ) : 0;
$this->mText = isset( $row['text'] ) ? StrVal( $row['text'] ) : null;
$this->mTitle = null; # Load on demand if needed
return (bool)$this->mMinorEdit;
}
+ /**
+ * @return bool
+ */
+ function isDeleted() {
+ return (bool)$this->mDeleted;
+ }
+
/**
* @return string
*/
return false;
}
+ # Use external methods for external objects, text in table is URL-only then
+ if ( in_array( 'external', $flags ) ) {
+ $url=$text;
+ @list($proto,$path)=explode('://',$url,2);
+ if ($path=="") {
+ wfProfileOut( $fname );
+ return false;
+ }
+ require_once('ExternalStore.php');
+ $text=ExternalStore::fetchFromURL($url);
+ }
+
if( in_array( 'gzip', $flags ) ) {
# Deal with optional compression of archived pages.
# This can be done periodically via maintenance/compressOld.php, and
'rev_user' => $this->mUser,
'rev_user_text' => $this->mUserText,
'rev_timestamp' => $dbw->timestamp( $this->mTimestamp ),
+ 'rev_deleted' => $this->mDeleted,
), $fname
);
}
}
-?>
\ No newline at end of file
+?>