示例#1
0
文件: Action.php 项目: hovenko/Madcow
        $method_path = $this->get_method_private_path();
        return "{$controller_path}/{$method_path}";
    }
    protected function get_method_private_path()
    {
        $path = preg_replace('|^handle_(.+)$|', '$1', $this->get_method());
        return $path;
    }
    protected function get_controller_private_path()
    {
        $path = strtolower($this->get_controller());
        $path = preg_replace('#_#', '/', $path);
        return $path;
    }
    public function toString()
    {
        $args = "";
        if ($this->arguments) {
            $args = DF_Web_Utils_Arguments::flatten_arguments_list($this->arguments);
        }
        $ctrl = $this->controller;
        $method = $this->method;
        return "{$ctrl}->{$method}({$args})";
    }
    public function __toString()
    {
        return $this->toString();
    }
}
DF_Web_Action::$LOGGER = DF_Web_Logger::logger('DF_Web_Action');