MediaWiki  master
BlockLogFormatter Class Reference

This class formats block log entries. More...

Inheritance diagram for BlockLogFormatter:
Collaboration diagram for BlockLogFormatter:

Public Member Functions

 formatParametersForApi ()
 
 getActionLinks ()
 
 getPreloadTitles ()
 

Static Public Member Functions

static formatBlockFlag ($flag, $lang)
 Translate a block log flag if possible. More...
 
static formatBlockFlags ($flags, $lang)
 Convert a comma-delimited list of block log flags into a more readable (and translated) form. More...
 

Protected Member Functions

 extractParameters ()
 
 getMessageParameters ()
 
 getParametersForApi ()
 

Detailed Description

This class formats block log entries.

Since
1.25

Definition at line 30 of file BlockLogFormatter.php.

Member Function Documentation

BlockLogFormatter::extractParameters ( )
protected

Definition at line 70 of file BlockLogFormatter.php.

References $params.

static BlockLogFormatter::formatBlockFlag (   $flag,
  $lang 
)
static

Translate a block log flag if possible.

Parameters
int$flagFlag to translate
Language$langLanguage object to use
Returns
string

Definition at line 149 of file BlockLogFormatter.php.

References $lang, $messages, and wfMessage().

static BlockLogFormatter::formatBlockFlags (   $flags,
  $lang 
)
static

Convert a comma-delimited list of block log flags into a more readable (and translated) form.

Parameters
string$flagsFlags to format
Language$lang
Returns
string

Definition at line 126 of file BlockLogFormatter.php.

References $flags, $lang, and wfMessage().

BlockLogFormatter::formatParametersForApi ( )

Definition at line 217 of file BlockLogFormatter.php.

References $ret, and ApiResult\setIndexedTagName().

BlockLogFormatter::getActionLinks ( )
BlockLogFormatter::getMessageParameters ( )
protected
BlockLogFormatter::getParametersForApi ( )
protected

Definition at line 173 of file BlockLogFormatter.php.

References $params, as, TS_UNIX, wfIsInfinity(), and wfTimestamp().

BlockLogFormatter::getPreloadTitles ( )

Definition at line 83 of file BlockLogFormatter.php.

References $title.


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