PHP Класс HTMLPurifier_AttrDef_Integer, yii

Наследование: extends HTMLPurifier_AttrDef
Показать файл Открыть проект

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

Свойство Тип Описание
$negative Whether or not negative values are allowed.
$positive Whether or not positive values are allowed.
$zero Whether or not zero is allowed.

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

Метод Описание
__construct ( $negative = true, $zero = true, $positive = true )
validate ( string $integer, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string

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

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

public __construct ( $negative = true, $zero = true, $positive = true )
$negative Bool indicating whether or not negative values are allowed
$zero Bool indicating whether or not zero is allowed
$positive Bool indicating whether or not positive values are allowed

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

public validate ( string $integer, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean | string
$integer string
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Результат boolean | string

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

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

Whether or not negative values are allowed.
protected $negative

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

Whether or not positive values are allowed.
protected $positive

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

Whether or not zero is allowed.
protected $zero