Mage_Admin_Model_Config
extends Config
in package
Table of Contents
Properties
- $_adminhtmlConfig : Config
- adminhtml.xml merged config
- $_cache : Mage_Core_Model_Cache
- Cache resource object
- $_cacheChecksum : string|false|null
- $_cacheId : string
- $_cacheLifetime : int
- $_cacheSaved : bool
- $_cacheTags : array<string|int, mixed>
- $_elementClass : string
- Class name of simplexml elements for this configuration
- $_xml : Element|null
- Configuration xml
- $_xpathExtends : mixed
- Xpath describing nodes in configuration that need to be extended
Methods
- __construct() : mixed
- Load config from merged adminhtml.xml files
- applyExtends() : $this
- Process configuration xml
- extend() : $this
- fetchCacheChecksum() : bool
- getAclAssert() : false|SimpleXMLElement|Element|Mage_Core_Model_Config_Element
- Get acl assert config
- getAclPrivilegeSet() : false|SimpleXMLElement|Element
- Retrieve privilege set by name
- getAdminhtmlConfig() : Config
- Retrieve xml config
- getCache() : Mage_Core_Model_Cache
- getCacheChecksum() : string|false|null
- getCacheChecksumId() : string
- getCacheId() : string
- getCacheLifetime() : int
- getCacheSaved() : bool
- getCacheTags() : array<string|int, mixed>
- getMenuItemLabel() : string
- Get menu item label by item path
- getNode() : Element|false
- Returns node found by the $path
- getXmlString() : string
- Return Xml of node as string
- getXpath() : array<string|int, Element>|false
- Returns nodes found by xpath expression
- loadAclResources() : $this
- Load Acl resources from config
- loadCache() : bool
- loadDom() : bool
- Imports DOM node
- loadFile() : bool
- Imports XML file
- loadString() : bool
- Imports XML string
- processFileData() : string
- Stub method for processing file data right after loading the file text
- removeCache() : $this
- saveCache() : $this
- setCache() : self
- setCacheChecksum() : $this
- setCacheId() : $this
- setCacheLifetime() : $this
- setCacheSaved() : $this
- setCacheTags() : $this
- setNode() : $this
- Create node by $path and set its value.
- setXml() : $this
- Sets xml for this configuration
- updateCacheChecksum() : $this
- validateCacheChecksum() : bool
- _loadCache() : bool
- _removeCache() : mixed
- _saveCache() : bool
Properties
$_adminhtmlConfig
adminhtml.xml merged config
protected
Config
$_adminhtmlConfig
$_cache
Cache resource object
protected
Mage_Core_Model_Cache
$_cache
= null
$_cacheChecksum
protected
string|false|null
$_cacheChecksum
= false
$_cacheId
protected
string
$_cacheId
= null
$_cacheLifetime
protected
int
$_cacheLifetime
= null
$_cacheSaved
protected
bool
$_cacheSaved
= false
$_cacheTags
protected
array<string|int, mixed>
$_cacheTags
= []
$_elementClass
Class name of simplexml elements for this configuration
protected
string
$_elementClass
= \Maho\Simplexml\Element::class
$_xml
Configuration xml
protected
Element|null
$_xml
= null
$_xpathExtends
Xpath describing nodes in configuration that need to be extended
protected
mixed
$_xpathExtends
= '//*[@extends]'
Tags
Methods
__construct()
Load config from merged adminhtml.xml files
public
__construct() : mixed
applyExtends()
Process configuration xml
public
applyExtends() : $this
Return values
$thisextend()
public
extend(Config $config[, bool $overwrite = true ]) : $this
Parameters
- $config : Config
- $overwrite : bool = true
Return values
$thisfetchCacheChecksum()
public
fetchCacheChecksum() : bool
Return values
boolgetAclAssert()
Get acl assert config
public
getAclAssert([string $name = '' ]) : false|SimpleXMLElement|Element|Mage_Core_Model_Config_Element
Parameters
- $name : string = ''
Return values
false|SimpleXMLElement|Element|Mage_Core_Model_Config_ElementgetAclPrivilegeSet()
Retrieve privilege set by name
public
getAclPrivilegeSet([string $name = '' ]) : false|SimpleXMLElement|Element
Parameters
- $name : string = ''
Return values
false|SimpleXMLElement|ElementgetAdminhtmlConfig()
Retrieve xml config
public
getAdminhtmlConfig() : Config
Return values
ConfiggetCache()
public
getCache() : Mage_Core_Model_Cache
Return values
Mage_Core_Model_CachegetCacheChecksum()
public
getCacheChecksum() : string|false|null
Return values
string|false|nullgetCacheChecksumId()
public
getCacheChecksumId() : string
Return values
stringgetCacheId()
public
getCacheId() : string
Return values
stringgetCacheLifetime()
public
getCacheLifetime() : int
Return values
intgetCacheSaved()
public
getCacheSaved() : bool
Return values
boolgetCacheTags()
public
getCacheTags() : array<string|int, mixed>
Return values
array<string|int, mixed>getMenuItemLabel()
Get menu item label by item path
public
getMenuItemLabel(string $path) : string
Parameters
- $path : string
Return values
stringgetNode()
Returns node found by the $path
public
getNode([string $path = null ]) : Element|false
Parameters
- $path : string = null
Tags
Return values
Element|falsegetXmlString()
Return Xml of node as string
public
getXmlString() : string
Return values
stringgetXpath()
Returns nodes found by xpath expression
public
getXpath(string $xpath) : array<string|int, Element>|false
Parameters
- $xpath : string
Return values
array<string|int, Element>|falseloadAclResources()
Load Acl resources from config
public
loadAclResources(Mage_Admin_Model_Acl $acl[, Mage_Core_Model_Config_Element|Element $resource = null ][, string $parentName = null ]) : $this
Parameters
- $acl : Mage_Admin_Model_Acl
- $resource : Mage_Core_Model_Config_Element|Element = null
- $parentName : string = null
Return values
$thisloadCache()
public
loadCache() : bool
Return values
boolloadDom()
Imports DOM node
public
loadDom(DOMNode $dom) : bool
Parameters
- $dom : DOMNode
Return values
boolloadFile()
Imports XML file
public
loadFile(string $filePath) : bool
Parameters
- $filePath : string
Return values
boolloadString()
Imports XML string
public
loadString(string $string) : bool
Parameters
- $string : string
Return values
boolprocessFileData()
Stub method for processing file data right after loading the file text
public
processFileData(string $text) : string
Parameters
- $text : string
Return values
stringremoveCache()
public
removeCache() : $this
Return values
$thissaveCache()
public
saveCache([array<string|int, mixed> $tags = null ]) : $this
Parameters
- $tags : array<string|int, mixed> = null
Return values
$thissetCache()
public
setCache(Mage_Core_Model_Cache $cache) : self
Parameters
- $cache : Mage_Core_Model_Cache
Return values
selfsetCacheChecksum()
public
setCacheChecksum(string|null $data) : $this
Parameters
- $data : string|null
Return values
$thissetCacheId()
public
setCacheId(string $id) : $this
Parameters
- $id : string
Return values
$thissetCacheLifetime()
public
setCacheLifetime(int $lifetime) : $this
Parameters
- $lifetime : int
Return values
$thissetCacheSaved()
public
setCacheSaved(bool $flag) : $this
Parameters
- $flag : bool
Return values
$thissetCacheTags()
public
setCacheTags(array<string|int, mixed> $tags) : $this
Parameters
- $tags : array<string|int, mixed>
Return values
$thissetNode()
Create node by $path and set its value.
public
setNode(string $path, string $value[, bool $overwrite = true ]) : $this
Parameters
- $path : string
-
separated by slashes
- $value : string
- $overwrite : bool = true
Return values
$thissetXml()
Sets xml for this configuration
public
setXml(Element $node) : $this
Parameters
- $node : Element
Return values
$thisupdateCacheChecksum()
public
updateCacheChecksum(string|false $data) : $this
Parameters
- $data : string|false
Return values
$thisvalidateCacheChecksum()
public
validateCacheChecksum() : bool
Return values
bool_loadCache()
protected
_loadCache(string $id) : bool
Parameters
- $id : string
Return values
bool_removeCache()
protected
_removeCache(string $id) : mixed
Parameters
- $id : string
Tags
_saveCache()
protected
_saveCache(string $data, string $id[, array<string|int, mixed> $tags = [] ][, int|bool $lifetime = false ]) : bool
Parameters
- $data : string
- $id : string
- $tags : array<string|int, mixed> = []
- $lifetime : int|bool = false