data-mw-i18n information, used for internationalization.
More...
|
| getSpanInfo () |
| Get the I18nInfo associated to a span (which will be used to fill in the span content) or null, if non-existent.
|
|
| getAttributeInfo (string $name) |
| Get the I18nInfo that will be used to localize an element attribute value with the name $name or null, if non-existent.
|
|
| getAttributeNames () |
| Get the name of the localized attributes or an empty array if no localized attributes.
|
|
| setSpanInfo (I18nInfo $info) |
| Defines the internationalization parameters of a string contained in a span.
|
|
| setAttributeInfo (string $name, I18nInfo $info) |
| Defines the internationalization parameters of the $name attribute's value.
|
|
| jsonSerialize () |
|
data-mw-i18n information, used for internationalization.
This data is used to represent the information necessary for later localization of messages (in spans) or element attributes values.
◆ fromJson()
static Wikimedia\Parsoid\NodeData\DataI18n::fromJson |
( |
array | $json | ) |
|
|
static |
- Parameters
-
- Returns
- DataI18n
◆ getAttributeInfo()
Wikimedia\Parsoid\NodeData\DataI18n::getAttributeInfo |
( |
string | $name | ) |
|
Get the I18nInfo that will be used to localize an element attribute value with the name $name or null, if non-existent.
- Parameters
-
- Returns
- I18nInfo|null
◆ getAttributeNames()
Wikimedia\Parsoid\NodeData\DataI18n::getAttributeNames |
( |
| ) |
|
Get the name of the localized attributes or an empty array if no localized attributes.
- Returns
- array
◆ getSpanInfo()
Wikimedia\Parsoid\NodeData\DataI18n::getSpanInfo |
( |
| ) |
|
Get the I18nInfo associated to a span (which will be used to fill in the span content) or null, if non-existent.
- Returns
- I18nInfo|null
◆ setAttributeInfo()
Wikimedia\Parsoid\NodeData\DataI18n::setAttributeInfo |
( |
string | $name, |
|
|
I18nInfo | $info ) |
Defines the internationalization parameters of the $name attribute's value.
- Parameters
-
string | $name | |
I18nInfo | $info | |
- Returns
- void
◆ setSpanInfo()
Wikimedia\Parsoid\NodeData\DataI18n::setSpanInfo |
( |
I18nInfo | $info | ) |
|
Defines the internationalization parameters of a string contained in a span.
- Parameters
-
- Returns
- void
The documentation for this class was generated from the following file:
- src/NodeData/DataI18n.php