public | #__construct(Alo\Db\AbstractDb & $db=null) Instantiates the Locale handler Instantiates the Locale handler Parameters- $db
Alo\Db\AbstractDb
$db If not using Alo::$db you can supply the reference to the database connection here
ThrowsAuthor |
public staticAlo\Locale | #locale(Alo\Db\AbstractDb & $db=null) Instantiates the Locale handler Instantiates the Locale handler Parameters- $db
Alo\Db\AbstractDb
$db If not using Alo::$db you can supply the reference to the database connection here
ReturnsThrowsAuthor |
publicAlo\Locale | #fetch(array$pages=null,string$primaryLocale=null,string$secondaryLocale=null) Performs a locale fetch Parameters- $pages
array $pages Pages to fetch.- $primaryLocale
string $primaryLocale The main locale - will be used as a fallback if a string is unavailable for the secondary locale- $secondaryLocale
string $secondaryLocale If you're fetching for the secondary locale, input it here.
ReturnsAuthor |
protected | #fetchTwo(array$pages,string$primaryLocale,string$secondaryLocale) Fetches a raw dual-locale resultset (primary being a fallback) Fetches a raw dual-locale resultset (primary being a fallback) Parameters- $pages
array $pages Pages to fetch- $primaryLocale
string $primaryLocale The primary locale- $secondaryLocale
string $secondaryLocale The secondary locale
Author |
protected | #fetchOne(array$pages,string$locale) Fetches a raw single-locale resultset Fetches a raw single-locale resultset Parameters- $pages
array $pages pages to fetch- $locale
string $locale Locale to fetch
Author |
protectedAlo\Locale | |
public string|null | #__get(string$key) Returns a localised string Returns a localised string Parameters- $key
string $key String key
Returnsstring|null
Author |
public array | #getAll( ) Returns the fetched locale array Returns the fetched locale array Returnsarray
Author |