Defines a directive for configuration
public add ( string $key, mixed $default, string $type, boolean $allow_null ) | ||
$key | string | Name of directive |
$default | mixed | Default value of directive |
$type | string | Allowed type of the directive. See HTMLPurifier_DirectiveDef::$type for allowed values |
$allow_null | boolean | Whether or not to allow null values |