PHP Class common\Locale

Inheritance: implements Serializabl\Serializable
Show file Open project: forkcms/forkcms

Protected Properties

Property Type Description
$locale string

Public Methods

Method Description
__toString ( )
equals ( Locale $locale )
fromString ( $locale ) : self
getLocale ( ) : string
serialize ( ) : string
unserialize ( string $locale ) : Locale

Protected Methods

Method Description
__construct ( string $locale )
getPossibleLanguages ( ) : array
setLocale ( string $locale ) : self

Method Details

__construct() protected method

protected __construct ( string $locale )
$locale string

__toString() public method

public __toString ( )

equals() public method

public equals ( Locale $locale )
$locale Locale

fromString() public static method

public static fromString ( $locale ) : self
$locale
return self

getLocale() public method

public getLocale ( ) : string
return string

getPossibleLanguages() abstract protected method

abstract protected getPossibleLanguages ( ) : array
return array

serialize() public method

public serialize ( ) : string
return string

setLocale() protected method

protected setLocale ( string $locale ) : self
$locale string
return self

unserialize() public method

public unserialize ( string $locale ) : Locale
$locale string
return Locale

Property Details

$locale protected property

protected string $locale
return string