Class Locale
- Alo\Traversables\ArrayObjimplementsIteratorAggregate,ArrayAccess,Countable
Alo\Locale
Methods summary
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
ThrowsAuthorOverrides |
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 array | #getAll( )Returns the fetched locale array Returns the fetched locale array Returnsarray
Author |
__get(),__set(),count(),getIterator(),offsetExists(),offsetGet(),offsetSet(),offsetUnset(),toArray()
Magic methods summary
Properties summary
public staticAlo\Locale | $this | #Static reference to the last instance of this class Static reference to the last instance of this class |
protected static array | $querySettings | |
protectedAlo\Db\AbstractDb | $db | #Reference to the database connection Reference to the database connection |
protected array | $raw | |
protected boolean | $firstFetchDone | #Whether the initial fetch has been done Whether the initial fetch has been done |
protected static array | $arrGlobal | |
$data