Mercurial > SimpleWebPresenter
comparison Options.inc @ 62:b7efe2ecbc11
Wrapped everything in inputParser in a class.
| author | Tom Fredrik "BFG" Klaussen <bfg@blenning.no> |
|---|---|
| date | Thu, 11 Oct 2012 18:21:59 +0200 |
| parents | c6d0892f81ff |
| children | 74f7b64bdb78 |
comparison
equal
deleted
inserted
replaced
| 61:13d899b748b7 | 62:b7efe2ecbc11 |
|---|---|
| 14 private $cache; | 14 private $cache; |
| 15 private $urlParams = array(); | 15 private $urlParams = array(); |
| 16 private $basePath; | 16 private $basePath; |
| 17 private $flagUrl; | 17 private $flagUrl; |
| 18 private $baseUrl; | 18 private $baseUrl; |
| 19 private $cacheable; | |
| 19 | 20 |
| 20 /** | 21 /** |
| 21 * Gets the default language | 22 * Gets the default language |
| 22 * | 23 * |
| 23 * @return two letter code for the language | 24 * @return two letter code for the language |
| 33 * @return two letter code for the language | 34 * @return two letter code for the language |
| 34 */ | 35 */ |
| 35 function getLang() | 36 function getLang() |
| 36 { | 37 { |
| 37 return $this->lang; | 38 return $this->lang; |
| 39 } | |
| 40 | |
| 41 function setCacheable($cacheable) | |
| 42 { | |
| 43 $this->cacheable = $cacheable; | |
| 44 } | |
| 45 | |
| 46 function getCacheable() | |
| 47 { | |
| 48 return $this->cacheable; | |
| 38 } | 49 } |
| 39 | 50 |
| 40 /** | 51 /** |
| 41 * Get the base url, or if non set, extracts it from _SERVER | 52 * Get the base url, or if non set, extracts it from _SERVER |
| 42 * | 53 * |
