web/lib/Zend/Validate/Alnum.php
changeset 1230 68c69c656a2c
parent 807 877f952ae2bd
equal deleted inserted replaced
1229:5a6b6e770365 1230:68c69c656a2c
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Validate
    16  * @package    Zend_Validate
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: Alnum.php 24593 2012-01-05 20:35:02Z matthew $
    19  * @version    $Id$
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @see Zend_Validate_Abstract
    23  * @see Zend_Validate_Abstract
    24  */
    24  */
    25 require_once 'Zend/Validate/Abstract.php';
    25 require_once 'Zend/Validate/Abstract.php';
    26 
    26 
    27 /**
    27 /**
    28  * @category   Zend
    28  * @category   Zend
    29  * @package    Zend_Validate
    29  * @package    Zend_Validate
    30  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    30  * @copyright  Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
    31  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    31  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    32  */
    32  */
    33 class Zend_Validate_Alnum extends Zend_Validate_Abstract
    33 class Zend_Validate_Alnum extends Zend_Validate_Abstract
    34 {
    34 {
    35     const INVALID      = 'alnumInvalid';
    35     const INVALID      = 'alnumInvalid';
    63     );
    63     );
    64 
    64 
    65     /**
    65     /**
    66      * Sets default option values for this instance
    66      * Sets default option values for this instance
    67      *
    67      *
    68      * @param  boolean|Zend_Config $allowWhiteSpace
    68      * @param boolean|Zend_Config $allowWhiteSpace
    69      * @return void
       
    70      */
    69      */
    71     public function __construct($allowWhiteSpace = false)
    70     public function __construct($allowWhiteSpace = false)
    72     {
    71     {
    73         if ($allowWhiteSpace instanceof Zend_Config) {
    72         if ($allowWhiteSpace instanceof Zend_Config) {
    74             $allowWhiteSpace = $allowWhiteSpace->toArray();
    73             $allowWhiteSpace = $allowWhiteSpace->toArray();