Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct ($namespace='default', array $data=[]) | |
init (array $data) | |
getNamespace () | |
getData ($key='', $clear=false) | |
![]() | |
__construct (array $data=[]) | |
addData (array $arr) | |
setData ($key, $value=null) | |
unsetData ($key=null) | |
getData ($key='', $index=null) | |
getDataByPath ($path) | |
getDataByKey ($key) | |
setDataUsingMethod ($key, $args=[]) | |
getDataUsingMethod ($key, $args=null) | |
hasData ($key='') | |
toArray (array $keys=[]) | |
convertToArray (array $keys=[]) | |
toXml (array $keys=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
convertToXml (array $arrAttributes=[], $rootName='item', $addOpenTag=false, $addCdata=true) | |
toJson (array $keys=[]) | |
convertToJson (array $keys=[]) | |
toString ($format='') | |
__call ($method, $args) | |
isEmpty () | |
serialize ($keys=[], $valueSeparator='=', $fieldSeparator=' ', $quote='"') | |
debug ($data=null, &$objects=[]) | |
offsetSet ($offset, $value) | |
offsetExists ($offset) | |
offsetUnset ($offset) | |
offsetGet ($offset) | |
Protected Attributes | |
$namespace | |
![]() | |
$_data = [] | |
Additional Inherited Members | |
![]() | |
_getData ($key) | |
_underscore ($name) | |
![]() | |
static | $_underscoreCache = [] |
Definition at line 10 of file Storage.php.
__construct | ( | $namespace = 'default' , |
|
array | $data = [] |
||
) |
getData | ( | $key = '' , |
|
$clear = false |
|||
) |
Additional get data with clear mode
string | $key | |
bool | $clear |
Definition at line 58 of file Storage.php.
getNamespace | ( | ) |
{Get current storage namespace
Implements StorageInterface.
Definition at line 46 of file Storage.php.
init | ( | array | $data | ) |
{Initialize storage data
array | $data |
Implements StorageInterface.
Definition at line 34 of file Storage.php.
|
protected |
Definition at line 17 of file Storage.php.