Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
ThinMessage Class Reference

Message object which is based on database result row. More...

Inheritance diagram for ThinMessage:
TMessage

Public Member Functions

 setRow ( $row)
 Set the database row this message is based on.
 
 setTranslation ( $text)
 Set the current translation of this message.
 
 translation ()
 @inheritDoc
 
 getProperty ( $key)
 
 getPropertyNames ()
 Get all the available property names.
 
- Public Member Functions inherited from TMessage
 __construct ( $key, $definition)
 Creates new message object.
 
 key ()
 Get the message key.
 
 definition ()
 Get the message definition.
 
 setInfile ( $text)
 Set the committed translation.
 
 infile ()
 Returns the committed translation.
 
 addTag ( $tag)
 Add a tag for this message.
 
 hasTag ( $tag)
 Check if this message has a given tag.
 
 getTags ()
 Return all tags for this message;.
 
 setProperty ( $key, $value)
 
 appendProperty ( $key, $value)
 

Protected Attributes

 $row
 
 $translation
 
- Protected Attributes inherited from TMessage
 $key
 
 $definition
 
 $infile
 
 $tags = []
 
 $props = []
 
 $reviewers = []
 

Static Protected Attributes

static $propertyMap
 

Detailed Description

Message object which is based on database result row.

Hence the name thin. Needs fields rev_user_text and those that are needed for loading revision text.

Definition at line 132 of file Message.php.

Member Function Documentation

◆ getProperty()

ThinMessage::getProperty ( $key)

Reimplemented from TMessage.

Definition at line 169 of file Message.php.

◆ getPropertyNames()

ThinMessage::getPropertyNames ( )

Get all the available property names.

Returns
array
Since
2013-01-17

Reimplemented from TMessage.

Definition at line 180 of file Message.php.

◆ setRow()

ThinMessage::setRow ( $row)

Set the database row this message is based on.

Parameters
stdClass$rowDatabase Result Row

Definition at line 147 of file Message.php.

◆ setTranslation()

ThinMessage::setTranslation ( $text)

Set the current translation of this message.

Parameters
string$text

Definition at line 155 of file Message.php.

◆ translation()

string Stored ThinMessage::translation ( )

@inheritDoc

Reimplemented from TMessage.

Definition at line 160 of file Message.php.

Member Data Documentation

◆ $propertyMap

ThinMessage::$propertyMap
staticprotected
Initial value:
= [
'last-translator-text' => 'rev_user_text',
'last-translator-id' => 'rev_user',
]

Definition at line 134 of file Message.php.

◆ $row

ThinMessage::$row
protected

Definition at line 139 of file Message.php.

◆ $translation

ThinMessage::$translation
protected

Definition at line 141 of file Message.php.


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