Public Member Functions | |
__construct ($messages) | |
Constructors. | |
filter ($type, $condition=true, $value=null) | |
Filters messages based on some condition. |
Definition at line 70 of file AndroidXmlFFSTest.php.
MockMessageCollection::__construct | ( | $ | code | ) |
Constructors.
Use newFromDefinitions() instead.
string | $code Language code. |
Reimplemented from MessageCollection.
Definition at line 71 of file AndroidXmlFFSTest.php.
MockMessageCollection::filter | ( | $ | type, | |
$ | condition = true , |
|||
$ | value = null | |||
) |
Filters messages based on some condition.
Some filters cause data to be loaded from the database. PAGEINFO: existence and fuzzy tags. TRANSLATIONS: translations for every message. It is recommended to first filter with messages that do not need those. It is recommended to add translations from file with addInfile, and it is needed for changed filter to work.
string | $type
| |
bool | $condition Whether to return messages which do not satisfy the given filter condition (true), or only which do (false). | |
mixed | $value Value for properties filtering. |
MWException | If given invalid filter name. |
Reimplemented from MessageCollection.
Definition at line 83 of file AndroidXmlFFSTest.php.