PHP 클래스 HTMLPurifier_ConfigSchema, yii

파일 보기 프로젝트 열기: yiisoft/yii 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$defaultPlist The default property list. Do not edit this property list.
$defaults Defaults of the directives and namespaces.
$info The structure of this is: array( 'Namespace' => array( 'Directive' => new stdclass(), ) ) The stdclass may have the following properties: - If isAlias isn't set: - type: Integer type of directive, see HTMLPurifier_VarParser for definitions - allow_null: If set, this directive allows null values - aliases: If set, an associative array of value aliases to real values - allowed: If set, a lookup array of allowed (string) values - If isAlias is set: - namespace: Namespace this directive aliases to - name: Directive name this directive aliases to 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.

보호된 프로퍼티들

프로퍼티 타입 설명
$singleton Application-wide singleton

공개 메소드들

메소드 설명
__construct ( )
add ( string $key, mixed $default, string $type, boolean $allow_null ) Defines a directive for configuration
addAlias ( string $key, string $new_key ) Defines a directive alias for backwards compatibility
addAllowedValues ( string $key, array $allowed ) Defines a set of allowed values for a directive.
addValueAliases ( string $key, array $aliases ) Defines a directive value alias.
instance ( HTMLPurifier_ConfigSchema $prototype = null ) : HTMLPurifier_ConfigSchema Retrieves an instance of the application-wide configuration definition.
makeFromSerial ( ) : HTMLPurifier_ConfigSchema Unserializes the default ConfigSchema.
postProcess ( ) Replaces any stdclass that only has the type property with type integer.

메소드 상세

__construct() 공개 메소드

public __construct ( )

add() 공개 메소드

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

addAlias() 공개 메소드

Defines a directive alias for backwards compatibility
public addAlias ( string $key, string $new_key )
$key string Directive that will be aliased
$new_key string Directive that the alias will be to

addAllowedValues() 공개 메소드

Defines a set of allowed values for a directive.
public addAllowedValues ( string $key, array $allowed )
$key string Name of directive
$allowed array Lookup array of allowed values

addValueAliases() 공개 메소드

Directive value aliases are convenient for developers because it lets them set a directive to several values and get the same result.
public addValueAliases ( string $key, array $aliases )
$key string Name of Directive
$aliases array Hash of aliased values to the real alias

instance() 공개 정적인 메소드

Retrieves an instance of the application-wide configuration definition.
public static instance ( HTMLPurifier_ConfigSchema $prototype = null ) : HTMLPurifier_ConfigSchema
$prototype HTMLPurifier_ConfigSchema
리턴 HTMLPurifier_ConfigSchema

makeFromSerial() 공개 정적인 메소드

Unserializes the default ConfigSchema.
public static makeFromSerial ( ) : HTMLPurifier_ConfigSchema
리턴 HTMLPurifier_ConfigSchema

postProcess() 공개 메소드

Replaces any stdclass that only has the type property with type integer.
public postProcess ( )

프로퍼티 상세

$defaultPlist 공개적으로 프로퍼티

The default property list. Do not edit this property list.
public $defaultPlist

$defaults 공개적으로 프로퍼티

Defaults of the directives and namespaces.
public $defaults

$info 공개적으로 프로퍼티

The structure of this is: array( 'Namespace' => array( 'Directive' => new stdclass(), ) ) The stdclass may have the following properties: - If isAlias isn't set: - type: Integer type of directive, see HTMLPurifier_VarParser for definitions - allow_null: If set, this directive allows null values - aliases: If set, an associative array of value aliases to real values - allowed: If set, a lookup array of allowed (string) values - If isAlias is set: - namespace: Namespace this directive aliases to - name: Directive name this directive aliases to 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.
public $info

$singleton 보호되어 있는 정적으로 프로퍼티

Application-wide singleton
protected static $singleton