web/lib/Zend/Session/Validator/Abstract.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    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_Session
    16  * @package    Zend_Session
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 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: Abstract.php 20096 2010-01-06 02:05:09Z bkarwin $
    19  * @version    $Id: Abstract.php 24593 2012-01-05 20:35:02Z matthew $
    20  * @since      Preview Release 0.2
    20  * @since      Preview Release 0.2
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @see Zend_Session_Validator_Interface
    24  * @see Zend_Session_Validator_Interface
    29  * Zend_Session_Validator_Abstract
    29  * Zend_Session_Validator_Abstract
    30  *
    30  *
    31  * @category   Zend
    31  * @category   Zend
    32  * @package    Zend_Session
    32  * @package    Zend_Session
    33  * @subpackage Validator
    33  * @subpackage Validator
    34  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    34  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    35  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    35  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    36  */
    36  */
    37 abstract class Zend_Session_Validator_Abstract implements Zend_Session_Validator_Interface
    37 abstract class Zend_Session_Validator_Abstract implements Zend_Session_Validator_Interface
    38 {
    38 {
    39 
    39 
    60      * @return mixed
    60      * @return mixed
    61      */
    61      */
    62     protected function getValidData()
    62     protected function getValidData()
    63     {
    63     {
    64         $validatorName = get_class($this);
    64         $validatorName = get_class($this);
    65 
    65         if (isset($_SESSION['__ZF']['VALID'][$validatorName])) {
    66         return $_SESSION['__ZF']['VALID'][$validatorName];
    66             return $_SESSION['__ZF']['VALID'][$validatorName];
       
    67         }
       
    68         return null;
    67     }
    69     }
    68 
    70 
    69 }
    71 }