Documentation

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

$_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

$_xpathExtends

Xpath describing nodes in configuration that need to be extended

protected mixed $_xpathExtends = '//*[@extends]'
Tags
example

Methods

__construct()

Load config from merged adminhtml.xml files

public __construct() : mixed

applyExtends()

Process configuration xml

public applyExtends() : $this
Return values
$this

extend()

public extend(Config $config[, bool $overwrite = true ]) : $this
Parameters
$config : Config
$overwrite : bool = true
Return values
$this

fetchCacheChecksum()

public fetchCacheChecksum() : bool
Return values
bool

getAclPrivilegeSet()

Retrieve privilege set by name

public getAclPrivilegeSet([string $name = '' ]) : false|SimpleXMLElement|Element
Parameters
$name : string = ''
Return values
false|SimpleXMLElement|Element

getAdminhtmlConfig()

Retrieve xml config

public getAdminhtmlConfig() : Config
Return values
Config

getCacheChecksum()

public getCacheChecksum() : string|false|null
Return values
string|false|null

getCacheChecksumId()

public getCacheChecksumId() : string
Return values
string

getCacheId()

public getCacheId() : string
Return values
string

getCacheLifetime()

public getCacheLifetime() : int
Return values
int

getCacheSaved()

public getCacheSaved() : bool
Return values
bool

getCacheTags()

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
string

getNode()

Returns node found by the $path

public getNode([string $path = null ]) : Element|false
Parameters
$path : string = null
Tags
see
Element::descend
Return values
Element|false

getXmlString()

Return Xml of node as string

public getXmlString() : string
Return values
string

getXpath()

Returns nodes found by xpath expression

public getXpath(string $xpath) : array<string|int, Element>|false
Parameters
$xpath : string
Return values
array<string|int, Element>|false

loadCache()

public loadCache() : bool
Return values
bool

loadDom()

Imports DOM node

public loadDom(DOMNode $dom) : bool
Parameters
$dom : DOMNode
Return values
bool

loadFile()

Imports XML file

public loadFile(string $filePath) : bool
Parameters
$filePath : string
Return values
bool

loadString()

Imports XML string

public loadString(string $string) : bool
Parameters
$string : string
Return values
bool

processFileData()

Stub method for processing file data right after loading the file text

public processFileData(string $text) : string
Parameters
$text : string
Return values
string

removeCache()

public removeCache() : $this
Return values
$this

saveCache()

public saveCache([array<string|int, mixed> $tags = null ]) : $this
Parameters
$tags : array<string|int, mixed> = null
Return values
$this

setCacheChecksum()

public setCacheChecksum(string|null $data) : $this
Parameters
$data : string|null
Return values
$this

setCacheId()

public setCacheId(string $id) : $this
Parameters
$id : string
Return values
$this

setCacheLifetime()

public setCacheLifetime(int $lifetime) : $this
Parameters
$lifetime : int
Return values
$this

setCacheSaved()

public setCacheSaved(bool $flag) : $this
Parameters
$flag : bool
Return values
$this

setCacheTags()

public setCacheTags(array<string|int, mixed> $tags) : $this
Parameters
$tags : array<string|int, mixed>
Return values
$this

setNode()

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
$this

setXml()

Sets xml for this configuration

public setXml(Element $node) : $this
Parameters
$node : Element
Return values
$this

updateCacheChecksum()

public updateCacheChecksum(string|false $data) : $this
Parameters
$data : string|false
Return values
$this

validateCacheChecksum()

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
todo

check this, as there are no caches that implement remove() method

_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
Return values
bool
On this page

Search results