예제 #1
0
파일: Base.php 프로젝트: no22/gongo
 public static function cfg($oCfg = null)
 {
     if (is_null($oCfg)) {
         return self::$cfg;
     }
     self::$cfg = $oCfg;
 }
예제 #2
0
파일: Router.php 프로젝트: no22/gongo
 public function __construct($options = array())
 {
     if (Gongo_App::$environment) {
         $options = $this->defaultValue($options, '-mountPoint', Gongo_App::$environment->path->mountPoint);
     }
     parent::__construct($options);
 }
예제 #3
0
파일: App.php 프로젝트: no22/gongo
 public function __construct($path = null, $options = array())
 {
     self::initializeApplication($this, $path);
     parent::__construct($options);
     $this->initializeSession();
     session_start();
     $this->initializeErrorHandler();
     $this->initializeExceptionHandler();
     $this->afterInit('url', $this->_afterInitUrl());
     self::cfg() && $this->afterInit('config', $this->_afterInitConfig());
 }
예제 #4
0
파일: Mapper.php 프로젝트: no22/gongo
 function __construct($options = array())
 {
     parent::__construct($options);
     $this->afterInit('mapper', $this->_afterInitMapper());
     $this->afterInit('db', $this->_afterInitDb());
 }
예제 #5
0
파일: View.php 프로젝트: no22/gongo
 public function __construct($aComponents = array())
 {
     parent::__construct($aComponents);
     $this->afterInit('context', $this->_initContext());
 }
예제 #6
0
파일: core.php 프로젝트: no22/gongo
 public function __construct($options = array())
 {
     $this->setPathObj();
     $options = $this->defaultValue($options, '-dirpath', Gongo_App::$environment->path->{$this->templateType}->templatePath);
     parent::__construct($options);
 }