Ejemplo n.º 1
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');