ILIAS  Release_5_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)
- 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
 array
- 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
 bool
- 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.
 expandCSSEscape ($string)
 Parses a possibly escaped CSS string and returns the "pure" version of it.

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 19 of file FrameTarget.php.

{
}

Member Function Documentation

HTMLPurifier_AttrDef_HTML_FrameTarget::validate (   $string,
  $config,
  $context 
)
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef_Enum.

Definition at line 29 of file FrameTarget.php.

{
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

bool

Definition at line 17 of file FrameTarget.php.

HTMLPurifier_AttrDef_HTML_FrameTarget::$valid_values = false

array

Definition at line 12 of file FrameTarget.php.


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