|
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
| __construct ($sourceData=null) | |
| setXml (Element $node) | |
| getNode ($path=null) | |
| getXpath ($xpath) | |
| getXmlString () | |
| loadFile ($filePath) | |
| loadString ($string) | |
| loadDom (\DOMNode $dom) | |
| setNode ($path, $value, $overwrite=true) | |
| applyExtends () | |
| processFileData ($text) | |
| extend (Config $config, $overwrite=true) | |
| __destruct () | |
Protected Member Functions | |
| getXml () | |
Protected Attributes | |
| $_xml = null | |
| $_elementClass = \Magento\Framework\Simplexml\Element::class | |
| $_xpathExtends = "//*[@extends]" | |
Base class for simplexml based configurations
@api
Definition at line 14 of file Config.php.
| __construct | ( | $sourceData = null | ) |
Constructor
Initializes XML for this configuration
| Element | string | $sourceData |
Definition at line 45 of file Config.php.
| __destruct | ( | ) |
Cleanup circular references
Destructor should be called explicitly in order to work around the PHP bug https://bugs.php.net/bug.php?id=62468
Definition at line 242 of file Config.php.
| applyExtends | ( | ) |
| extend | ( | Config | $config, |
$overwrite = true |
|||
| ) |
Enter description here...
| Config | $config | |
| boolean | $overwrite |
Definition at line 228 of file Config.php.
| getNode | ( | $path = null | ) |
Returns node found by the $path
| string | $path |
Definition at line 80 of file Config.php.
|
protected |
| getXmlString | ( | ) |
| getXpath | ( | $xpath | ) |
Returns nodes found by xpath expression
| string | $xpath |
Definition at line 97 of file Config.php.
| loadDom | ( | \DOMNode | $dom | ) |
| loadFile | ( | $filePath | ) |
Imports XML file
| string | $filePath |
Definition at line 127 of file Config.php.
| loadString | ( | $string | ) |
Imports XML string
| string | $string |
Definition at line 145 of file Config.php.
| processFileData | ( | $text | ) |
Stub method for processing file data right after loading the file text
| string | $text |
Definition at line 216 of file Config.php.
| setNode | ( | $path, | |
| $value, | |||
$overwrite = true |
|||
| ) |
Create node by $path and set its value.
| string | $path | separated by slashes |
| string | $value | |
| boolean | $overwrite |
Definition at line 182 of file Config.php.
| setXml | ( | Element | $node | ) |
Sets xml for this configuration
| Element | $node |
Definition at line 67 of file Config.php.
|
protected |
Definition at line 28 of file Config.php.
|
protected |
Definition at line 21 of file Config.php.
|
protected |
Definition at line 35 of file Config.php.