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

Public Member Functions

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

Data Fields

const INVALID = 'alphaInvalid'
const NOT_ALPHA = 'notAlpha'
const STRING_EMPTY = 'alphaStringEmpty'
 $allowWhiteSpace

Protected Attributes

 $_messageTemplates

Static Protected Attributes

static $_filter = null

Detailed Description

Definition at line 33 of file Alpha.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 Alpha.php.


Member Function Documentation

Returns the allowWhiteSpace option

Returns:
boolean

Definition at line 93 of file Alpha.php.

isValid ( value)

Defined by Zend_Validate_Interface

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

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

Implements Zend_Validate_Interface.

Definition at line 118 of file Alpha.php.

Here is the call graph for this function:

setAllowWhiteSpace ( allowWhiteSpace)

Sets the allowWhiteSpace option

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

Definition at line 104 of file Alpha.php.


Field Documentation

$_filter = null [static, protected]

Definition at line 52 of file Alpha.php.

$_messageTemplates [protected]
Initial value:
 array(
        self::INVALID      => "Invalid type given, value should be a string",
        self::NOT_ALPHA    => "'%value%' contains non alphabetic characters",
        self::STRING_EMPTY => "'%value%' is an empty string"
    )

Reimplemented from Zend_Validate_Abstract.

Definition at line 59 of file Alpha.php.

$allowWhiteSpace

Definition at line 45 of file Alpha.php.

const INVALID = 'alphaInvalid'

Definition at line 35 of file Alpha.php.

const NOT_ALPHA = 'notAlpha'

Definition at line 36 of file Alpha.php.

const STRING_EMPTY = 'alphaStringEmpty'

Definition at line 37 of file Alpha.php.


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