Property | Type | Description | |
---|---|---|---|
$database | SpoonDatabase | ||
$locale | |||
$types | array |
Method | Description | |
---|---|---|
__construct ( SpoonDatabase $database ) | ||
buildCache ( string $language, string $application ) |
Method | Description | |
---|---|---|
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 |
protected addSpoonLocale ( array &$json, string $language ) | ||
$json | array | |
$language | string |
public buildCache ( string $language, string $application ) | ||
$language | string | |
$application | string | Backend or Frontend |
protected dumpJsonCache ( string $language, string $application ) | ||
$language | string | |
$application | string |