LogEventsList Class Reference

List of all members.

Public Member Functions

 __construct ($skin, $out, $flags=0)
 showHeader ($type)
 Set page title and show header for this log type.
 showOptions ($type= '', $user= '', $page= '', $pattern= '', $year= '', $month= '', $filter=null, $tagFilter='')
 Show options for the log list.
 beginLogEventsList ()
 endLogEventsList ()
 logLine ($row)

Static Public Member Functions

static typeAction ($row, $type, $action, $right='')
static userCan ($row, $field)
 Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.
static isDeleted ($row, $field)
static showLogExtract ($out, $type='', $page='', $user='', $lim=0, $conds=array())
 Quick function to show a short log extract.
static getExcludeClause ($db, $audience= 'public')
 SQL clause to skip forbidden log types for this user.

Public Attributes

const NO_ACTION_LINK = 1
 $flags

Private Member Functions

 preCacheMessages ()
 As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.
 getFilterLinks ($logType, $filter)
 getDefaultQuery ()
 getTypeMenu ($queryType)
 getUserInput ($user)
 getTitleInput ($title)
 getTitlePattern ($pattern)
 getShowHideLinks ($row)

Private Attributes

 $skin
 $out


Detailed Description

Definition at line 20 of file LogEventsList.php.


Constructor & Destructor Documentation

LogEventsList::__construct ( skin,
out,
flags = 0 
)

Definition at line 27 of file LogEventsList.php.

References $flags, $out, $skin, out(), and preCacheMessages().


Member Function Documentation

LogEventsList::beginLogEventsList (  ) 

Definition at line 193 of file LogEventsList.php.

Referenced by wfSpecialLog().

LogEventsList::endLogEventsList (  ) 

LogEventsList::getDefaultQuery (  )  [private]

Definition at line 116 of file LogEventsList.php.

Referenced by getFilterLinks().

static LogEventsList::getExcludeClause ( db,
audience = 'public' 
) [static]

SQL clause to skip forbidden log types for this user.

Parameters:
$db Database
$audience string, public/user
Returns:
mixed (string or false)

Definition at line 463 of file LogEventsList.php.

References $db, $wgLogRestrictions, and $wgUser.

Referenced by WikiExporter::dumpFrom(), ApiQueryLogEvents::execute(), and LogPager::limitType().

LogEventsList::getFilterLinks ( logType,
filter 
) [private]

LogEventsList::getShowHideLinks ( row  )  [private]

Parameters:
$row Row
Returns:
string

Definition at line 362 of file LogEventsList.php.

References $del, $row, LogPage::DELETED_RESTRICTED, SpecialPage::getTitleFor(), and Xml::tags().

Referenced by logLine().

LogEventsList::getTitleInput ( title  )  [private]

Parameters:
$title String
Returns:
String: Formatted HTML

Definition at line 180 of file LogEventsList.php.

References $title, Xml::inputLabel(), and wfMsg().

Referenced by showOptions().

LogEventsList::getTitlePattern ( pattern  )  [private]

Returns:
boolean Checkbox

Definition at line 187 of file LogEventsList.php.

References Xml::checkLabel(), and wfMsg().

Referenced by showOptions().

LogEventsList::getTypeMenu ( queryType  )  [private]

Parameters:
$queryType String
Returns:
String: Formatted HTML

Definition at line 134 of file LogEventsList.php.

References $text, $type, $wgLogRestrictions, $wgUser, LogPage::logName(), Xml::option(), and LogPage::validTypes().

Referenced by showOptions().

LogEventsList::getUserInput ( user  )  [private]

Parameters:
$user String
Returns:
String: Formatted HTML

Definition at line 172 of file LogEventsList.php.

References $user, Xml::inputLabel(), and wfMsg().

Referenced by showOptions().

static LogEventsList::isDeleted ( row,
field 
) [static]

Parameters:
$row Row
$field Integer: one of DELETED_* bitfield constants
Returns:
Boolean

Definition at line 425 of file LogEventsList.php.

References $row.

Referenced by ApiQueryLogEvents::extractRowInfo(), and SpecialRevisionDelete::logLine().

LogEventsList::logLine ( row  ) 

LogEventsList::preCacheMessages (  )  [private]

As we use the same small set of messages in various methods and that they are called often, we call them once and save them in $this->message.

Definition at line 38 of file LogEventsList.php.

References $messages, $msg, and wfMsgExt().

Referenced by __construct().

LogEventsList::showHeader ( type  ) 

Set page title and show header for this log type.

Parameters:
$type String

Definition at line 54 of file LogEventsList.php.

References $type, LogPage::isLogType(), LogPage::logHeader(), LogPage::logName(), and out().

static LogEventsList::showLogExtract ( out,
type = '',
page = '',
user = '',
lim = 0,
conds = array() 
) [static]

LogEventsList::showOptions ( type = '',
user = '',
page = '',
pattern = '',
year = '',
month = '',
filter = null,
tagFilter = '' 
)

Show options for the log list.

Parameters:
$type String
$user String
$page String
$pattern String
$year Integer: year
$month Integer: month
$filter,: array
$tagFilter,: array?

Definition at line 72 of file LogEventsList.php.

References $action, $filter, $page, $title, $type, $user, $wgMiserMode, $wgScript, ChangeTags::buildTagFilterSelector(), Xml::dateMenu(), Xml::element(), getFilterLinks(), SpecialPage::getTitleFor(), getTitleInput(), getTitlePattern(), getTypeMenu(), getUserInput(), Xml::hidden(), out(), Xml::submitButton(), Xml::tags(), and wfMsg().

static LogEventsList::typeAction ( row,
type,
action,
right = '' 
) [static]

Parameters:
$row Row
$type Mixed: string/array
$action Mixed: string/array
$right string
Returns:
bool

Definition at line 387 of file LogEventsList.php.

References $action, $row, $type, and $wgUser.

static LogEventsList::userCan ( row,
field 
) [static]

Determine if the current user is allowed to view a particular field of this log row, if it's marked as deleted.

Parameters:
$row Row
$field Integer
Returns:
Boolean

Definition at line 407 of file LogEventsList.php.

References $row, $wgUser, LogPage::DELETED_RESTRICTED, and wfDebug().

Referenced by SpecialRevisionDelete::logLine(), RevisionDeleter::setEventVisibility(), and SpecialRevisionDelete::showLogItems().


Member Data Documentation

LogEventsList::$flags

Definition at line 25 of file LogEventsList.php.

Referenced by __construct().

LogEventsList::$out [private]

Definition at line 24 of file LogEventsList.php.

Referenced by __construct(), and showLogExtract().

LogEventsList::$skin [private]

Definition at line 23 of file LogEventsList.php.

Referenced by __construct().

Definition at line 21 of file LogEventsList.php.


The documentation for this class was generated from the following file:

Generated on Sat Sep 5 02:08:41 2009 for MediaWiki by  doxygen 1.5.9