コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
ファイル: loader.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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();
 }
コード例 #3
0
ファイル: loader.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->m_models = array();
     $this->m_controllers = array();
     $this->m_library = array();
     $this->m_plugins = array();
 }
コード例 #4
0
ファイル: router.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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;
 }
コード例 #5
0
ファイル: model.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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);
 }
コード例 #6
0
ファイル: view.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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);
     }
 }
コード例 #7
0
ファイル: module.php プロジェクト: BGCX261/zoombi-svn-to-git
 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));
 }
コード例 #8
0
 /**
  * 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);
 }
コード例 #9
0
 /**
  * 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();
 }
コード例 #10
0
 /**
  * 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();
 }
コード例 #11
0
 /**
  * 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());
 }
コード例 #12
0
 public function __construct($a_type, $a_mime)
 {
     parent::__construct();
     $this->setType($a_type)->setMime($a_mime);
 }
コード例 #13
0
 /**
  * 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);
 }
コード例 #14
0
 /**
  * Constructor
  */
 function __construct()
 {
     parent::__construct();
     $this->m_times = array();
     $this->m_mem = array();
 }
コード例 #15
0
 public function hasProperty($a_name)
 {
     if (in_array($a_name, self::$m_reserved)) {
         return true;
     }
     return parent::hasProperty($a_name);
 }
コード例 #16
0
ファイル: log.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * Contructor
  */
 public function __construct()
 {
     parent::__construct();
     $this->m_path = null;
 }
コード例 #17
0
ファイル: router.php プロジェクト: BGCX261/zoombi-svn-to-git
 /**
  * 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);
 }