예제 #1
0
 /**
  * Initialize instance
  *
  * @param Charcoal_Config $config   configuration data
  */
 public function configure($config)
 {
     parent::configure($config);
     $this->_task_manager = $config->getString('task_manager', '');
     $this->_forward_target = $config->getString('forward_target', '');
     $this->_modules = $config->getArray('modules', array());
     $this->_events = $config->getArray('events', array());
     $this->_debug_mode = $config->getBoolean('debug_mode', FALSE);
     // eventsに記載しているイベントのモジュールも読み込む
     if ($this->_events) {
         foreach ($this->_events as $event) {
             $pos = strpos($event, "@");
             if ($pos !== FALSE) {
                 $module_name = substr($event, $pos);
                 $this->_modules[] = $module_name;
             }
         }
     }
     if ($this->getSandbox()->isDebug()) {
         log_info("system,config", "task_manager:" . $this->_task_manager);
         log_info("system,config", "forward_target:" . $this->_forward_target);
         log_info("system,config", "modules:" . $this->_modules);
         log_info("system,config", "events:" . $this->_events);
         log_info("system,config", "_debug_mod:" . $this->_debug_mode);
     }
 }
예제 #2
0
 /**
  * Initialize instance
  *
  * @param Charcoal_Config $config   configuration data
  */
 public function configure($config)
 {
     parent::configure($config);
     $this->use_session = $config->getBoolean('use_session', TRUE);
     $this->sequence = $config->getString('sequence', '');
     $layout_manager = $config->getString('layout_manager');
     $this->setLayoutManager($layout_manager);
     if ($this->getSandbox()->isDebug()) {
         log_info("system,config", "procedure", "use_session:" . $this->use_session);
         log_info("system,config", "procedure", "sequence:" . $this->sequence);
         log_info("system,config", "procedure", "layout_manager:" . $this->layout_manager);
     }
 }