/apps/fitness/extend/AppZone.php

http://zoop.googlecode.com/ · PHP · 43 lines · 13 code · 3 blank · 27 comment · 1 complexity · 68f041e3e653fa7edeef53f636b3affd MD5 · raw file

  1. <?php
  2. class AppZone extends GuiZone
  3. {
  4. /*
  5. function chooseGui($guiType)
  6. {
  7. $guiVars = GuiGetAssigns();
  8. switch($guiType)
  9. {
  10. case 'main':
  11. $gui = new AppMainGui();
  12. break;
  13. default:
  14. trigger_error("unknown gui type: $guiType");
  15. break;
  16. }
  17. return $gui;
  18. }
  19. */
  20. function closePages($p, $z)
  21. {
  22. if(!$this->displayed())
  23. $this->display($p[0]);
  24. }
  25. function closePosts($p, $z)
  26. {
  27. Redirect(virtual_url);
  28. }
  29. // there's probably a better way to do this. this is just to change the default for guiType
  30. // we could just make NULL mean 'main' in chooseGui above
  31. /*
  32. function display($templateName, $guiType = 'main')
  33. {
  34. parent::display($templateName, $guiType);
  35. }
  36. */
  37. }