ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
HTMLPurifier_AttrDef_Clone Class Reference

Dummy AttrDef that mimics another AttrDef, BUT it generates clones with make. More...

+ Inheritance diagram for HTMLPurifier_AttrDef_Clone:
+ Collaboration diagram for HTMLPurifier_AttrDef_Clone:

Public Member Functions

 __construct ($clone)
 
 validate ($v, $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...
 

Protected Attributes

 $clone
 What we're cloning. More...
 

Additional Inherited Members

- 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 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

Dummy AttrDef that mimics another AttrDef, BUT it generates clones with make.

Definition at line 7 of file Clone.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrDef_Clone::__construct (   $clone)
Parameters
HTMLPurifier_AttrDef$clone

Definition at line 18 of file Clone.php.

References $clone.

19  {
20  $this->clone = $clone;
21  }
$clone
What we're cloning.
Definition: Clone.php:13

Member Function Documentation

◆ make()

HTMLPurifier_AttrDef_Clone::make (   $string)
Parameters
string$string
Returns
HTMLPurifier_AttrDef

Definition at line 38 of file Clone.php.

References $clone.

39  {
40  return clone $this->clone;
41  }
$clone
What we're cloning.
Definition: Clone.php:13

◆ validate()

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

Definition at line 29 of file Clone.php.

References $config.

30  {
31  return $this->clone->validate($v, $config, $context);
32  }

Field Documentation

◆ $clone

HTMLPurifier_AttrDef_Clone::$clone
protected

What we're cloning.

HTMLPurifier_AttrDef

Definition at line 13 of file Clone.php.

Referenced by __construct(), and make().


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