RecentMessageGroup Class Reference
[Message group]

Inheritance diagram for RecentMessageGroup:
Inheritance graph
[legend]
Collaboration diagram for RecentMessageGroup:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 __construct ()
 These groups are always generated for one language.
 setLanguage ($code)
 getId ()
 getLabel (IContextSource $context=null)
 getDescription (IContextSource $context=null)
 Returns a longer description about the group.
 getDefinitions ()
 Fetch definitions from database.
 getChecker ()
 Returns a message checker object or null.
 getMessageContent (MessageHandle $handle)
 Subpage language code, if any in the title, is ignored.

Protected Member Functions

 getRCCutoff ()
 getQueryConditions ()
 Allows subclasses to partially customize the query.
 matchingMessage (MessageHandle $msg)
 Allows subclasses to filter out more unwanted messages.

Protected Attributes

 $namespace = false
 The namespace where all the messages of this group belong.
 $language

Detailed Description

Since:
2011-11-28

Definition at line 16 of file RecentMessageGroup.php.


Constructor & Destructor Documentation

RecentMessageGroup::__construct (  ) 

These groups are always generated for one language.

Method setLanguage must be called before calling getDefinitions.

Reimplemented from MessageGroupOld.

Definition at line 29 of file RecentMessageGroup.php.


Member Function Documentation

RecentMessageGroup::getChecker (  ) 

Returns a message checker object or null.

Todo:
Make an interface for message checkers.
Returns:
MessageChecker or null

Reimplemented from MessageGroupOld.

Definition at line 131 of file RecentMessageGroup.php.

RecentMessageGroup::getDefinitions (  ) 

Fetch definitions from database.

Returns:
array Array of messages keys with definitions.

Reimplemented from WikiMessageGroup.

Definition at line 88 of file RecentMessageGroup.php.

Here is the call graph for this function:

RecentMessageGroup::getDescription ( IContextSource $  context = null  ) 

Returns a longer description about the group.

Description can use wikitext. Parameter $context was added in 2012-10-22.

Parameters:
IContextSource $context Context can be used by subclasses to provide translated descriptions, for example.
Returns:
string

Reimplemented from MessageGroupOld.

Reimplemented in RecentAdditionsMessageGroup.

Definition at line 47 of file RecentMessageGroup.php.

Here is the call graph for this function:

RecentMessageGroup::getId (  ) 
Returns:
string

Reimplemented from MessageGroupOld.

Reimplemented in RecentAdditionsMessageGroup.

Definition at line 36 of file RecentMessageGroup.php.

RecentMessageGroup::getLabel ( IContextSource $  context = null  ) 
Parameters:
IContextSource $context
Returns:
string

Reimplemented from MessageGroupOld.

Reimplemented in RecentAdditionsMessageGroup.

Definition at line 40 of file RecentMessageGroup.php.

Here is the call graph for this function:

RecentMessageGroup::getMessageContent ( MessageHandle handle  ) 

Subpage language code, if any in the title, is ignored.

Definition at line 138 of file RecentMessageGroup.php.

Here is the call graph for this function:

RecentMessageGroup::getQueryConditions (  )  [protected]

Allows subclasses to partially customize the query.

Reimplemented in RecentAdditionsMessageGroup.

Definition at line 65 of file RecentMessageGroup.php.

Referenced by getDefinitions().

Here is the call graph for this function:

RecentMessageGroup::getRCCutoff (  )  [protected]
RecentMessageGroup::matchingMessage ( MessageHandle msg  )  [protected]

Allows subclasses to filter out more unwanted messages.

Parameters:
MessageHandle $msg
Returns:
boolean

Reimplemented in RecentAdditionsMessageGroup.

Definition at line 84 of file RecentMessageGroup.php.

Referenced by getDefinitions().

RecentMessageGroup::setLanguage ( code  ) 

Definition at line 32 of file RecentMessageGroup.php.


Member Data Documentation

RecentMessageGroup::$language [protected]

Definition at line 23 of file RecentMessageGroup.php.

RecentMessageGroup::$namespace = false [protected]

The namespace where all the messages of this group belong.

If the group has messages from multiple namespaces, set this to false and look how RecentMessageGroup implements the definitions.

Reimplemented from MessageGroupOld.

Definition at line 21 of file RecentMessageGroup.php.


The documentation for this class was generated from the following file:
Generated on Tue Oct 29 00:00:52 2013 for MediaWiki Translate Extension by  doxygen 1.6.3