ILIAS  release_4-3 Revision
 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)
 Validates and cleans passed string according to a definition.
 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
- 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

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)

Definition at line 12 of file Bool.php.

References $name.

{$this->name = $name;}

Member Function Documentation

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

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 22 of file Bool.php.

{
return new HTMLPurifier_AttrDef_HTML_Bool($string);
}
HTMLPurifier_AttrDef_HTML_Bool::validate (   $string,
  $config,
  $context 
)

Validates and cleans passed string according to a definition.

Parameters
$stringString to be validated and cleaned.
$configMandatory HTMLPurifier_Config object.
$contextMandatory HTMLPurifier_AttrContext object.

Reimplemented from HTMLPurifier_AttrDef.

Definition at line 14 of file Bool.php.

References $name.

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

Field Documentation

HTMLPurifier_AttrDef_HTML_Bool::$minimized = true

Definition at line 10 of file Bool.php.

HTMLPurifier_AttrDef_HTML_Bool::$name
protected

Definition at line 9 of file Bool.php.

Referenced by __construct(), and validate().


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