PHP 클래스 Backend\Modules\Locale\Engine\CacheBuilder

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$database SpoonDatabase
$locale
$types array

공개 메소드들

메소드 설명
__construct ( SpoonDatabase $database )
buildCache ( string $language, string $application )

보호된 메소드들

메소드 설명
addSpoonLocale ( array &$json, string $language ) Adds months and days from spoonLocale to the json
buildJsonCache ( string $language, string $application ) : array Builds the array that will be put in cache
dumpJsonCache ( string $language, string $application ) dumps the locale in cache as a json object
getLocale ( string $language, string $application ) : array Fetches locale for a certain language application combo

메소드 상세

__construct() 공개 메소드

public __construct ( SpoonDatabase $database )
$database SpoonDatabase

addSpoonLocale() 보호된 메소드

Adds months and days from spoonLocale to the json
protected addSpoonLocale ( array &$json, string $language )
$json array
$language string

buildCache() 공개 메소드

public buildCache ( string $language, string $application )
$language string
$application string Backend or Frontend

buildJsonCache() 보호된 메소드

Builds the array that will be put in cache
protected buildJsonCache ( string $language, string $application ) : array
$language string
$application string
리턴 array

dumpJsonCache() 보호된 메소드

dumps the locale in cache as a json object
protected dumpJsonCache ( string $language, string $application )
$language string
$application string

getLocale() 보호된 메소드

Fetches locale for a certain language application combo
protected getLocale ( string $language, string $application ) : array
$language string
$application string
리턴 array

프로퍼티 상세

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

protected SpoonDatabase $database
리턴 SpoonDatabase

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

protected $locale

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

protected array $types
리턴 array