PageRenderTime 4ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/stationary/basic/extend/AppZone.php

http://zoop.googlecode.com/
PHP | 32 lines | 26 code | 4 blank | 2 comment | 1 complexity | 13b8dc7b1407b9dc369098a32ac05b0e MD5 | raw file
Possible License(s): BSD-3-Clause, LGPL-2.1
  1. <?php
  2. class AppZone extends GuiZone
  3. {
  4. function chooseGui($guiType)
  5. {
  6. switch($guiType)
  7. {
  8. case 'main':
  9. $gui = new AppGui();
  10. break;
  11. default:
  12. trigger_error("unknown gui type: $guiType");
  13. break;
  14. }
  15. return $gui;
  16. }
  17. function closePages($p, $z)
  18. {
  19. if(!$this->displayed())
  20. $this->display($p[0]);
  21. }
  22. // there's probably a better way to do this. this is just to change the default for guiType
  23. // we could just make NULL mean 'main' in chooseGui above
  24. function display($templateName, $guiType = 'main')
  25. {
  26. parent::display($templateName, $guiType);
  27. }
  28. }