MediaWiki  REL1_20
InfoAction Class Reference
Inheritance diagram for InfoAction:
Collaboration diagram for InfoAction:

List of all members.

Public Member Functions

 getName ()
 Returns the name of the action this object responds to.
 onView ()
 Shows page information on GET request.
 requiresUnblock ()
 Whether this action can still be executed by a blocked user.
 requiresWrite ()
 Whether this action requires the wiki not to be locked.

Protected Member Functions

 addRow ($table, $name, $value)
 Adds a row to a table that will be added to the content.
 addTable ($content, $table)
 Adds a table to the content that will be added to the output.
 getContributors ()
 Get a list of contributors of $article.
 getDescription ()
 Returns the description that goes below the.
 getPageTitle ()
 Returns the name that goes in the.
 makeHeader ($header)
 Creates a header that can be added to the output.
 pageInfo ()
 Returns page information in an easily-manipulated format.

Static Protected Member Functions

static pageCounts ($title, $user)
 Returns page counts that would be too "expensive" to retrieve by normal means.

Detailed Description

Definition at line 25 of file InfoAction.php.


Member Function Documentation

InfoAction::addRow ( table,
name,
value 
) [protected]

Adds a row to a table that will be added to the content.

Parameters:
$tablestring The table that will be added to the content
$namestring The name of the row
$valuestring The value of the row
Returns:
string The table with the row added

Definition at line 141 of file InfoAction.php.

References $value, and Html\rawElement().

Referenced by onView().

InfoAction::addTable ( content,
table 
) [protected]

Adds a table to the content that will be added to the output.

Parameters:
$contentstring The content that will be added to the output
$tablestring The table
Returns:
string The content with the table added

Definition at line 155 of file InfoAction.php.

References Html\rawElement().

Referenced by onView().

InfoAction::getContributors ( ) [protected]

Get a list of contributors of $article.

Returns:
string: html

Definition at line 548 of file InfoAction.php.

References $count, Action\$page, $s, $user, Action\getLanguage(), SpecialPage\getTitleFor(), Linker\link(), and Action\msg().

InfoAction::getDescription ( ) [protected]

Returns the description that goes below the.

tag. string

Reimplemented from Action.

Definition at line 611 of file InfoAction.php.

Returns the name of the action this object responds to.

Returns:
string lowercase

Reimplemented from Action.

Definition at line 31 of file InfoAction.php.

InfoAction::getPageTitle ( ) [protected]

Returns the name that goes in the.

page title. string

Reimplemented from Action.

Definition at line 540 of file InfoAction.php.

References Action\getTitle(), and Action\msg().

InfoAction::makeHeader ( header) [protected]

Creates a header that can be added to the output.

Parameters:
$headerThe header text.
Returns:
string The HTML.

Definition at line 127 of file InfoAction.php.

References $wgParser, Html\element(), and Html\rawElement().

Referenced by onView().

Shows page information on GET request.

Returns:
string Page information that will be added to the output

Reimplemented from FormlessAction.

Definition at line 58 of file InfoAction.php.

References $value, addRow(), addTable(), Html\element(), Action\getContext(), makeHeader(), Action\msg(), pageInfo(), and wfRunHooks().

static InfoAction::pageCounts ( title,
user 
) [static, protected]

Returns page counts that would be too "expensive" to retrieve by normal means.

Parameters:
$titleTitle object
$userUser object
Returns:
array

Definition at line 425 of file InfoAction.php.

References $dbr, $result, $title, $user, $wgDisableCounters, MWNamespace\hasSubpages(), wfGetDB(), wfProfileIn(), and wfProfileOut().

Referenced by pageInfo().

InfoAction::pageInfo ( ) [protected]

Returns page information in an easily-manipulated format.

Array keys are used so extensions may add additional information in arbitrary positions. Array values are arrays with one element to be rendered as a header, arrays with two elements to be rendered as a table row.

Definition at line 165 of file InfoAction.php.

References $dbr, $magicWords, $property, $result, $title, $user, $value, $wgContLang, Html\element(), Linker\formatHiddenCategories(), Linker\formatTemplates(), MagicWord\getDoubleUnderscoreArray(), Action\getLanguage(), Action\getTitle(), SpecialPage\getTitleFor(), Action\getUser(), MWNamespace\hasSubpages(), Linker\link(), Linker\linkKnown(), Action\msg(), pageCounts(), Html\rawElement(), Linker\revUserTools(), and wfGetDB().

Referenced by onView().

Whether this action can still be executed by a blocked user.

Returns:
bool

Reimplemented from Action.

Definition at line 40 of file InfoAction.php.

Whether this action requires the wiki not to be locked.

Returns:
bool

Reimplemented from Action.

Definition at line 49 of file InfoAction.php.


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