Public Member Functions | |
| getDefaultLang () | |
| getLang () | |
| setCacheable ($cacheable) | |
| getCacheable () | |
| getBaseUrl () | |
| replacePlaceholders ($value) | |
| setBaseUrl ($baseUrl) | |
| setFlagUrl ($flagUrl) | |
| getFlagUrl () | |
| setLang ($lang) | |
| getBasePath () | |
| setBasePath ($basePath) | |
| setUrlParams ($urlParams) | |
| getUrlParams () | |
| setName ($name) | |
| getName () | |
| setCache ($cache) | |
| getCache () | |
| getAcceptedLanguages () | |
| getInputDefault ($key) | |
| __construct ($baseDocument) | |
Contains alle configurable parameters, and "globals"
| Options::__construct | ( | $baseDocument | ) |
Constructs an options object
This contstructor will consume any tag with the type option, and extract values from any tag with type input
| $baseDocument | An open xml file |
| Options::getAcceptedLanguages | ( | ) |
A list of languages which this configuration supports.
| Options::getBasePath | ( | ) |
Gets the path where the scripts are located
| Options::getBaseUrl | ( | ) |
Get the base url, or if non set, extracts it from _SERVER
| Options::getCache | ( | ) |
Gets the cache object
| Options::getCacheable | ( | ) |
Gets wether or not this page may be cached
| Options::getDefaultLang | ( | ) |
Gets the default language
| Options::getFlagUrl | ( | ) |
Gets the url for the flag script, or autogenerate if not set
| Options::getInputDefault | ( | $key | ) |
Gets the default value associated whith the key
| $key | as specified in master xml file. |
| Options::getLang | ( | ) |
Gets the selected language
| Options::getName | ( | ) |
Gets the name(identity) for this page
| Options::getUrlParams | ( | ) |
Gets the default language
| Options::replacePlaceholders | ( | $value | ) |
Replaces placeholder variables, with actual values.
Currently supported values:
| $value | string to replace values in |
| Options::setBasePath | ( | $basePath | ) |
Sets the path where the scripts are located
| $basePath | path where scripts are located |
| Options::setBaseUrl | ( | $baseUrl | ) |
Sets the base url where scripts are located
| $baseUrl | the url where scripts are located |
| Options::setCache | ( | $cache | ) |
Sets a cache object
| $cache | CacheTimeCheck object |
| Options::setCacheable | ( | $cacheable | ) |
Sets wether or not this page may be cached
| $cacheable | Cacheable |
| Options::setFlagUrl | ( | $flagUrl | ) |
Sets the url for the flag script
| $flagUrl | for flag script |
| Options::setLang | ( | $lang | ) |
Sets the selected language
| $lang | two letter code for the language |
| Options::setName | ( | $name | ) |
Sets the name(identity) for this page
| $name | name(identity) |
| Options::setUrlParams | ( | $urlParams | ) |
Sets a set of urlparameters
| $urlParams | list of parameters to get from the URL |
1.8.6