/examples/couch/extend/AppZone.php
http://zoop.googlecode.com/ · PHP · 32 lines · 26 code · 4 blank · 2 comment · 1 complexity · 13b8dc7b1407b9dc369098a32ac05b0e MD5 · raw file
- <?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);
- }
- }