Public Member Functions | Data Fields | Protected Attributes | Static Protected Attributes

Zend_Validate_Alpha Class Reference

Inheritance diagram for Zend_Validate_Alpha:
Zend_Validate_Abstract Zend_Validate_Interface

Public Member Functions

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

Data Fields

const INVALID = 'alphaInvalid'
const NOT_ALPHA = 'notAlpha'
const STRING_EMPTY = 'stringEmpty'
 $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$allowWhiteSpace
Returns:
void

Definition at line 71 of file Alpha.php.


Member Function Documentation

getAllowWhiteSpace (  )

Returns the allowWhiteSpace option

Returns:
boolean

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

setAllowWhiteSpace ( allowWhiteSpace )

Sets the allowWhiteSpace option

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

Definition at line 92 of file Alpha.php.


Field Documentation

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

Reimplemented from Zend_Validate_Abstract.

Definition at line 59 of file Alpha.php.


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