Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Abstract.php
Go to the documentation of this file.
1 <?php
26 #require_once 'Zend/Session/Validator/Interface.php';
27 
38 {
39 
48  protected function setValidData($data)
49  {
50  $validatorName = get_class($this);
51 
52  $_SESSION['__ZF']['VALID'][$validatorName] = $data;
53  }
54 
55 
62  protected function getValidData()
63  {
64  $validatorName = get_class($this);
65  if (isset($_SESSION['__ZF']['VALID'][$validatorName])) {
66  return $_SESSION['__ZF']['VALID'][$validatorName];
67  }
68  return null;
69  }
70 
71 }