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

📄 directive.php

📁 很棒的在线教学系统
💻 PHP
字号:
<?phprequire_once 'HTMLPurifier/ConfigDef.php';/** * Structure object containing definition of a directive. * @note This structure does not contain default values */class HTMLPurifier_ConfigDef_Directive extends HTMLPurifier_ConfigDef{        var $class = 'directive';        function HTMLPurifier_ConfigDef_Directive(        $type = null,        $descriptions = null,        $allow_null = null,        $allowed = null,        $aliases = null    ) {        if (        $type !== null)         $this->type = $type;        if ($descriptions !== null) $this->descriptions = $descriptions;        if (  $allow_null !== null)   $this->allow_null = $allow_null;        if (     $allowed !== null)      $this->allowed = $allowed;        if (     $aliases !== null)      $this->aliases = $aliases;    }        /**     * Allowed type of the directive. Values are:     *      - string     *      - istring (case insensitive string)     *      - int     *      - float     *      - bool     *      - lookup (array of value => true)     *      - list (regular numbered index array)     *      - hash (array of key => value)     *      - mixed (anything goes)     */    var $type = 'mixed';        /**     * Plaintext descriptions of the configuration entity is. Organized by     * file and line number, so multiple descriptions are allowed.     */    var $descriptions = array();        /**     * Is null allowed? Has no effect for mixed type.     * @bool     */    var $allow_null = false;        /**     * Lookup table of allowed values of the element, bool true if all allowed.     */    var $allowed = true;        /**     * Hash of value aliases, i.e. values that are equivalent.     */    var $aliases = array();        /**     * Advisory list of directive aliases, i.e. other directives that     * redirect here     */    var $directiveAliases = array();        /**     * Adds a description to the array     */    function addDescription($file, $line, $description) {        if (!isset($this->descriptions[$file])) $this->descriptions[$file] = array();        $this->descriptions[$file][$line] = $description;    }    }

⌨️ 快捷键说明

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