__construct() 공개 메소드

To carry out all the processing in Pico, call {@link Pico::run()}.
public __construct ( string $rootDir, string $configDir, string $pluginsDir, string $themesDir )
$rootDir string root directory of this Pico instance
$configDir string config directory of this Pico instance
$pluginsDir string plugins directory of this Pico instance
$themesDir string themes directory of this Pico instance
예제 #1
0
파일: Picowa.php 프로젝트: no22/PicowaCore
 public function __construct($options = array())
 {
     parent::__construct($options);
     $this->initializeSession();
     session_start();
     $this->initializeErrorHandler();
     $this->initializeExceptionHandler();
     $this->afterInit('url', $this->_afterInitUrl());
 }
예제 #2
0
파일: Picowa.php 프로젝트: no22/Picowa
 public function __construct($options = array())
 {
     parent::__construct();
     if (!isset($options['mountPoint'])) {
         $options['mountPoint'] = PICOWA_MOUNT_POINT;
     }
     $confs = isset($options['config']) ? $options['config'] : array();
     $this->attach('confs', array('PwConfig', $confs));
     $this->attach('options', array('PwArrayWrapper', $options));
     $this->attach('url', array('PwUrl', $options['mountPoint']));
     $this->initializeSession();
     session_start();
     Pico::cfg()->use_error_handler and set_error_handler(array($this, 'handleError'), 2);
 }
예제 #3
0
파일: test.php 프로젝트: TakamiChie/Pico
 public function __construct($rootDir, $configDir, $pluginsDir, $themesDir)
 {
     parent::__construct($rootDir, $configDir, $pluginsDir, $themesDir);
     $this->loadConfig();
 }