/**
* Basic setup and applies the limiting factors from the WebRequest object.
* @param WebRequest $request
- * @private
+ * @access private
*/
function setupQuery( $request ) {
$page = $this->db->tableName( 'page' );
/**
* Set the log reader to return only entries of the given type.
* @param string $type A log type ('upload', 'delete', etc)
- * @private
+ * @access private
*/
function limitType( $type ) {
if( empty( $type ) ) {
/**
* Set the log reader to return only entries by the given user.
* @param string $name (In)valid user name
- * @private
+ * @access private
*/
function limitUser( $name ) {
if ( $name == '' )
* Set the log reader to return only entries affecting the given page.
* (For the block and rights logs, this is a user page.)
* @param string $page Title name as text
- * @private
+ * @access private
*/
function limitTitle( $page ) {
$title = Title::newFromText( $page );
* Set the log reader to return only entries in a given time range.
* @param string $time Timestamp of one endpoint
* @param string $direction either ">=" or "<=" operators
- * @private
+ * @access private
*/
function limitTime( $time, $direction ) {
# Direction should be a comparison operator
/**
* Build an SQL query from all the set parameters.
* @return string the SQL query
- * @private
+ * @access private
*/
function getQuery() {
$logging = $this->db->tableName( "logging" );
* @return object database result set
*/
function getLogRows() {
- global $wgLinkCache;
$result = $this->reader->getRows();
$this->numResults = 0;
}
++$this->numResults;
}
- $batch->execute( $wgLinkCache );
+ $batch->execute();
return $result;
}
/**
* @param Object $s a single row from the result set
* @return string Formatted HTML list item
- * @private
+ * @access private
*/
function logLine( $s ) {
- global $wgLang, $wgLinkCache;
+ global $wgLang;
$title = Title::makeTitle( $s->log_namespace, $s->log_title );
$user = Title::makeTitleSafe( NS_USER, $s->user_name );
$time = $wgLang->timeanddate( wfTimestamp(TS_MW, $s->log_timestamp), true );
// Enter the existence or non-existence of this page into the link cache,
// for faster makeLinkObj() in LogPage::actionText()
+ $linkCache =& LinkCache::singleton();
if( $s->page_id ) {
- $wgLinkCache->addGoodLinkObj( $s->page_id, $title );
+ $linkCache->addGoodLinkObj( $s->page_id, $title );
} else {
- $wgLinkCache->addBadLinkObj( $title );
+ $linkCache->addBadLinkObj( $title );
}
$userLink = $this->skin->makeLinkObj( $user, htmlspecialchars( $s->user_name ) );
/**
* @param OutputPage &$out where to send output
- * @private
+ * @access private
*/
function showHeader( &$out ) {
$type = $this->reader->queryType();
/**
* @param OutputPage &$out where to send output
- * @private
+ * @access private
*/
function showOptions( &$out ) {
global $wgScript;
/**
* @return string Formatted HTML
- * @private
+ * @access private
*/
function getTypeMenu() {
$out = "<select name='type'>\n";
/**
* @return string Formatted HTML
- * @private
+ * @access private
*/
function getUserInput() {
$user = htmlspecialchars( $this->reader->queryUser() );
/**
* @return string Formatted HTML
- * @private
+ * @access private
*/
function getTitleInput() {
$title = htmlspecialchars( $this->reader->queryTitle() );
/**
* @param OutputPage &$out where to send output
- * @private
+ * @access private
*/
function showPrevNext( &$out ) {
global $wgContLang,$wgRequest;