⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 invalidcontrolleractionerror.class.php

📁 ProjectPier 源码 很好的项目管理程序
💻 PHP
字号:
<?php  /**  * Invalid controller action error  *   * @version 1.0  * @http://www.projectpier.org/  */  class InvalidControllerActionError extends Error {        /**    * Controller name    *    * @var string    */    private $controller;        /**    * Action name    *    * @var string    */    private $action;      /**    * Construct the InvalidControllerActionError    *    * @access public    * @param string $controller Controller name    * @param string $action Controller action    * @param string $message Error message, if NULL default will be used    * @return InvalidControllerActionError    */    function __construct($controller, $action, $message = null) {      if (is_null($message)) {        $message = "Invalid controller action $controller::$action()";      } // if      parent::__construct($message);            $this->setController($controller);      $this->setAction($action);    } // __construct        /**    * Return errors specific params...    *    * @access public    * @param void    * @return array    */    function getAdditionalParams() {      return array(        'controller' => $this->getController(),        'action' => $this->getAction()      ); // array    } // getAdditionalParams        // -------------------------------------------------------    // Getters and setters    // -------------------------------------------------------        /**    * Get controller    *    * @access public    * @param null    * @return string    */    function getController() {      return $this->controller;    } // getController        /**    * Set controller value    *    * @access public    * @param string $value    * @return null    */    function setController($value) {      $this->controller = $value;    } // setController        /**    * Get action    *    * @access public    * @param null    * @return string    */    function getAction() {      return $this->action;    } // getAction        /**    * Set action value    *    * @access public    * @param string $value    * @return null    */    function setAction($value) {      $this->action = $value;    } // setAction    } // InvalidControllerActionError?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -