Ejemplo n.º 1
0
 protected function init_local($config)
 {
     parent::init_local($config);
     $this->config = $config;
     $this->path = $this->prepare_path();
     unset($this->config);
 }
Ejemplo n.º 2
0
 /**
  * (non-PHPdoc)
  * @see DF_Web_Routing_Action::init_local()
  * @param DF_Web_Routing_Config_Action $config
  */
 protected function init_local($config)
 {
     parent::init_local($config);
     if (!$this->has_config_chained($config)) {
         throw new InvalidArgumentException("Missing configuration property: chained");
     }
     $this->chained = $this->prepare_chained($config);
     $this->captures = $this->prepare_captures($config);
     $this->path = $this->prepare_path($config);
     $this->is_chained_root = $this->prepare_is_chained_root($this->chained);
 }