Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Protected Member Functions
Zend_Session_Validator_Abstract Class Reference
Inheritance diagram for Zend_Session_Validator_Abstract:
Zend_Session_Validator_Interface Zend_Session_Validator_HttpUserAgent

Protected Member Functions

 setValidData ($data)
 
 getValidData ()
 

Additional Inherited Members

- Public Member Functions inherited from Zend_Session_Validator_Interface
 setup ()
 
 validate ()
 

Detailed Description

Definition at line 37 of file Abstract.php.

Member Function Documentation

◆ getValidData()

getValidData ( )
protected

GetValidData() - This method should be used to retrieve the environment variables that will be needed to 'validate' a session.

Returns
mixed

Definition at line 62 of file Abstract.php.

63  {
64  $validatorName = get_class($this);
65  if (isset($_SESSION['__ZF']['VALID'][$validatorName])) {
66  return $_SESSION['__ZF']['VALID'][$validatorName];
67  }
68  return null;
69  }

◆ setValidData()

setValidData (   $data)
protected

SetValidData() - This method should be used to store the environment variables that will be needed in order to validate the session later in the validate() method. These values are stored in the session in the __ZF namespace, in an array named VALID

Parameters
mixed$data
Returns
void

Definition at line 48 of file Abstract.php.

49  {
50  $validatorName = get_class($this);
51 
52  $_SESSION['__ZF']['VALID'][$validatorName] = $data;
53  }

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