ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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)
 
 validate ($string, $config, $context)
 
 make ($string)
 
- Public Member Functions inherited from HTMLPurifier_AttrDef
 validate ($string, $config, $context)
 Validates and cleans passed string according to a definition. More...
 
 parseCDATA ($string)
 Convenience method that parses a string as if it were CDATA. More...
 
 make ($string)
 Factory method for creating this class from a string. More...
 

Data Fields

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

Protected Attributes

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

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

Detailed Description

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

Definition at line 6 of file FrameTarget.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrDef_HTML_FrameTarget::__construct ( )

Definition at line 19 of file FrameTarget.php.

20  {
21  }

Member Function Documentation

◆ validate()

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

Definition at line 29 of file FrameTarget.php.

References $config.

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

Field Documentation

◆ $case_sensitive

HTMLPurifier_AttrDef_HTML_FrameTarget::$case_sensitive = false
protected

bool

Definition at line 17 of file FrameTarget.php.

◆ $valid_values

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: