Exemple #1
0
 public function prepare_actions()
 {
     $action_cfgs = array();
     foreach ($tmp = $this->get_config_actions() as $name => $config) {
         $name = new DF_Web_Component_Name($name);
         $action_cfg = new DF_Web_Routing_Config_Action($name, $config, $this);
         $name = $action_cfg->get_name();
         $action_cfgs["{$name}"] = $action_cfg;
     }
     return $action_cfgs;
 }
Exemple #2
0
 /**
  * Constructor.
  * 
  * @param DF_Web_Routing_Config_Action $config
  * @return DF_Web_Routing_Action
  */
 public function __construct($config)
 {
     if (!$config instanceof DF_Web_Routing_Config_Action) {
         throw new DF_Error_InvalidArgumentException("config", $config, DF_Web_Routing_Config_Action);
     }
     $ctrl = $config->get_controller();
     $this->controller_name = $ctrl->get_name();
     $this->controller_path = $ctrl->get_path();
     $this->name = $config->get_name();
     $this->path = $config->get_path();
     $this->args = $this->prepare_args($config);
     $this->init_local($config);
 }
Exemple #3
0
 /**
  * 
  * @param DF_Web_Routing_Config_Action $config
  */
 protected function has_config_chained($config)
 {
     if ($config->has('chained')) {
         return true;
     }
     return false;
 }