Text domain.

 Methods

__construct()

__construct() 

inherited_from ArrayObject::__construct()

append()

append() 

inherited_from ArrayObject::append()

asort()

asort() 

inherited_from ArrayObject::asort()

count()

count() 

inherited_from ArrayObject::count()

exchangeArray()

exchangeArray() 

inherited_from ArrayObject::exchangeArray()

getArrayCopy()

getArrayCopy() 

inherited_from ArrayObject::getArrayCopy()

Returns a shared default plural rule.

getDefaultPluralRule() : \Zend\I18n\Translator\Plural\Rule

getFlags()

getFlags() 

inherited_from ArrayObject::getFlags()

getIterator()

getIterator() 

inherited_from ArrayObject::getIterator()

getIteratorClass()

getIteratorClass() 

inherited_from ArrayObject::getIteratorClass()

Get the plural rule.

getPluralRule(bool $fallbackToDefaultRule) : \Zend\I18n\Translator\Plural\Rule | null

Parameters

$fallbackToDefaultRule

bool

Returns

Checks whether the text domain has a plural rule.

hasPluralRule() : bool

Returns

bool

ksort()

ksort() 

inherited_from ArrayObject::ksort()

Merge another text domain with the current one.

merge(\Zend\I18n\Translator\TextDomain $textDomain) : \Zend\I18n\Translator\TextDomain

The plural rule of both text domains must be compatible for a successful merge. We are only validating the number of plural forms though, as the same rule could be made up with different expression.

Parameters

Exceptions

\Zend\I18n\Exception\RuntimeException

Returns

natcasesort()

natcasesort() 

inherited_from ArrayObject::natcasesort()

natsort()

natsort() 

inherited_from ArrayObject::natsort()

offsetExists()

offsetExists() 

inherited_from ArrayObject::offsetExists()

offsetGet()

offsetGet() 

inherited_from ArrayObject::offsetGet()

offsetSet()

offsetSet() 

inherited_from ArrayObject::offsetSet()

offsetUnset()

offsetUnset() 

inherited_from ArrayObject::offsetUnset()

serialize()

serialize() 

inherited_from ArrayObject::serialize()

setFlags()

setFlags() 

inherited_from ArrayObject::setFlags()

setIteratorClass()

setIteratorClass() 

inherited_from ArrayObject::setIteratorClass()

Set the plural rule

setPluralRule(\Zend\I18n\Translator\Plural\Rule $rule) : \Zend\I18n\Translator\TextDomain

uasort()

uasort() 

inherited_from ArrayObject::uasort()

uksort()

uksort() 

inherited_from ArrayObject::uksort()

unserialize()

unserialize() 

inherited_from ArrayObject::unserialize()

 Properties

 

Default plural rule shared between instances.

$defaultPluralRule : \Zend\I18n\Translator\Plural\Rule

 

Plural rule.

$pluralRule : \Zend\I18n\Translator\Plural\Rule