PHP Класс HTMLPurifier_PropertyList, yii

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$cache Cache.
$data Internal data-structure for properties.
$parent Parent plist.

Открытые методы

Метод Описание
__construct ( HTMLPurifier_PropertyList $parent = null )
get ( string $name ) Recursively retrieves the value for a key
getParent ( ) : HTMLPurifier_PropertyList Returns the parent plist.
has ( string $name ) : boolean Returns true if a given key exists
reset ( string $name = null ) Resets a value to the value of it's parent, usually the default. If no value is specified, the entire plist is reset.
set ( string $name, mixed $value ) Sets the value of a key, for this plist
setParent ( HTMLPurifier_PropertyList $plist ) Sets the parent plist.
squash ( boolean $force = false ) : array Squashes this property list and all of its property lists into a single array, and returns the array. This value is cached by default.

Описание методов

__construct() публичный Метод

public __construct ( HTMLPurifier_PropertyList $parent = null )
$parent HTMLPurifier_PropertyList Parent plist

get() публичный Метод

Recursively retrieves the value for a key
public get ( string $name )
$name string

getParent() публичный Метод

Returns the parent plist.
public getParent ( ) : HTMLPurifier_PropertyList
Результат HTMLPurifier_PropertyList

has() публичный Метод

Returns true if a given key exists
public has ( string $name ) : boolean
$name string
Результат boolean

reset() публичный Метод

Resets a value to the value of it's parent, usually the default. If no value is specified, the entire plist is reset.
public reset ( string $name = null )
$name string

set() публичный Метод

Sets the value of a key, for this plist
public set ( string $name, mixed $value )
$name string
$value mixed

setParent() публичный Метод

Sets the parent plist.
public setParent ( HTMLPurifier_PropertyList $plist )
$plist HTMLPurifier_PropertyList Parent plist

squash() публичный Метод

Squashes this property list and all of its property lists into a single array, and returns the array. This value is cached by default.
public squash ( boolean $force = false ) : array
$force boolean If true, ignores the cache and regenerates the array.
Результат array

Описание свойств

$cache защищенное свойство

Cache.
protected $cache

$data защищенное свойство

Internal data-structure for properties.
protected $data

$parent защищенное свойство

Parent plist.
protected $parent