|
| | __construct ( $msg, $code=null, array $data=null) |
| |
| | __construct ( $key, $params=[], Language $language=null) |
| |
| | __serialize () |
| |
| | __toString () |
| | Magic method implementation of the above (for PHP >= 5.2.0), so we can do, eg: $foo = new Message( $key ); $string = "<abbr>$foo</abbr>";.
|
| |
| | __unserialize ( $data) |
| |
| | bitrateParams (... $params) |
| | Add parameters that are bitrates and will be passed through Language::formatBitrate before substitution.
|
| |
| | content () |
| | Returns the message as a Content object.
|
| |
| | dateParams (... $params) |
| | Add parameters that are dates and will be passed through Language::date before substitution.
|
| |
| | dateTimeParams (... $params) |
| | Add parameters that are date-times and will be passed through Language::timeanddate before substitution.
|
| |
| | durationParams (... $params) |
| | Add parameters that are durations of time and will be passed through Language::formatDuration before substitution.
|
| |
| | escaped () |
| | Returns the message text.
|
| |
| | exists () |
| | Check whether a message key has been defined currently.
|
| |
| | expiryParams (... $params) |
| | Add parameters that are expiration times and will be passed through Language::formatExpiry before substitution.
|
| |
| | getKey () |
| | Returns the message key.
|
| |
| | getKeysToTry () |
| |
| | getLanguage () |
| | Returns the Language of the Message.
|
| |
| | getParams () |
| | Returns the message parameters.
|
| |
| | getTitle () |
| | Get a title object for a mediawiki message, where it can be found in the mediawiki namespace.
|
| |
| | inContentLanguage () |
| | Request the message in the wiki's content language, unless it is disabled for this message.
|
| |
| | inLanguage ( $lang) |
| | Request the message in any language that is supported.
|
| |
| | isBlank () |
| | Check whether a message does not exist, or is an empty string.
|
| |
| | isDisabled () |
| | Check whether a message does not exist, is an empty string, or is "-".
|
| |
| | isMultiKey () |
| |
| | numParams (... $params) |
| | Add parameters that are numeric and will be passed through Language::formatNum before substitution.
|
| |
| | objectParams (... $params) |
| | Add parameters that represent stringable objects.
|
| |
| | page (?PageReference $page) |
| | Set the page object to use as context when transforming the message.
|
| |
| | params (... $args) |
| | Adds parameters to the parameter list of this message.
|
| |
| | parse () |
| | Fully parse the text from wikitext to HTML.
|
| |
| | parseAsBlock () |
| | Returns the parsed message text which is always surrounded by a block element.
|
| |
| | plain () |
| | Returns the message text as-is, only parameters are substituted.
|
| |
| | plaintextParams (... $params) |
| | Add parameters that are plaintext and will be passed through without the content being evaluated.
|
| |
| | rawParams (... $params) |
| | Add parameters that are substituted after parsing or escaping.
|
| |
| | serialize () |
| |
| | setContext (IContextSource $context) |
| | Set the language and the title from a context object.
|
| |
| | setInterfaceMessageFlag ( $interface) |
| | Allows manipulating the interface message flag directly.
|
| |
| | sizeParams (... $params) |
| | Add parameters that are file sizes and will be passed through Language::formatSize before substitution.
|
| |
| | text () |
| | Returns the message text.
|
| |
| | timeParams (... $params) |
| | Add parameters that are times and will be passed through Language::time before substitution.
|
| |
| | timeperiodParams (... $params) |
| | Add parameters that are time periods and will be passed through Language::formatTimePeriod before substitution.
|
| |
| | title ( $title) |
| | Set the Title object to use as context when transforming the message.
|
| |
| | toString (string $format) |
| | Returns the message formatted a certain way.
|
| |
| | unserialize ( $serialized) |
| |
| | useDatabase ( $useDatabase) |
| | Enable or disable database use.
|
| |
| | userGroupParams (... $params) |
| | Add parameters that represent user groups.
|
| |
| | getApiCode () |
| | Returns a machine-readable code for use by the API.
|
| |
| | getApiData () |
| | Returns additional machine-readable data about the error condition.
|
| |
| | setApiCode ( $code, array $data=null) |
| | Sets the machine-readable code for use by the API.
|
| |
| | setApiData (array $data) |
| | Sets additional machine-readable data about the error condition.
|
| |
Extension of Message implementing IApiMessage.
- Stability: newable
- Since
- 1.25
Definition at line 27 of file ApiMessage.php.