API - XOOPS 2.5.11 Beta 2
By monxoops.fr
|
Public Member Functions | |
__construct () | |
add ($key, $default, $type, $allow_null) | |
addValueAliases ($key, $aliases) | |
addAllowedValues ($key, $allowed) | |
addAlias ($key, $new_key) | |
postProcess () | |
Static Public Member Functions | |
static | makeFromSerial () |
static | instance ($prototype=null) |
Data Fields | |
$defaults = array() | |
$defaultPlist | |
$info = array() | |
Static Protected Attributes | |
static | $singleton |
Configuration definition, defines directives and their defaults.
__construct | ( | ) |
add | ( | $key, | |
$default, | |||
$type, | |||
$allow_null | |||
) |
Defines a directive for configuration
string | $key | Name of directive |
mixed | $default | Default value of directive |
string | $type | Allowed type of the directive. See HTMLPurifier_VarParser::$types for allowed values |
bool | $allow_null | Whether or not to allow null values |
addAlias | ( | $key, | |
$new_key | |||
) |
Defines a directive alias for backwards compatibility
string | $key | Directive that will be aliased |
string | $new_key | Directive that the alias will be to |
addAllowedValues | ( | $key, | |
$allowed | |||
) |
Defines a set of allowed values for a directive.
string | $key | Name of directive |
array | $allowed | Lookup array of allowed values |
addValueAliases | ( | $key, | |
$aliases | |||
) |
Defines a directive value alias.
Directive value aliases are convenient for developers because it lets them set a directive to several values and get the same result.
string | $key | Name of Directive |
array | $aliases | Hash of aliased values to the real alias |
|
static |
Retrieves an instance of the application-wide configuration definition.
HTMLPurifier_ConfigSchema | $prototype |
|
static |
Unserializes the default ConfigSchema.
postProcess | ( | ) |
Replaces any stdClass that only has the type property with type integer.
$defaultPlist |
The default property list. Do not edit this property list. @type array
$defaults = array() |
Defaults of the directives and namespaces. @type array
$info = array() |
Definition of the directives. The structure of this is:
array( 'Namespace' => array( 'Directive' => new stdClass(), ) )
The stdClass may have the following properties:
In certain degenerate cases, stdClass will actually be an integer. In that case, the value is equivalent to an stdClass with the type property set to the integer. If the integer is negative, type is equal to the absolute value of integer, and allow_null is true.
This class is friendly with HTMLPurifier_Config. If you need introspection about the schema, you're better of using the ConfigSchema_Interchange, which uses more memory but has much richer information. @type array
|
staticprotected |
Application-wide singleton @type HTMLPurifier_ConfigSchema