HTMLPurifier 4.4.0
HTMLPurifier_ChildDef_StrictBlockquote Class Reference

Takes the contents of blockquote when in strict and reformats for validation. More...

Inheritance diagram for HTMLPurifier_ChildDef_StrictBlockquote:
HTMLPurifier_ChildDef_Required HTMLPurifier_ChildDef_Required HTMLPurifier_ChildDef HTMLPurifier_ChildDef HTMLPurifier_ChildDef HTMLPurifier_ChildDef

List of all members.

Public Member Functions

 getAllowedElements ($config)
 validateChildren ($tokens_of_children, $config, $context)
 Validates nodes according to definition and returns modification.
 getAllowedElements ($config)
 validateChildren ($tokens_of_children, $config, $context)
 Validates nodes according to definition and returns modification.

Public Attributes

 $allow_empty = true
 Bool that indicates whether or not an empty array of children is okay.
 $type = 'strictblockquote'
 Type of child definition, usually right-most part of class name lowercase.

Protected Attributes

 $real_elements
 $fake_elements
 $init = false

Private Member Functions

 init ($config)
 init ($config)

Detailed Description

Takes the contents of blockquote when in strict and reformats for validation.

Definition at line 6 of file StrictBlockquote.php.


Member Function Documentation

HTMLPurifier_ChildDef_StrictBlockquote::getAllowedElements ( config)
Note:
We don't want MakeWellFormed to auto-close inline elements since they might be allowed.

Reimplemented from HTMLPurifier_ChildDef.

Definition at line 18 of file StrictBlockquote.php.

References $config, and init().

HTMLPurifier_ChildDef_StrictBlockquote::getAllowedElements ( config)
Note:
We don't want MakeWellFormed to auto-close inline elements since they might be allowed.

Reimplemented from HTMLPurifier_ChildDef.

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

References $config, and init().

HTMLPurifier_ChildDef_StrictBlockquote::init ( config) [private]

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

References $config, $def, and init().

HTMLPurifier_ChildDef_StrictBlockquote::init ( config) [private]

Definition at line 76 of file StrictBlockquote.php.

References $config, and $def.

Referenced by getAllowedElements(), init(), and validateChildren().

HTMLPurifier_ChildDef_StrictBlockquote::validateChildren ( tokens_of_children,
config,
context 
)

Validates nodes according to definition and returns modification.

Parameters:
$tokens_of_childrenArray of HTMLPurifier_Token
$configHTMLPurifier_Config object
$contextHTMLPurifier_Context object
Returns:
bool true to leave nodes as is
bool false to remove parent node
array of replacement child tokens

Reimplemented from HTMLPurifier_ChildDef_Required.

Definition at line 23 of file StrictBlockquote.php.

References $config, $def, and init().

Referenced by validateChildren().

HTMLPurifier_ChildDef_StrictBlockquote::validateChildren ( tokens_of_children,
config,
context 
)

Validates nodes according to definition and returns modification.

Parameters:
$tokens_of_childrenArray of HTMLPurifier_Token
$configHTMLPurifier_Config object
$contextHTMLPurifier_Context object
Returns:
bool true to leave nodes as is
bool false to remove parent node
array of replacement child tokens

Reimplemented from HTMLPurifier_ChildDef_Required.

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

References $config, $def, init(), and validateChildren().


Member Data Documentation

HTMLPurifier_ChildDef_StrictBlockquote::$allow_empty = true

Bool that indicates whether or not an empty array of children is okay.

This is necessary for redundant checking when changes affecting a child node may cause a parent node to now be disallowed.

Reimplemented from HTMLPurifier_ChildDef_Required.

Definition at line 10 of file StrictBlockquote.php.

HTMLPurifier_ChildDef_StrictBlockquote::$fake_elements [protected]

Definition at line 9 of file StrictBlockquote.php.

HTMLPurifier_ChildDef_StrictBlockquote::$init = false [protected]

Definition at line 12 of file StrictBlockquote.php.

HTMLPurifier_ChildDef_StrictBlockquote::$real_elements [protected]

Definition at line 8 of file StrictBlockquote.php.

HTMLPurifier_ChildDef_StrictBlockquote::$type = 'strictblockquote'

Type of child definition, usually right-most part of class name lowercase.

Used occasionally in terms of context.

Reimplemented from HTMLPurifier_ChildDef_Required.

Definition at line 11 of file StrictBlockquote.php.


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