Message object which is based on database result row. More...
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 |
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.
ThinMessage::getProperty | ( | $key | ) |
Reimplemented from TMessage.
Definition at line 169 of file Message.php.
ThinMessage::getPropertyNames | ( | ) |
Get all the available property names.
Reimplemented from TMessage.
Definition at line 180 of file Message.php.
ThinMessage::setRow | ( | $row | ) |
Set the database row this message is based on.
stdClass | $row | Database Result Row |
Definition at line 147 of file Message.php.
ThinMessage::setTranslation | ( | $text | ) |
Set the current translation of this message.
string | $text |
Definition at line 155 of file Message.php.
string Stored ThinMessage::translation | ( | ) |
|
staticprotected |
Definition at line 134 of file Message.php.
|
protected |
Definition at line 139 of file Message.php.
|
protected |
Definition at line 141 of file Message.php.