API Documentation

Validate/Alnum.php

Includes Classes 
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
version
$Id: Alnum.php 22697 2010-07-26 21:14:47Z alexander $
Classes
Zend_Validate_Alnum

Description

Zend Framework

LICENSE

This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.

Zend_Validate_Alnum

Extends from
Zend_Validate_Abstract
category
Zend
copyright
Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
license
http://framework.zend.com/license/new-bsd New BSD License
package
Zend_Validate
Constants
INVALID
NOT_ALNUM
STRING_EMPTY
Properties
$allowWhiteSpace
$_filter
$_messageTemplates
Methods
__construct
getAllowWhiteSpace
setAllowWhiteSpace
isValid

Description

Constants

INVALID

 INVALID = 'alnumInvalid'

Details

value
alnumInvalid

NOT_ALNUM

 NOT_ALNUM = 'notAlnum'

Details

value
notAlnum

STRING_EMPTY

 STRING_EMPTY = 'alnumStringEmpty'

Details

value
alnumStringEmpty

Properties

$_filter

Zend_Filter_Alnum $_filter = 'null'

Alphanumeric filter used for validation

Details

$_filter
Zend_Filter_Alnum
visibility
protected
default
null
final
false
static
true

$_messageTemplates

array $_messageTemplates = 'array'

Validation failure message template definitions

Details

$_messageTemplates
array
visibility
protected
default
array
final
false
static
false

$allowWhiteSpace

boolean $allowWhiteSpace = ''

Whether to allow white space characters; off by default

Details

$allowWhiteSpace
boolean
visibility
public
default
final
false
static
false
deprecated

Methods

__construct

__construct( boolean|Zend_Config $allowWhiteSpace = false ) : void

Sets default option values for this instance

Arguments
$allowWhiteSpace
booleanZend_Config
Details
visibility
public
final
false
static
false

getAllowWhiteSpace

getAllowWhiteSpace( ) : boolean

Returns the allowWhiteSpace option

Output
boolean
Details
visibility
public
final
false
static
false

isValid

isValid( string $value ) : boolean

Defined by Zend_Validate_Interface

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

Arguments
$value
string
Output
boolean
Details
visibility
public
final
false
static
false

setAllowWhiteSpace

setAllowWhiteSpace( boolean $allowWhiteSpace ) : Zend_Filter_Alnum

Sets the allowWhiteSpace option

Arguments
$allowWhiteSpace
boolean
Output
Zend_Filter_Alnum
Provides a fluent interface
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox.