/**
  * Object setter
  * @param string $a_name
  * @param mixed $a_value
  * @return mixed
  */
 public function __set($a_name, $a_value)
 {
     if (!$this->m_this) {
         parent::__set($a_name, $a_value);
     }
     $this->m_this->{$a_name} = $a_value;
 }
Exemple #2
0
 /**
  * Constructor
  */
 function __construct(ZObject &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent, $a_name);
     $this->m_models = array();
     $this->m_controllers = array();
     $this->m_library = array();
     $this->m_plugins = array();
 }
Exemple #3
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->m_models = array();
     $this->m_controllers = array();
     $this->m_library = array();
     $this->m_plugins = array();
 }
Exemple #4
0
 /**
  * Construct
  */
 public function __construct(ZObject &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent, $a_name);
     $this->m_rules = array();
     $this->m_request = new ZRoute();
     $this->m_redirect = new ZRoute();
     $this->m_current = new ZRoute();
     $this->m_request = null;
 }
Exemple #5
0
 /**
  * Model getter
  * @param string $a_name
  * @return mixed
  */
 public function __get($a_name)
 {
     switch ($a_name) {
         case 'controller':
             return $this->getController();
         case 'view':
             return $this->getController()->getView();
     }
     return parent::__get($a_name);
 }
Exemple #6
0
 /**
  * Constructor
  * @param ZController $a_controller
  * @param string $a_view
  */
 public function __construct($a_view = null, $a_data = null)
 {
     parent::__construct();
     $this->m_data = new ZRegistry();
     if ($a_view) {
         $this->setView($a_view);
     }
     if ($a_data) {
         $this->m_data->setDataRef($a_data);
     }
 }
Exemple #7
0
 public function __construct(ZObject &$parent = null, $a_name = null)
 {
     parent::__construct($parent, $a_name);
     $this->m_config = new ZConfig();
     $this->m_flag = array();
     $this->setLoader(new ZLoader($this));
     $this->setLanguage(new ZLanguage($this));
     $this->setRegistry(new ZRegistry());
     $this->setMode(ZApplication::MODE_NORMAL);
     $this->setDispatcher(Zoombi::getDispatcher($this));
     $this->setPluginManager(new ZPluginManager($this));
 }
 /**
  * Controller setter
  * @param mixed $a_name
  * @param mixed $a_value
  * @return mixed
  */
 public function __set($a_name, $a_value)
 {
     switch ($a_name) {
         case 'load':
         case 'registry':
         case 'language':
         case 'application':
             return;
     }
     parent::__set($a_name, $a_value);
 }
 /**
  * Constructor
  * @param ZObject $a_parent
  * @param string $a_name
  */
 public function __construct(ZObject &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent, $a_name);
     $this->m_listeners = array();
     $this->m_processor = array();
 }
 /**
  * Constructor
  * @param ZObject $a_parent
  * @param string $a_name
  */
 function __construct(ZObject &$a_parent = null, $a_name = null)
 {
     parent::__construct($a_parent, $a_name);
     $this->m_plugins = array();
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->m_config = new ZConfig();
     ZProfiler::start('Application');
     $this->m_errors = array();
     $this->m_except = array();
     $this->m_flag = array();
     $this->m_database = null;
     //$this->setLanguage( new ZLanguage() );
     $this->setRegistry(new ZRegistry());
     $this->setMode(ZApplication::MODE_NORMAL);
     $this->setRouter(new ZRouter());
     $this->setDispatcher(Zoombi::getDispatcher());
     $this->setPluginManager(new ZPluginManager());
 }
 public function __construct($a_type, $a_mime)
 {
     parent::__construct();
     $this->setType($a_type)->setMime($a_mime);
 }
 /**
  * Get property
  * @param string $a_property
  * @return mixed
  */
 public function __get($a_property)
 {
     if (isset($this->m_models[$a_property]) || array_key_exists($a_property, $this->m_models)) {
         return $this->m_models[$a_property];
     }
     return parent::__get($a_property);
 }
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->m_times = array();
     $this->m_mem = array();
 }
 public function hasProperty($a_name)
 {
     if (in_array($a_name, self::$m_reserved)) {
         return true;
     }
     return parent::hasProperty($a_name);
 }
Exemple #16
0
 /**
  * Contructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->m_path = null;
 }
Exemple #17
0
 /**
  * Router getter
  * @param string $a_name
  * @param mixed $a_value
  * @return mixed
  */
 public function __set($a_name, $a_value)
 {
     switch ($a_name) {
         case 'current':
             $this->setCurrent($a_value);
             return;
         case 'redirect':
             $this->setRedirect($a_value);
             return;
         case 'request':
             $this->setRequest($a_value);
             return;
         case 'forward':
             $this->setForward($a_value);
             return;
     }
     return parent::__set($a_name, $a_value);
 }