ILIAS  Release_5_0_x_branch Revision 61816
 All Data Structures Namespaces Files Functions Variables Groups Pages
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
 parseCDATA ($string)
 Convenience method that parses a string as if it were CDATA.

Data Fields

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

 $name
 bool

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

Validates a boolean attribute.

Definition at line 6 of file Bool.php.

Constructor & Destructor Documentation

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

Definition at line 22 of file Bool.php.

References $name.

{
$this->name = $name;
}

Member Function Documentation

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

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 45 of file Bool.php.

{
return new HTMLPurifier_AttrDef_HTML_Bool($string);
}
HTMLPurifier_AttrDef_HTML_Bool::validate (   $string,
  $config,
  $context 
)
Parameters
string$string
HTMLPurifier_Config$config
HTMLPurifier_Context$context
Returns
bool|string

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 33 of file Bool.php.

References $name.

{
if (empty($string)) {
return false;
}
return $this->name;
}

Field Documentation

HTMLPurifier_AttrDef_HTML_Bool::$minimized = true

bool

Definition at line 17 of file Bool.php.

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: