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

Validates a boolean attribute. More...

+ Inheritance diagram for HTMLPurifier_AttrDef_HTML_Bool:
+ Collaboration diagram for HTMLPurifier_AttrDef_HTML_Bool:

Public Member Functions

 __construct ($name=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

 $minimized = true
 bool 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

 $name
 bool 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

Validates a boolean attribute.

Definition at line 6 of file Bool.php.

Constructor & Destructor Documentation

◆ __construct()

HTMLPurifier_AttrDef_HTML_Bool::__construct (   $name = false)
Parameters
bool$name

Definition at line 22 of file Bool.php.

References $name.

23  {
24  $this->name = $name;
25  }

Member Function Documentation

◆ make()

HTMLPurifier_AttrDef_HTML_Bool::make (   $string)
Parameters
string$stringName of attribute
Returns
HTMLPurifier_AttrDef_HTML_Bool

Definition at line 42 of file Bool.php.

43  {
44  return new HTMLPurifier_AttrDef_HTML_Bool($string);
45  }
Validates a boolean attribute.
Definition: Bool.php:6

◆ validate()

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

Definition at line 33 of file Bool.php.

References $name.

34  {
35  return $this->name;
36  }

Field Documentation

◆ $minimized

HTMLPurifier_AttrDef_HTML_Bool::$minimized = true

bool

Definition at line 17 of file Bool.php.

◆ $name

HTMLPurifier_AttrDef_HTML_Bool::$name
protected

bool

Definition at line 12 of file Bool.php.

Referenced by __construct(), and validate().


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