Inheritance diagram for OxNavigationTree:
Collaboration diagram for OxNavigationTree:Public Member Functions | |
| init () | |
| getTabs ($sId, $iAct, $blSetActive=true) | |
| getActiveTab ($sId, $iAct) | |
| getBtn ($sClass) | |
| getDomXml () | |
| getListNodes ($aNodes) | |
| markNodeActive ($sNodeId) | |
| getListUrl ($sId) | |
| getEditUrl ($sId, $iActTab) | |
| getClassId ($sClassName) | |
| getShopVersionNr () | |
Protected Member Functions | |
| _cleanEmptyParents ($oDom, $sParentXPath, $sChildXPath) | |
| _addLinks ($oDom) | |
| _loadFromFile ($sMenuFile, $oDom) | |
| _addDynLinks ($oDom) | |
| _sessionizeLocalUrls ($oDom) | |
| _checkRights ($oDom) | |
| _checkGroups ($oDom) | |
| _checkDemoShopDenials ($oDom) | |
| _copyAttributes ($oDomElemTo, $oDomElemFrom) | |
| _mergeNodes ($oDomElemTo, $oDomElemFrom, $oXPathTo, $oDomDocTo, $sQueryStart) | |
| _merge ($oDomNew, $oDom) | |
| _getMenuFiles () | |
| _checkDynFile ($sDynFilePath) | |
| _processCachedFile ($sCacheContents) | |
| _getInitialDom () | |
| _getAdminUrl () | |
| _hasRights ($sRights) | |
| _hasGroup ($sGroupId) | |
| _getDynMenuUrl ($iLang, $blLoadDynContents) | |
| _getDynMenuLang () | |
Protected Attributes | |
| $_oDom = null | |
| $_oInitialDom = null | |
| $_sDynIncludeUrl = null | |
| $_aSupportedExpathXmlEncodings = array( 'utf-8', 'utf-16', 'iso-8859-1', 'us-ascii' ) | |
Navigation tree control class
Definition at line 6 of file oxnavigationtree.php.
| OxNavigationTree._addDynLinks | ( | $ | oDom | ) | [protected] |
Adds to element DynTabs
| object | $oDom dom element to add links |
Definition at line 139 of file oxnavigationtree.php.
| OxNavigationTree._addLinks | ( | $ | oDom | ) | [protected] |
Adds links to xml nodes to resolve paths
| DomDocument | $oDom where to add links |
Definition at line 72 of file oxnavigationtree.php.
| OxNavigationTree._checkDemoShopDenials | ( | $ | oDom | ) | [protected] |
Removes form tree elements if this is demo shop and elements have disableForDemoShop="1"
| DOMDocument | $oDom document to check group |
Definition at line 299 of file oxnavigationtree.php.
| OxNavigationTree._checkDynFile | ( | $ | sDynFilePath | ) | [protected] |
Checks if dyn file is valid for inclusion
| string | $sDynFilePath dyn file path |
Definition at line 543 of file oxnavigationtree.php.
| OxNavigationTree._checkGroups | ( | $ | oDom | ) | [protected] |
Removes form tree elements whitch doesn't have requred groups
| DOMDocument | $oDom document to check group |
Definition at line 266 of file oxnavigationtree.php.
| OxNavigationTree._checkRights | ( | $ | oDom | ) | [protected] |
Removes form tree elements whitch doesn't have requred user rights
| object | $oDom DOMDocument |
Definition at line 233 of file oxnavigationtree.php.
| OxNavigationTree._cleanEmptyParents | ( | $ | oDom, | |
| $ | sParentXPath, | |||
| $ | sChildXPath | |||
| ) | [protected] |
clean empty nodes from tree
| object | $oDom dom object | |
| string | $sParentXPath parent xpath | |
| string | $sChildXPath child xpath from parent |
Definition at line 51 of file oxnavigationtree.php.
| OxNavigationTree._copyAttributes | ( | $ | oDomElemTo, | |
| $ | oDomElemFrom | |||
| ) | [protected] |
Copys attributes form one element to another
| object | $oDomElemTo DOMElement | |
| object | $oDomElemFrom DOMElement |
Definition at line 323 of file oxnavigationtree.php.
| OxNavigationTree._getAdminUrl | ( | ) | [protected] |
| OxNavigationTree._getDynMenuLang | ( | ) | [protected] |
| OxNavigationTree._getDynMenuUrl | ( | $ | iLang, | |
| $ | blLoadDynContents | |||
| ) | [protected] |
Get dynamic pages url or local path
| int | $iLang language id | |
| string | $blLoadDynContents get local or remote content path |
Definition at line 852 of file oxnavigationtree.php.
| OxNavigationTree._getInitialDom | ( | ) | [protected] |
get initial dom, not modified by init method
Definition at line 589 of file oxnavigationtree.php.
| OxNavigationTree._getMenuFiles | ( | ) | [protected] |
Returns array witn pathes + names ox manu xml files. Paths are checked
Definition at line 461 of file oxnavigationtree.php.
| OxNavigationTree._hasGroup | ( | $ | sGroupId | ) | [protected] |
Checks if user in required group
| string | $sGroupId active group id |
Definition at line 800 of file oxnavigationtree.php.
| OxNavigationTree._hasRights | ( | $ | sRights | ) | [protected] |
Checks if user has required rights
| string | $sRights session user rights |
Definition at line 788 of file oxnavigationtree.php.
| OxNavigationTree._loadFromFile | ( | $ | sMenuFile, | |
| $ | oDom | |||
| ) | [protected] |
Loads data form XML file, and merges it with main oDomXML.
| string | $sMenuFile which file to load | |
| DomDocument | $oDom where to load |
Definition at line 101 of file oxnavigationtree.php.
| OxNavigationTree._merge | ( | $ | oDomNew, | |
| $ | oDom | |||
| ) | [protected] |
If oDomXML exist meges nodes
| DomDocument | $oDomNew what to merge | |
| DomDocument | $oDom where to merge |
Definition at line 379 of file oxnavigationtree.php.
| OxNavigationTree._mergeNodes | ( | $ | oDomElemTo, | |
| $ | oDomElemFrom, | |||
| $ | oXPathTo, | |||
| $ | oDomDocTo, | |||
| $ | sQueryStart | |||
| ) | [protected] |
Merges nodes of newly added menu xml file
| object | $oDomElemTo merge target | |
| object | $oDomElemFrom merge source | |
| object | $oXPathTo node path | |
| object | $oDomDocTo node to append child | |
| string | $sQueryStart node query |
Definition at line 341 of file oxnavigationtree.php.
| OxNavigationTree._processCachedFile | ( | $ | sCacheContents | ) | [protected] |
process cache contents and return the result deprecated, as cache files are cleared from session data, which is only added after loading the cache by _sessionizeLocalUrls()
| string | $sCacheContents initial cached string |
Definition at line 579 of file oxnavigationtree.php.
| OxNavigationTree._sessionizeLocalUrls | ( | $ | oDom | ) | [protected] |
add session parameters to local urls
| object | $oDom dom element to add links |
Definition at line 210 of file oxnavigationtree.php.
| OxNavigationTree.getActiveTab | ( | $ | sId, | |
| $ | iAct | |||
| ) |
Returns active TAB class name
| string | $sId class name | |
| int | $iAct active tab number |
Definition at line 422 of file oxnavigationtree.php.
| OxNavigationTree.getBtn | ( | $ | sClass | ) |
returns from oDomXML tree buttons stdClass, which belongs to $sClass
| string | $sClass class name |
Definition at line 441 of file oxnavigationtree.php.
| OxNavigationTree.getClassId | ( | $ | sClassName | ) |
Returns id of class assigned to current node
| string | $sClassName active class name |
Definition at line 812 of file oxnavigationtree.php.
| OxNavigationTree.getDomXml | ( | ) |
| OxNavigationTree.getEditUrl | ( | $ | sId, | |
| $ | iActTab | |||
| ) |
Formats and returns url for edit area
| string | $sId tab related class | |
| int | $iActTab active tab |
Definition at line 740 of file oxnavigationtree.php.
| OxNavigationTree.getListNodes | ( | $ | aNodes | ) |
Returns DOMNodeList of given navigation classes
| array | $aNodes Node array |
Definition at line 678 of file oxnavigationtree.php.
| OxNavigationTree.getListUrl | ( | $ | sId | ) |
Formats and returns url for list area
| string | $sId tab related class |
Definition at line 715 of file oxnavigationtree.php.
| OxNavigationTree.getShopVersionNr | ( | ) |
Returns current shop version number
Definition at line 832 of file oxnavigationtree.php.
| OxNavigationTree.getTabs | ( | $ | sId, | |
| $ | iAct, | |||
| $ | blSetActive = true | |||
| ) |
Returns from oDomXML tree tabs DOMNodeList, which belongs to $sId
| string | $sId class name | |
| int | $iAct current tab number | |
| bool | $blSetActive marks tab as active |
Definition at line 394 of file oxnavigationtree.php.
| OxNavigationTree.init | ( | ) |
Empty init method
Definition at line 38 of file oxnavigationtree.php.
| OxNavigationTree.markNodeActive | ( | $ | sNodeId | ) |
Marks passed node as active
| string | $sNodeId node id |
Definition at line 693 of file oxnavigationtree.php.
OxNavigationTree.$_aSupportedExpathXmlEncodings = array( 'utf-8', 'utf-16', 'iso-8859-1', 'us-ascii' ) [protected] |
Definition at line 29 of file oxnavigationtree.php.
OxNavigationTree.$_oDom = null [protected] |
stores DOM object for all navigation tree
Definition at line 11 of file oxnavigationtree.php.
OxNavigationTree.$_oInitialDom = null [protected] |
keeps unmodified dom
Definition at line 16 of file oxnavigationtree.php.
OxNavigationTree.$_sDynIncludeUrl = null [protected] |
Definition at line 23 of file oxnavigationtree.php.
1.7.1