Interface for message objects used by MessageCollection.
More...
Interface for message objects used by MessageCollection.
Definition at line 14 of file Message.php.
◆ __construct()
TMessage::__construct |
( |
| $key, |
|
|
| $definition ) |
Creates new message object.
- Parameters
-
string | $key | Unique key identifying this message. |
string | $definition | The authoritave definition of this message. |
Definition at line 34 of file Message.php.
◆ addTag()
Add a tag for this message.
- Parameters
-
Definition at line 81 of file Message.php.
◆ appendProperty()
TMessage::appendProperty |
( |
| $key, |
|
|
| $value ) |
◆ definition()
string Message TMessage::definition |
( |
| ) |
|
Get the message definition.
- Returns
- string
Definition at line 51 of file Message.php.
◆ getProperty()
TMessage::getProperty |
( |
| $key | ) |
|
◆ getPropertyNames()
TMessage::getPropertyNames |
( |
| ) |
|
Get all the available property names.
- Returns
- array
- Since
- 2013-01-17
Reimplemented in ThinMessage.
Definition at line 122 of file Message.php.
◆ getTags()
Return all tags for this message;.
- Returns
- string[]
Definition at line 98 of file Message.php.
◆ hasTag()
Check if this message has a given tag.
- Parameters
-
- Returns
- bool
Definition at line 90 of file Message.php.
◆ infile()
Returns the committed translation.
- Returns
- ?string
Definition at line 73 of file Message.php.
◆ key()
string Message display TMessage::key |
( |
| ) |
|
Get the message key.
- Returns
- string
Definition at line 43 of file Message.php.
◆ setInfile()
TMessage::setInfile |
( |
| $text | ) |
|
Set the committed translation.
- Parameters
-
Definition at line 65 of file Message.php.
◆ setProperty()
TMessage::setProperty |
( |
| $key, |
|
|
| $value ) |
◆ translation()
string Committed in file TMessage::translation |
( |
| ) |
|
|
abstract |
◆ $definition
◆ $infile
◆ $key
◆ $props
◆ $reviewers
TMessage::$reviewers = [] |
|
protected |
◆ $tags
The documentation for this class was generated from the following file: