PHP Класс HTMLPurifier_URIScheme, yii

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

Открытые свойства

Свойство Тип Описание
$browsable Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not.
$default_port Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided.
$hierarchical Whether or not the URI always uses , resolves edge cases with making relative URIs absolute
$may_omit_host Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file. As of writing, 'file' is the only scheme that browsers support his properly.
$secure https is secure, http is not.

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

Метод Описание
doValidate ( HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean Validates the components of a URI for a specific scheme.
validate ( HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method.

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

doValidate() абстрактный публичный Метод

Validates the components of a URI for a specific scheme.
abstract public doValidate ( HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$uri HTMLPurifier_URI Reference to a HTMLPurifier_URI object
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Результат boolean success or failure

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

Public interface for validating components of a URI. Performs a bunch of default actions. Don't overload this method.
public validate ( HTMLPurifier_URI &$uri, HTMLPurifier_Config $config, HTMLPurifier_Context $context ) : boolean
$uri HTMLPurifier_URI Reference to a HTMLPurifier_URI object
$config HTMLPurifier_Config
$context HTMLPurifier_Context
Результат boolean success or failure

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

$browsable публичное свойство

Whether or not URIs of this scheme are locatable by a browser http and ftp are accessible, while mailto and news are not.
public $browsable

$default_port публичное свойство

Scheme's default port (integer). If an explicit port number is specified that coincides with the default port, it will be elided.
public $default_port

$hierarchical публичное свойство

Whether or not the URI always uses , resolves edge cases with making relative URIs absolute
public $hierarchical

$may_omit_host публичное свойство

Whether or not the URI may omit a hostname when the scheme is explicitly specified, ala file:///path/to/file. As of writing, 'file' is the only scheme that browsers support his properly.
public $may_omit_host

$secure публичное свойство

https is secure, http is not.
public $secure