Class Zend_Validate_Alpha

Description
  • copyright: Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
  • license: New BSD License

Located in /Validate/Alpha.php (line 33)

Zend_Validate_Abstract
   |
   --Zend_Validate_Alpha
Class Constant Summary
 INVALID = 'alphaInvalid'
 NOT_ALPHA = 'notAlpha'
 STRING_EMPTY = 'alphaStringEmpty'
Variable Summary
Method Summary
 void __construct ([boolean|Zend_Config $allowWhiteSpace = false])
 boolean getAllowWhiteSpace ()
 boolean isValid (string $value)
 Zend_Filter_Alpha setAllowWhiteSpace (boolean $allowWhiteSpace)
Variables
static Zend_Filter_Alpha $_filter = null (line 52)

Alphabetic filter used for validation

  • access: protected
boolean $allowWhiteSpace (line 45)

Whether to allow white space characters; off by default

  • deprecated:
  • access: public
array $_messageTemplates = 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"
)
(line 59)

Validation failure message template definitions

  • access: protected

Redefinition of:
Zend_Validate_Abstract::$_messageTemplates
Validation failure message template definitions

Inherited Variables

Inherited from Zend_Validate_Abstract

Zend_Validate_Abstract::$_defaultTranslator
Zend_Validate_Abstract::$_errors
Zend_Validate_Abstract::$_messageLength
Zend_Validate_Abstract::$_messages
Zend_Validate_Abstract::$_messageVariables
Zend_Validate_Abstract::$_obscureValue
Zend_Validate_Abstract::$_translator
Zend_Validate_Abstract::$_translatorDisabled
Zend_Validate_Abstract::$_value
Methods
Constructor __construct (line 71)

Sets default option values for this instance

  • access: public
void __construct ([boolean|Zend_Config $allowWhiteSpace = false])
getAllowWhiteSpace (line 93)

Returns the allowWhiteSpace option

  • access: public
boolean getAllowWhiteSpace ()
isValid (line 118)

Defined by Zend_Validate_Interface

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

  • access: public
boolean isValid (string $value)
  • string $value
setAllowWhiteSpace (line 104)

Sets the allowWhiteSpace option

  • return: Provides a fluent interface
  • access: public
Zend_Filter_Alpha setAllowWhiteSpace (boolean $allowWhiteSpace)
  • boolean $allowWhiteSpace

Inherited Methods

Inherited From Zend_Validate_Abstract

 Zend_Validate_Abstract::getDefaultTranslator()
 Zend_Validate_Abstract::getErrors()
 Zend_Validate_Abstract::getMessageLength()
 Zend_Validate_Abstract::getMessages()
 Zend_Validate_Abstract::getMessageTemplates()
 Zend_Validate_Abstract::getMessageVariables()
 Zend_Validate_Abstract::getObscureValue()
 Zend_Validate_Abstract::getTranslator()
 Zend_Validate_Abstract::hasDefaultTranslator()
 Zend_Validate_Abstract::hasTranslator()
 Zend_Validate_Abstract::setDefaultTranslator()
 Zend_Validate_Abstract::setDisableTranslator()
 Zend_Validate_Abstract::setMessage()
 Zend_Validate_Abstract::setMessageLength()
 Zend_Validate_Abstract::setMessages()
 Zend_Validate_Abstract::setObscureValue()
 Zend_Validate_Abstract::setTranslator()
 Zend_Validate_Abstract::translatorIsDisabled()
 Zend_Validate_Abstract::_createMessage()
 Zend_Validate_Abstract::_error()
 Zend_Validate_Abstract::_setValue()
 Zend_Validate_Abstract::__get()
Class Constants
INVALID = 'alphaInvalid' (line 35)
NOT_ALPHA = 'notAlpha' (line 36)
STRING_EMPTY = 'alphaStringEmpty' (line 37)

Documentation generated on Mon, 21 Jun 2010 15:07:15 -0400 by phpDocumentor 1.4.3