Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
App
Request
DataPersistor.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework\App\Request
;
7
8
use
Magento\Framework\Session\SessionManagerInterface
;
9
10
class
DataPersistor
implements
DataPersistorInterface
11
{
15
protected
$session
;
16
20
public
function
__construct
(
21
SessionManagerInterface
$session
22
) {
23
$this->session =
$session
;
24
}
25
33
public
function
set
($key,
$data
)
34
{
35
$method
=
'set'
. ucfirst($key) .
'Data'
;
36
call_user_func_array([$this->session,
$method
], [
$data
]);
37
}
38
45
public
function
get
($key)
46
{
47
$method
=
'get'
. ucfirst($key) .
'Data'
;
48
return
call_user_func_array([$this->session,
$method
], []);
49
}
50
57
public
function
clear
($key)
58
{
59
$method
=
'uns'
. ucfirst($key) .
'Data'
;
60
call_user_func_array([$this->session,
$method
], []);
61
}
62
}
Magento\Framework\App\Request\DataPersistorInterface
Definition:
DataPersistorInterface.php:12
Magento\Framework\App\Request\DataPersistor
Definition:
DataPersistor.php:10
Magento\Framework\App\Request\DataPersistor\clear
clear($key)
Definition:
DataPersistor.php:57
Magento\Framework\App\Request\DataPersistor\__construct
__construct(SessionManagerInterface $session)
Definition:
DataPersistor.php:20
Magento\Framework\Session\SessionManagerInterface
Definition:
SessionManagerInterface.php:16
Magento\Framework\App\Request\DataPersistor\$session
$session
Definition:
DataPersistor.php:15
$data
$data
Definition:
attribute_set_with_image_attribute.php:16
$method
$method
Definition:
info.phtml:13
Magento\Framework\App\Request
Definition:
CompositeValidator.php:9