HTMLPurifier 4.4.0
HTMLPurifier_Injector_PurifierLinkify Class Reference

Injector that converts configuration directive syntax Namespace.Directive to links. More...

Inheritance diagram for HTMLPurifier_Injector_PurifierLinkify:
HTMLPurifier_Injector HTMLPurifier_Injector

List of all members.

Public Member Functions

 prepare ($config, $context)
 Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector.
 handleText (&$token)
 Handler that is called when a text token is processed.
 prepare ($config, $context)
 Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector.
 handleText (&$token)
 Handler that is called when a text token is processed.

Public Attributes

 $name = 'PurifierLinkify'
 Advisory name of injector, this is for friendly error messages.
 $docURL
 $needed = array('a' => array('href'))
 Array of elements and attributes this injector creates and therefore need to be allowed by the definition.

Detailed Description

Injector that converts configuration directive syntax Namespace.Directive to links.

Definition at line 7 of file PurifierLinkify.php.


Member Function Documentation

HTMLPurifier_Injector_PurifierLinkify::handleText ( &$  token)

Handler that is called when a text token is processed.

Reimplemented from HTMLPurifier_Injector.

Definition at line 19 of file PurifierLinkify.php.

References HTMLPurifier_Injector::allowsElement().

HTMLPurifier_Injector_PurifierLinkify::handleText ( &$  token)

Handler that is called when a text token is processed.

Reimplemented from HTMLPurifier_Injector.

Definition at line 14448 of file HTMLPurifier.standalone.php.

References HTMLPurifier_Injector::allowsElement().

HTMLPurifier_Injector_PurifierLinkify::prepare ( config,
context 
)

Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector.

This function also checks if the HTML environment will work with the Injector (see checkNeeded()).

Parameters:
$configInstance of HTMLPurifier_Config
$contextInstance of HTMLPurifier_Context
Returns:
Boolean false if success, string of missing needed element/attribute if failure

Reimplemented from HTMLPurifier_Injector.

Definition at line 14443 of file HTMLPurifier.standalone.php.

References $config, and prepare().

HTMLPurifier_Injector_PurifierLinkify::prepare ( config,
context 
)

Prepares the injector by giving it the config and context objects: this allows references to important variables to be made within the injector.

This function also checks if the HTML environment will work with the Injector (see checkNeeded()).

Parameters:
$configInstance of HTMLPurifier_Config
$contextInstance of HTMLPurifier_Context
Returns:
Boolean false if success, string of missing needed element/attribute if failure

Reimplemented from HTMLPurifier_Injector.

Definition at line 14 of file PurifierLinkify.php.

References $config.

Referenced by prepare().


Member Data Documentation

HTMLPurifier_Injector_PurifierLinkify::$docURL

Definition at line 11 of file PurifierLinkify.php.

HTMLPurifier_Injector_PurifierLinkify::$name = 'PurifierLinkify'

Advisory name of injector, this is for friendly error messages.

Reimplemented from HTMLPurifier_Injector.

Definition at line 10 of file PurifierLinkify.php.

HTMLPurifier_Injector_PurifierLinkify::$needed = array('a' => array('href'))

Array of elements and attributes this injector creates and therefore need to be allowed by the definition.

Takes form of array('element' => array('attr', 'attr2'), 'element2')

Reimplemented from HTMLPurifier_Injector.

Definition at line 12 of file PurifierLinkify.php.


The documentation for this class was generated from the following files: