Documentation

I18nLanguage
in package

Table of Contents

Properties

$data  : mixed
$fileName  : mixed

Methods

__construct()  : mixed
appendData()  : mixed
comma()  : null|string
Gets the comma used by this language
dateFormat()  : null|string
Gets the PHP Date format for this Language
dateTimeFormat()  : null|string
Gets the PHP DateTime format for this language
flag()  : null|string
Gets the Country of the Language named english
fqn()  : null|string
Gets the Full qualified Name of the Language (FQN)
FromIniFile()  : I18nLanguage
Loads a Localization from an ini File
FromJsonFile()  : I18nLanguage
Loads a Localization from a Json File
FromXmlFile()  : I18nLanguage
Loads a Localization from a xml File
FromYamlFile()  : I18nLanguage
Loads a Localization from a Yaml File
getString()  : null|string
Gets a localization
isoName()  : null|string
Gets the iso name Id of the Language (ISO639)
name()  : null|string
Gets the Name of the language
regionName()  : null|string
Gets the region of the Language (ISO639)
stringExists()  : bool
Returns whether a localization exists for the path
thousandSeperator()  : null|string
Gets the Thousand Seperator used by this language
timeFormat()  : null|string
Gets the PHP Time format for this Language

Properties

Methods

__construct()

public __construct(mixed $data, mixed $fileName) : mixed
Parameters
$data : mixed
$fileName : mixed

appendData()

public appendData(mixed $data) : mixed
Parameters
$data : mixed

comma()

Gets the comma used by this language

public comma() : null|string
Return values
null|string

dateFormat()

Gets the PHP Date format for this Language

public dateFormat() : null|string
Return values
null|string

dateTimeFormat()

Gets the PHP DateTime format for this language

public dateTimeFormat() : null|string
Return values
null|string

flag()

Gets the Country of the Language named english

public flag() : null|string
Return values
null|string

fqn()

Gets the Full qualified Name of the Language (FQN)

public fqn() : null|string
Return values
null|string

FromIniFile()

Loads a Localization from an ini File

public static FromIniFile(mixed $fileName) : I18nLanguage
Parameters
$fileName : mixed

Filename to the Localization File

Return values
I18nLanguage

Language Document

FromJsonFile()

Loads a Localization from a Json File

public static FromJsonFile(mixed $fileName) : I18nLanguage
Parameters
$fileName : mixed

Filename to the Localization File

Return values
I18nLanguage

Language Document

FromXmlFile()

Loads a Localization from a xml File

public static FromXmlFile(mixed $fileName) : I18nLanguage
Parameters
$fileName : mixed

Filename to the Localization File

Return values
I18nLanguage

Language Document

FromYamlFile()

Loads a Localization from a Yaml File

public static FromYamlFile(mixed $fileName) : I18nLanguage
Parameters
$fileName : mixed

Filename to the Localization File

Tags
throws
ParseException

If the file could not be read or the YAML is not valid

Return values
I18nLanguage

Language Document

getString()

Gets a localization

public getString(mixed $path[, string $notExisting = "%1" ]) : null|string
Parameters
$path : mixed

Localization Path

$notExisting : string = "%1"

What to return if there's no localization for this path

Return values
null|string

isoName()

Gets the iso name Id of the Language (ISO639)

public isoName() : null|string
Return values
null|string

name()

Gets the Name of the language

public name() : null|string
Return values
null|string

regionName()

Gets the region of the Language (ISO639)

public regionName() : null|string
Return values
null|string

stringExists()

Returns whether a localization exists for the path

public stringExists(mixed $path) : bool
Parameters
$path : mixed

Localization PAth

Return values
bool

thousandSeperator()

Gets the Thousand Seperator used by this language

public thousandSeperator() : null|string
Return values
null|string

timeFormat()

Gets the PHP Time format for this Language

public timeFormat() : null|string
Return values
null|string

        
On this page

Search results