PHP 클래스 LocaleModel, vanilla

저자: Chris Pollett
상속: extends Model
파일 보기 프로젝트 열기: vanilla/vanilla 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_AvailableLocalePacks Locales in the system.

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
calculateLocaleInfo ( &$info )
getFileHeader ( )

메소드 상세

availableLocalePacks() 공개 메소드

public availableLocalePacks ( ) : array | null
리턴 array | null

availableLocales() 공개 메소드

public availableLocales ( ) : array
리턴 array

calculateLocaleInfo() 보호된 메소드

protected calculateLocaleInfo ( &$info )
$info

copyDefinitions() 공개 메소드

public copyDefinitions ( $SourcePath, $DestPath ) : mixed
$SourcePath
$DestPath
리턴 mixed

enabledLocalePacks() 공개 메소드

public enabledLocalePacks ( boolean $GetInfo = false ) : array
$GetInfo boolean
리턴 array

generateChanges() 공개 메소드

public generateChanges ( $Path, $BasePath, null $DestPath = null ) : null | string
$Path
$BasePath
$DestPath null
리턴 null | string

getFileHeader() 보호된 메소드

protected getFileHeader ( )

loadDefinitions() 공개 메소드

public loadDefinitions ( $Path, null $Skip = null ) : array
$Path
$Skip null
리턴 array

testLocale() 공개 메소드

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

writeDefinitions() 공개 정적인 메소드

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.

프로퍼티 상세

$_AvailableLocalePacks 보호되어 있는 프로퍼티

Locales in the system.
protected $_AvailableLocalePacks