Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions
Schema Class Reference
Inheritance diagram for Schema:
DataObject

Public Member Functions

 load ($schema)
 
 extract ($rawData)
 
- Public Member Functions inherited from DataObject
 __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)
 

Additional Inherited Members

- Protected Member Functions inherited from DataObject
 _getData ($key)
 
 _underscore ($name)
 
- Protected Attributes inherited from DataObject
 $_data = []
 
- Static Protected Attributes inherited from DataObject
static $_underscoreCache = []
 

Detailed Description

Definition at line 8 of file Schema.php.

Member Function Documentation

◆ extract()

extract (   $rawData)
Parameters
mixed$rawData
Returns
DataArray

Definition at line 30 of file Schema.php.

31  {
32  $elements = $rawData;
33  return new DataArray($elements);
34  }

◆ load()

load (   $schema)
Parameters
mixed$schema
Returns
void

Definition at line 14 of file Schema.php.

15  {
16  if (is_array($schema)) {
17  $this->setData($schema);
18  } elseif (is_string($schema)) {
19  if (is_file($schema)) {
20  include $schema;
21  $this->setData($schema);
22  }
23  }
24  }
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
setData($key, $value=null)
Definition: DataObject.php:72

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