Moodle  2.2.1
http://www.collinsharper.com
Zend_Validate_Alnum Class Reference
Inheritance diagram for Zend_Validate_Alnum:
Collaboration diagram for Zend_Validate_Alnum:

Public Member Functions

 __construct ($allowWhiteSpace=false)
 getAllowWhiteSpace ()
 setAllowWhiteSpace ($allowWhiteSpace)
 isValid ($value)

Data Fields

const INVALID = 'alnumInvalid'
const NOT_ALNUM = 'notAlnum'
const STRING_EMPTY = 'alnumStringEmpty'
 $allowWhiteSpace

Protected Attributes

 $_messageTemplates

Static Protected Attributes

static $_filter = null

Detailed Description

Definition at line 33 of file Alnum.php.


Constructor & Destructor Documentation

__construct ( allowWhiteSpace = false)

Sets default option values for this instance

Parameters:
boolean | Zend_Config$allowWhiteSpace
Returns:
void

Definition at line 71 of file Alnum.php.


Member Function Documentation

Returns the allowWhiteSpace option

Returns:
boolean

Definition at line 93 of file Alnum.php.

isValid ( value)

Defined by Zend_Validate_Interface

Returns true if and only if $value contains only alphabetic and digit characters

Parameters:
string$value
Returns:
boolean
See also:
Zend_Filter_Alnum

Implements Zend_Validate_Interface.

Definition at line 118 of file Alnum.php.

Here is the call graph for this function:

setAllowWhiteSpace ( allowWhiteSpace)

Sets the allowWhiteSpace option

Parameters:
boolean$allowWhiteSpace
Returns:
Zend_Filter_Alnum Provides a fluent interface

Definition at line 104 of file Alnum.php.


Field Documentation

$_filter = null [static, protected]

Definition at line 52 of file Alnum.php.

$_messageTemplates [protected]
Initial value:
 array(
        self::INVALID      => "Invalid type given, value should be float, string, or integer",
        self::NOT_ALNUM    => "'%value%' contains characters which are non alphabetic and no digits",
        self::STRING_EMPTY => "'%value%' is an empty string",
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 59 of file Alnum.php.

$allowWhiteSpace

Definition at line 45 of file Alnum.php.

const INVALID = 'alnumInvalid'

Definition at line 35 of file Alnum.php.

const NOT_ALNUM = 'notAlnum'

Definition at line 36 of file Alnum.php.

const STRING_EMPTY = 'alnumStringEmpty'

Definition at line 37 of file Alnum.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations