Definition at line 33 of file Abstract.php.
◆ _namespaceGet()
static& _namespaceGet |
( |
|
$namespace, |
|
|
|
$name = null |
|
) |
| |
|
staticprotected |
namespaceGet() - Get $name variable from $namespace, returning by reference.
- Parameters
-
string | $namespace | |
string | $name | |
- Returns
- mixed
- See also
- Zend_Session_Exception
Definition at line 140 of file Abstract.php.
142 if (self::$_readable ===
false) {
146 #require_once 'Zend/Session/Exception.php'; 150 if (
$name ===
null) {
151 if (isset($_SESSION[$namespace])) {
152 return $_SESSION[$namespace];
153 }
elseif (isset(self::$_expiringData[$namespace])) {
154 return self::$_expiringData[$namespace];
156 return $_SESSION[$namespace];
159 if (isset($_SESSION[$namespace][
$name])) {
160 return $_SESSION[$namespace][
$name];
161 }
elseif (isset(self::$_expiringData[$namespace][
$name])) {
162 return self::$_expiringData[$namespace][
$name];
164 return $_SESSION[$namespace][
$name];
elseif(isset( $params[ 'redirect_parent']))
if(!isset($_GET['name'])) $name
◆ _namespaceGetAll()
static _namespaceGetAll |
( |
|
$namespace | ) |
|
|
staticprotected |
namespaceGetAll() - Get an array containing $namespace, including expiring data.
- Parameters
-
string | $namespace | |
string | $name | |
- Returns
- mixed
Definition at line 177 of file Abstract.php.
179 $currentData = (isset($_SESSION[$namespace]) && is_array($_SESSION[$namespace])) ?
180 $_SESSION[$namespace] : array();
181 $expiringData = (isset(self::$_expiringData[$namespace]) && is_array(self::$_expiringData[$namespace])) ?
182 self::$_expiringData[$namespace] : array();
183 return array_merge($currentData, $expiringData);
◆ _namespaceIsset()
static _namespaceIsset |
( |
|
$namespace, |
|
|
|
$name = null |
|
) |
| |
|
staticprotected |
namespaceIsset() - check to see if a namespace or a variable within a namespace is set
- Parameters
-
string | $namespace | |
string | $name | |
- Returns
- bool
- See also
- Zend_Session_Exception
Definition at line 79 of file Abstract.php.
81 if (self::$_readable ===
false) {
85 #require_once 'Zend/Session/Exception.php'; 90 return ( isset($_SESSION[$namespace]) || isset(self::$_expiringData[$namespace]) );
92 return ( isset($_SESSION[$namespace][
$name]) || isset(self::$_expiringData[$namespace][
$name]) );
if(!isset($_GET['name'])) $name
◆ _namespaceUnset()
static _namespaceUnset |
( |
|
$namespace, |
|
|
|
$name = null |
|
) |
| |
|
staticprotected |
namespaceUnset() - unset a namespace or a variable within a namespace
- Parameters
-
string | $namespace | |
string | $name | |
- Exceptions
-
- Returns
- void
- See also
- Zend_Session_Exception
Definition at line 105 of file Abstract.php.
107 if (self::$_writable ===
false) {
111 #require_once 'Zend/Session/Exception.php'; 119 unset($_SESSION[$namespace]);
120 unset(self::$_expiringData[$namespace]);
122 unset($_SESSION[$namespace][
$name]);
123 unset(self::$_expiringData[$namespace][
$name]);
127 if (empty($_SESSION[$namespace])) {
128 unset($_SESSION[$namespace]);
if(!isset($_GET['name'])) $name
◆ $_expiringData
◆ $_readable
◆ $_writable
◆ _THROW_NOT_READABLE_MSG
const _THROW_NOT_READABLE_MSG = 'Zend_Session is not marked as readable.' |
Error message thrown when an action requires reading session data, but current Zend_Session is not marked as readable.
Definition at line 69 of file Abstract.php.
◆ _THROW_NOT_WRITABLE_MSG
const _THROW_NOT_WRITABLE_MSG = 'Zend_Session is currently marked as read-only.' |
Error message thrown when an action requires modification, but current Zend_Session has been marked as read-only.
Definition at line 62 of file Abstract.php.
The documentation for this class was generated from the following file:
- vendor/magento/zendframework1/library/Zend/Session/Abstract.php