PHP Class LocaleModel, vanilla

Author: Chris Pollett
Inheritance: extends Model
Afficher le fichier Open project: vanilla/vanilla Class Usage Examples

Protected Properties

Свойство Type Description
$_AvailableLocalePacks Locales in the system.

Méthodes publiques

Méthode Description
availableLocalePacks ( ) : array | null
availableLocales ( ) : array
copyDefinitions ( $SourcePath, $DestPath ) : mixed
enabledLocalePacks ( boolean $GetInfo = false ) : array
generateChanges ( $Path, $BasePath, null $DestPath = null ) : null | string
loadDefinitions ( $Path, null $Skip = null ) : array
testLocale ( string $LocaleKey ) Temporarily enable a locale pack without installing it/
writeDefinitions ( resource $fp, array $Definitions ) Write a locale's definitions to a file.

Méthodes protégées

Méthode Description
calculateLocaleInfo ( &$info )
getFileHeader ( )

Method Details

availableLocalePacks() public méthode

public availableLocalePacks ( ) : array | null
Résultat array | null

availableLocales() public méthode

public availableLocales ( ) : array
Résultat array

calculateLocaleInfo() protected méthode

protected calculateLocaleInfo ( &$info )
$info

copyDefinitions() public méthode

public copyDefinitions ( $SourcePath, $DestPath ) : mixed
$SourcePath
$DestPath
Résultat mixed

enabledLocalePacks() public méthode

public enabledLocalePacks ( boolean $GetInfo = false ) : array
$GetInfo boolean
Résultat array

generateChanges() public méthode

public generateChanges ( $Path, $BasePath, null $DestPath = null ) : null | string
$Path
$BasePath
$DestPath null
Résultat null | string

getFileHeader() protected méthode

protected getFileHeader ( )

loadDefinitions() public méthode

public loadDefinitions ( $Path, null $Skip = null ) : array
$Path
$Skip null
Résultat array

testLocale() public méthode

Temporarily enable a locale pack without installing it/
public testLocale ( string $LocaleKey )
$LocaleKey string The key of the folder.

writeDefinitions() public static méthode

Write a locale's definitions to a file.
public static writeDefinitions ( resource $fp, array $Definitions )
$fp resource The file to write to.
$Definitions array The definitions to write.

Property Details

$_AvailableLocalePacks protected_oe property

Locales in the system.
protected $_AvailableLocalePacks