/framework/core/gui/GuiModule.php

http://zoop.googlecode.com/ · PHP · 27 lines · 22 code · 4 blank · 1 comment · 0 complexity · 4c55fbe2f28f37730f28afd8088ba026 MD5 · raw file

  1. <?php
  2. class GuiModule extends ZoopModule
  3. {
  4. static private $sConfig = null;
  5. protected function init()
  6. {
  7. $this->addClass('Gui');
  8. $this->depend('smarty');
  9. // $this->addInclude('utils.php');
  10. $this->addClass('GuiSmarty2');
  11. $this->addClass('GuiSmarty3');
  12. $this->hasConfig = true;
  13. }
  14. protected function configure()
  15. {
  16. self::$sConfig = $this->getConfig();
  17. $this->depend(self::$sConfig['driver']);
  18. }
  19. static public function sGetConfig()
  20. {
  21. return self::$sConfig;
  22. }
  23. }