ILIAS  Release_4_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
HTMLPurifier_AttrDef_HTML_FrameTarget Class Reference

Special-case enum attribute definition that lazy loads allowed frame targets. More...

+ Inheritance diagram for HTMLPurifier_AttrDef_HTML_FrameTarget:
+ Collaboration diagram for HTMLPurifier_AttrDef_HTML_FrameTarget:

Public Member Functions

 __construct ()
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition.
- Public Member Functions inherited from HTMLPurifier_AttrDef_Enum
 __construct ($valid_values=array(), $case_sensitive=false)
 make ($string)
- Public Member Functions inherited from HTMLPurifier_AttrDef
 parseCDATA ($string)
 Convenience method that parses a string as if it were CDATA.

Data Fields

 $valid_values = false
- Data Fields inherited from HTMLPurifier_AttrDef_Enum
 $valid_values = array()
 Lookup table of valid values.
- Data Fields inherited from HTMLPurifier_AttrDef
 $minimized = false
 Tells us whether or not an HTML attribute is minimized.
 $required = false
 Tells us whether or not an HTML attribute is required.

Protected Attributes

 $case_sensitive = false
- Protected Attributes inherited from HTMLPurifier_AttrDef_Enum
 $case_sensitive = false
 Bool indicating whether or not enumeration is case sensitive.

Additional Inherited Members

- Protected Member Functions inherited from HTMLPurifier_AttrDef
 mungeRgb ($string)
 Removes spaces from rgb(0, 0, 0) so that shorthand CSS properties work properly.

Detailed Description

Special-case enum attribute definition that lazy loads allowed frame targets.

Definition at line 6 of file FrameTarget.php.

Constructor & Destructor Documentation

HTMLPurifier_AttrDef_HTML_FrameTarget::__construct ( )

Definition at line 12 of file FrameTarget.php.

{}

Member Function Documentation

HTMLPurifier_AttrDef_HTML_FrameTarget::validate (   $string,
  $config,
  $context 
)

Validates and cleans passed string according to a definition.

Parameters
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef_Enum.

Definition at line 14 of file FrameTarget.php.

References $config.

{
if ($this->valid_values === false) $this->valid_values = $config->get('Attr.AllowedFrameTargets');
return parent::validate($string, $config, $context);
}

Field Documentation

HTMLPurifier_AttrDef_HTML_FrameTarget::$case_sensitive = false
protected

Definition at line 10 of file FrameTarget.php.

HTMLPurifier_AttrDef_HTML_FrameTarget::$valid_values = false

Definition at line 9 of file FrameTarget.php.


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