/framework/core/gui/Gui.php
http://zoop.googlecode.com/ · PHP · 39 lines · 32 code · 7 blank · 0 comment · 1 complexity · db2c80963ac9ee05fc78865df0e9d8b4 MD5 · raw file
- <?php
- class Gui
- {
- private $driver;
-
- function __construct($driverName = null)
- {
- if(!$driverName)
- $driverName = Config::get('zoop.gui.driver');
-
- $className = 'Gui' . ucfirst($driverName);
- $this->driver = new $className();
- $this->init();
- }
-
- public function init()
- {
- }
-
- public function setLayout($layout)
- {
- $this->driver->setLayout($layout);
- }
-
- public function fetch($templateName)
- {
- return $this->driver->fetch($templateName);
- }
-
- public function display($templateName)
- {
- $this->driver->display($templateName);
- }
-
- public function assign($name, $value)
- {
- $this->driver->assign($name, $value);
- }
- }