/**
  * Constructor
  */
 public function __construct(ZObject &$parent = null, $a_name = null)
 {
     ZProfiler::start('Application');
     parent::__construct($parent, $a_name);
     $this->m_errors = array();
     $this->m_except = array();
     $this->m_database = null;
     $this->m_app_route_deep = 0;
 }
 /**
  * Constructor
  */
 public function __construct(ZObject &$parent = null, $a_name = null)
 {
     parent::__construct($parent, $a_name);
     ZProfiler::start('Application');
     $this->m_errors = array();
     $this->m_except = array();
     $this->m_database = null;
     $this->setRouter(new ZRouter());
 }
 /**
  * Constructor
  */
 public function __construct()
 {
     ZProfiler::start('Application');
     $this->setName(ZModule::DEFAULT_MODULE_NAME);
     $this->setBaseDir(Zoombi::getBootDir());
     $this->setConfig(Zoombi::fromFrameworkDir('config.php'));
     parent::__construct();
     $this->m_errors = array();
     $this->m_except = array();
     $this->m_database = null;
     $this->m_app_route_deep = 0;
     $this->m_route_transform = array();
 }
Example #4
0
 /**
  * Get how memmory load since start
  * @param string $a_name
  * @return float
  */
 public static function memmory($a_name)
 {
     $a_name = $a_name === null ? ZProfiler::DEFAULT_TIMER_NAME : $a_name;
     return memory_get_usage() - ZProfiler::getInstance()->m_mem[(string) $a_name];
 }
 /**
  * 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());
 }