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

📄 filenotwriableerror.class.php

📁 ProjectPier 源码 很好的项目管理程序
💻 PHP
字号:
<?php  /**  * This exception is thrown when we need to write content to the   * file and it is not writable  *  * @version 1.0  * @http://www.projectpier.org/  */  class FileNotWriableError extends Error {      /**    * Path of the requested file    *    * @var string    */    private $file_path;        /**    * Construct the FileNotWriableError    *    * @access public    * @param void    * @return FileNotWriableError    */    function __construct($file_path, $message = null) {      if (is_null($message)) {        $message = "File '$file_path' is not writable";      } // if      parent::__construct($message);      $this->setFilePath($file_path);    } // __construct        /**    * Return errors specific params...    *    * @access public    * @param void    * @return array    */    function getAdditionalParams() {      return array(        'file path' => $this->getFilePath()      ); // array    } // getAdditionalParams        // -------------------------------------------------------    // Getters and setters    // -------------------------------------------------------        /**    * Get file_path    *    * @access public    * @param null    * @return string    */    function getFilePath() {      return $this->file_path;    } // getFilePath        /**    * Set file_path value    *    * @access public    * @param string $value    * @return null    */    function setFilePath($value) {      $this->file_path = $value;    } // setFilePath    } // FileNotWriableError?>

⌨️ 快捷键说明

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