Öffentliche Methoden | |
__construct () | |
add ($key, $default, $type, $allow_null) | |
addValueAliases ($key, $aliases) | |
addAllowedValues ($key, $allowed) | |
addAlias ($key, $new_key) | |
postProcess () | |
Öffentliche, statische Methoden | |
static | makeFromSerial () |
static | instance ($prototype=null) |
Datenfelder | |
$defaults = array() | |
$defaultPlist | |
$info = array() | |
Statische, geschützte Attribute | |
static | $singleton |
Configuration definition, defines directives and their defaults.
Definiert in Zeile 6 der Datei ConfigSchema.php.
__construct | ( | ) |
Definiert in Zeile 60 der Datei ConfigSchema.php.
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_DirectiveDef::$type for allowed values |
bool | $allow_null | Whether or not to allow null values |
Definiert in Zeile 106 der Datei ConfigSchema.php.
Benutzt HTMLPurifier_VarParser\$types.
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 |
Definiert in Zeile 153 der Datei ConfigSchema.php.
addAllowedValues | ( | $key, | |
$allowed | |||
) |
Defines a set of allowed values for a directive.
string | $key | Name of directive |
array | $allowed | Lookup array of allowed values |
Definiert in Zeile 143 der Datei ConfigSchema.php.
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 |
Definiert in Zeile 126 der Datei ConfigSchema.php.
|
static |
Retrieves an instance of the application-wide configuration definition.
HTMLPurifier_ConfigSchema | $prototype |
Definiert in Zeile 85 der Datei ConfigSchema.php.
Benutzt $singleton und makeFromSerial().
Wird benutzt von HTMLPurifier_Config\createDefault() und HTMLPurifier_Config\getAllowedDirectivesForForm().
|
static |
Unserializes the default ConfigSchema.
Definiert in Zeile 69 der Datei ConfigSchema.php.
Wird benutzt von instance().
postProcess | ( | ) |
Replaces any stdclass that only has the type property with type integer.
Definiert in Zeile 164 der Datei ConfigSchema.php.
$defaultPlist |
The default property list. Do not edit this property list. array
Definiert in Zeile 19 der Datei ConfigSchema.php.
$defaults = array() |
Defaults of the directives and namespaces. array
Definiert in Zeile 13 der Datei ConfigSchema.php.
$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. array
Definiert in Zeile 52 der Datei ConfigSchema.php.
|
staticprotected |
Application-wide singleton HTMLPurifier_ConfigSchema
Definiert in Zeile 58 der Datei ConfigSchema.php.
Wird benutzt von instance().