Esempio n. 1
0
 protected function init_local($config)
 {
     parent::init_local($config);
     $this->config = $config;
     $this->path = $this->prepare_path();
     unset($this->config);
 }
Esempio n. 2
0
    public function get_path()
    {
        return $this->path;
    }
    public function get_method()
    {
        $name = $this->name;
        $method = "handle_{$name}";
        return $method;
    }
    public function get_code_ref()
    {
        $ctrl = $this->controller_name . "";
        $method = $this->get_method();
        $ref = array($ctrl, $method);
        return $ref;
    }
    public function __toString()
    {
        $ctrl = $this->controller_name;
        $method = $this->get_method();
        $path_match = $this->get_path_match();
        $name = $this->name;
        $path = $this->path;
        $args = $this->args;
        $str = "{$ctrl}::{$method} Pathmatch: {$path_match}, Name: {$name}, Path: {$path}, Args: {$args}";
        return $str;
    }
}
DF_Web_Routing_Action::$LOGGER = DF_Web_Logger::logger('DF_Web_Routing_Action');
Esempio n. 3
0
 public function __toString()
 {
     $parent = parent::__toString();
     $chained = $this->chained;
     $captures = $this->captures;
     $root_chained = $this->is_chained_root ? "Root chained" : "Chained";
     $str = "{$parent}, {$root_chained}: {$chained}, Captures: {$captures}";
     return $str;
 }