thirdparty/htmlpurifier-4.0.0-lite/library/HTMLPurifier/ConfigSchema.php
public function add($key, $default, $type, $allow_null) {
        $obj = new stdclass();
        $obj->type = is_int($type) ? $type : HTMLPurifier_VarParser::$types[$type];
        if ($allow_null) $obj->allow_null = true;
        $this->info[$key] = $obj;
        $this->defaults[$key] = $default;
        $this->defaultPlist->set($key, $default);
    }
public function add($key, $default, $type, $allow_null) {
        $obj = new stdclass();
        $obj->type = is_int($type) ? $type : HTMLPurifier_VarParser::$types[$type];
        if ($allow_null) $obj->allow_null = true;
        $this->info[$key] = $obj;
        $this->defaults[$key] = $default;
        $this->defaultPlist->set($key, $default);
    }
public function add ( $ key , $ default , $ type , $ allow_null ) { $ obj = new stdclass ( ) ; $ obj -> type = is_int ( $ type ) ? $ type : HTMLPurifier_VarParser :: $ types [ $ type ] ; if ( $ allow_null ) $ obj -> allow_null = true ; $ this -> info [ $ key ] = $ obj ; $ this -> defaults [ $ key ] = $ default ; $ this -> defaultPlist -> set ( $ key , $ default ) ; }
Defines a directive for configuration
@warning Will fail of directive's namespace is defined.
@warning This method's signature is slightly different from the legacy
define() static method! Beware!
@param $namespace Namespace the directive is in
@param $name Key of directive
@param $default Default value of directive
@param $type Allowed type of the directive. See
HTMLPurifier_DirectiveDef::$type for allowed values
@param $allow_null Whether or not to allow null values
Defines a directive for configuration