XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
HTMLPurifier_ConfigSchema_ValidatorAtom Class Reference

Public Member Functions

 __construct ($context, $obj, $member)
 
 assertAlnum ()
 
 assertIsArray ()
 
 assertIsBool ()
 
 assertIsLookup ()
 
 assertIsString ()
 
 assertNotEmpty ()
 
 assertNotNull ()
 

Public Attributes

 $contents
 
 $member
 
 $obj
 

Protected Member Functions

 error ($msg)
 

Protected Attributes

 $context
 

Detailed Description

Fluent interface for validating the contents of member variables. This should be immutable. See HTMLPurifier_ConfigSchema_Validator for use-cases. We name this an 'atom' because it's ONLY for validations that are independent and usually scalar.

Definition at line 9 of file ValidatorAtom.php.

Constructor & Destructor Documentation

HTMLPurifier_ConfigSchema_ValidatorAtom::__construct (   $context,
  $obj,
  $member 
)

Definition at line 14 of file ValidatorAtom.php.

References $context, $member, and $obj.

Member Function Documentation

HTMLPurifier_ConfigSchema_ValidatorAtom::assertAlnum ( )

Definition at line 41 of file ValidatorAtom.php.

References assertIsString(), and error().

Here is the call graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::assertIsArray ( )

Definition at line 31 of file ValidatorAtom.php.

References error().

Referenced by assertIsLookup().

Here is the call graph for this function:

Here is the caller graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::assertIsBool ( )

Definition at line 26 of file ValidatorAtom.php.

References error().

Here is the call graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::assertIsLookup ( )

Definition at line 52 of file ValidatorAtom.php.

References assertIsArray(), and error().

Here is the call graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::assertIsString ( )

Definition at line 21 of file ValidatorAtom.php.

References error().

Referenced by assertAlnum().

Here is the call graph for this function:

Here is the caller graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::assertNotEmpty ( )

Definition at line 47 of file ValidatorAtom.php.

References error().

Here is the call graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::assertNotNull ( )

Definition at line 36 of file ValidatorAtom.php.

References error().

Here is the call graph for this function:

HTMLPurifier_ConfigSchema_ValidatorAtom::error (   $msg)
protected

Definition at line 60 of file ValidatorAtom.php.

References $msg.

Referenced by assertAlnum(), assertIsArray(), assertIsBool(), assertIsLookup(), assertIsString(), assertNotEmpty(), and assertNotNull().

Here is the caller graph for this function:

Member Data Documentation

HTMLPurifier_ConfigSchema_ValidatorAtom::$contents

Definition at line 12 of file ValidatorAtom.php.

HTMLPurifier_ConfigSchema_ValidatorAtom::$context
protected

Definition at line 12 of file ValidatorAtom.php.

Referenced by __construct().

HTMLPurifier_ConfigSchema_ValidatorAtom::$member

Definition at line 12 of file ValidatorAtom.php.

Referenced by __construct().

HTMLPurifier_ConfigSchema_ValidatorAtom::$obj

Definition at line 12 of file ValidatorAtom.php.

Referenced by __construct().


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