/stationary/basic/extend/AppZone.php
PHP | 32 lines | 26 code | 4 blank | 2 comment | 1 complexity | 13b8dc7b1407b9dc369098a32ac05b0e MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
- <?php
- class AppZone extends GuiZone
- {
- function chooseGui($guiType)
- {
- switch($guiType)
- {
- case 'main':
- $gui = new AppGui();
- break;
-
- default:
- trigger_error("unknown gui type: $guiType");
- break;
- }
-
- return $gui;
- }
-
- function closePages($p, $z)
- {
- if(!$this->displayed())
- $this->display($p[0]);
- }
-
- // there's probably a better way to do this. this is just to change the default for guiType
- // we could just make NULL mean 'main' in chooseGui above
- function display($templateName, $guiType = 'main')
- {
- parent::display($templateName, $guiType);
- }
- }