OXID eShop CE
6.1.5
|
Public Member Functions | |
getTabs ($id, $act, $setActive=true) | |
getActiveTab ($id, $act) | |
getBtn ($class) | |
getDomXml () | |
getListNodes ($nodes) | |
markNodeActive ($nodeId) | |
getListUrl ($id) | |
getEditUrl ($id, $actTab) | |
getClassId ($className) | |
Protected Member Functions | |
_cleanEmptyParents ($dom, $parentXPath, $childXPath) | |
_addLinks ($dom) | |
_loadFromFile ($menuFile, $dom) | |
_addDynLinks ($dom) | |
_sessionizeLocalUrls ($dom) | |
_checkRights ($dom) | |
_checkGroups ($dom) | |
_checkDemoShopDenials ($dom) | |
removeInvisibleMenuNodes ($dom) | |
_copyAttributes ($domElemTo, $domElemFrom) | |
_mergeNodes ($domElemTo, $domElemFrom, $xPathTo, $domDocTo, $queryStart) | |
_merge ($domNew, $dom) | |
_getMenuFiles () | |
_checkDynFile ($dynFilePath) | |
_processCachedFile ($cacheContents) | |
_getInitialDom () | |
_getAdminUrl () | |
_hasRights ($rights) | |
_hasGroup ($groupId) | |
_getDynMenuUrl ($lang, $loadDynContents) | |
_getDynMenuLang () | |
onGettingDomXml () | |
Protected Attributes | |
$_oDom = null | |
$_oInitialDom = null | |
$_sDynIncludeUrl = null | |
$_aSupportedExpathXmlEncodings = ['utf-8', 'utf-16', 'iso-8859-1', 'us-ascii'] | |
Navigation tree control class
|
protected |
Adds to element DynTabs
object | $dom | dom element to add links |
|
protected |
Adds links to xml nodes to resolve paths
DomDocument | $dom | where to add links |
|
protected |
Removes form tree elements if this is demo shop and elements have disableForDemoShop="1"
DOMDocument | $dom | document to check group |
|
protected |
Checks if dyn file is valid for inclusion
string | $dynFilePath | dyn file path |
|
protected |
Removes from tree elements which don't have required groups
DOMDocument | $dom | document to check group |
|
protected |
Removes form tree elements which does not have required user rights
object | $dom | DOMDocument |
|
protected |
clean empty nodes from tree
object | $dom | dom object |
string | $parentXPath | parent xpath |
string | $childXPath | child xpath from parent |
|
protected |
Copys attributes form one element to another
object | $domElemTo | DOMElement |
object | $domElemFrom | DOMElement |
|
protected |
Admin url getter
|
protected |
Get dynamic pages language code
|
protected |
Get dynamic pages url or local path
int | $lang | language id |
string | $loadDynContents | get local or remote content path |
|
protected |
get initial dom, not modified by init method
|
protected |
Returns array witn pathes + names ox manu xml files. Paths are checked
|
protected |
Checks if user in required group
string | $groupId | active group id |
|
protected |
Checks if user has required rights
string | $rights | session user rights |
|
protected |
Loads data form XML file, and merges it with main oDomXML.
string | $menuFile | which file to load |
DomDocument | $dom | where to load |
|
protected |
If oDomXML exist meges nodes
DomDocument | $domNew | what to merge |
DomDocument | $dom | where to merge |
|
protected |
Merges nodes of newly added menu xml file
object | $domElemTo | merge target |
object | $domElemFrom | merge source |
object | $xPathTo | node path |
object | $domDocTo | node to append child |
string | $queryStart | node query |
|
protected |
Method is used for overriding.
string | $cacheContents |
|
protected |
add session parameters to local urls
object | $dom | dom element to add links |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getActiveTab | ( | $id, | |
$act | |||
) |
Returns active TAB class name
string | $id | class name |
int | $act | active tab number |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getBtn | ( | $class | ) |
returns from oDomXML tree buttons stdClass, which belongs to $class
string | $class | class name |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getClassId | ( | $className | ) |
Returns id of class assigned to current node
string | $className | active class name |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getDomXml | ( | ) |
Returns DomXML
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getEditUrl | ( | $id, | |
$actTab | |||
) |
Formats and returns url for edit area
string | $id | tab related class |
int | $actTab | active tab |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getListNodes | ( | $nodes | ) |
Returns DOMNodeList of given navigation classes
array | $nodes | Node array |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getListUrl | ( | $id | ) |
Formats and returns url for list area
string | $id | tab related class |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::getTabs | ( | $id, | |
$act, | |||
$setActive = true |
|||
) |
Returns from oDomXML tree tabs DOMNodeList, which belongs to $id
string | $id | class name |
int | $act | current tab number |
bool | $setActive | marks tab as active |
OxidEsales\EshopCommunity\Application\Controller\Admin\NavigationTree::markNodeActive | ( | $nodeId | ) |
Marks passed node as active
string | $nodeId | node id |
|
protected |
Method is used for overriding.
|
protected |
Removes node from tree elements if it is marked as not visible (visible="0")
DOMDocument | $dom | document to check group |
|
protected |
|
protected |
stores DOM object for all navigation tree
|
protected |
keeps unmodified dom
|
protected |