Interface LanguageProviderInterface
Interface LanguageProviderInterface
Methods summary
public
getIds( void )
: IdCollection
Returns the language IDs.
Returns the language IDs.
Returns
Throws
UnexpectedValueException
If no ID has been found.
InvalidArgumentException
If ID is not valid.
public
getCodes( void )
: KeyValueCollection
Returns the language codes.
Returns the language codes.
Returns
Throws
UnexpectedValueException
If no code has been found.
InvalidArgumentException
If code is not valid.
public
getCodeById( IdType $id )
: LanguageCode
Returns the language code from a specific language, selected by the language ID.
Returns the language code from a specific language, selected by the language ID.
Parameters
Returns
Throws
UnexpectedValueException
If no code has been found.
InvalidArgumentException
If code is not valid.
public
getDirectoryById( IdType $id )
: string
Returns the directory from the a specific language, selected by the language ID.
Returns the directory from the a specific language, selected by the language ID.
Parameters
Returns
string
Throws
UnexpectedValueException
If no directory has been found.
InvalidArgumentException
If code is not valid.
public
getCharsetById( IdType $id )
: string
Returns the charset from the a specific language, selected by the language ID.
Returns the charset from the a specific language, selected by the language ID.
Parameters
Returns
string
Throws
UnexpectedValueException
If no charset has been found.
public
getIdByCode( LanguageCode $code )
: integer
Returns the ID from the a specific language, selected by the language code.
Returns the ID from the a specific language, selected by the language code.
Parameters
Returns
integer
Throws
UnexpectedValueException
If no ID has been found.
public
getDirectoryByCode( LanguageCode $code )
: string
Returns the directory from the a specific language, selected by the language code.
Returns the directory from the a specific language, selected by the language code.
Parameters
Returns
string
Throws
UnexpectedValueException
If no directory has been found.
public
getCharsetByCode( LanguageCode $code )
: string
Returns the charset from the a specific language, selected by the language code.
Returns the charset from the a specific language, selected by the language code.
Parameters
Returns
string
Throws
UnexpectedValueException
If no directory has been found.
public
getActiveCodes( void )
: KeyValueCollection
Returns the active language codes.
Returns the active language codes.
Returns
Throws
InvalidArgumentException
If code is not valid.
public
getIconFilenameByCode( LanguageCode $code )
: string
Returns the icon for a specific language by a given language code.
Returns the icon for a specific language by a given language code.
Parameters
$code
- The given language code
Returns
string
Throws
UnexpectedValueException
If no icon has been found.
public
getDefaultLanguageCode( void )
: string
Returns the default language code.
Returns the default language code.
Returns
string
Throws
InvalidArgumentException
If no default code exists.
public
getDefaultLanguageId( void )
: integer
Returns the default language ID.
Returns the default language ID.
Returns
integer
Throws
InvalidArgumentException
If no default code exists.