Definition at line 7 of file oxnavigationtree.php.
Public Member Functions | |
init () | |
getTabs ($sId, $iAct, $blSetActive=true) | |
getActiveTab ($sId, $iAct) | |
getBtn ($sClass) | |
getDomXml () | |
getListNodes ($aNodes) | |
getListUrl ($sId) | |
getEditUrl ($sId, $iActTab) | |
getClassId ($sClassName) | |
getShopVersionNr () | |
Protected Member Functions | |
_addLinks () | |
_loadFromFile ($sMenuFile) | |
_addDynLinks ($oDom) | |
_checkRights ($oDom) | |
_checkGroups ($oDom) | |
_copyAttributes ($oDomElemTo, $oDomElemFrom) | |
_mergeNodes ($oDomElemTo, $oDomElemFrom, $oXPathTo, $oDomDocTo, $sQueryStart) | |
_merge ($oDomNew) | |
_getMenuFiles () | |
_checkDynFile ($sDynFilePath) | |
_getAdminUrl () | |
_hasRights ($sRights) | |
_hasGroup ($sGroupId) | |
_getDynMenuUrl ($iLang, $blLoadDynContents) | |
_getDynMenuLang () | |
Protected Attributes | |
$_oDom = null | |
$_sDynIncludeUrl = null |
OxNavigationTree.init | ( | ) |
Trys to load data form session, otherwise loads xml form menu.xml, user.xml and trys to get dynscreen.xml
Definition at line 27 of file oxnavigationtree.php.
OxNavigationTree._addLinks | ( | ) | [protected] |
Adds links to xml nodes to resolve paths
Definition at line 46 of file oxnavigationtree.php.
OxNavigationTree._loadFromFile | ( | $ | sMenuFile | ) | [protected] |
Loads data form XML file, and merges it with main oDomXML.
string | $sMenuFile whitch file to load |
Definition at line 74 of file oxnavigationtree.php.
OxNavigationTree._addDynLinks | ( | $ | oDom | ) | [protected] |
Adds to element DynTabs
object | $oDom dom element to add links |
Definition at line 90 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 161 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 194 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 228 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 246 of file oxnavigationtree.php.
OxNavigationTree._merge | ( | $ | oDomNew | ) | [protected] |
If oDomXML exist meges nodes
object | $oDomNew DOMDocument |
Definition at line 284 of file oxnavigationtree.php.
OxNavigationTree.getTabs | ( | $ | sId, | |
$ | iAct, | |||
$ | blSetActive = true | |||
) |
Returns from oDomXML tree tabs DOMNodeList, which belongs to $sClass
string | $sId class name | |
int | $iAct current tab number | |
bool | $blSetActive marks tab as active |
Definition at line 299 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 326 of file oxnavigationtree.php.
OxNavigationTree.getBtn | ( | $ | sClass | ) |
returns from oDomXML tree buttons stdClass, which belongs to $sClass
string | $sClass class name |
Definition at line 344 of file oxnavigationtree.php.
OxNavigationTree._getMenuFiles | ( | ) | [protected] |
Returns array witn pathes + names ox manu xml files. Paths are checked
Definition at line 364 of file oxnavigationtree.php.
OxNavigationTree._checkDynFile | ( | $ | sDynFilePath | ) | [protected] |
Checks if dyn file is valid for inclusion
string | $sDynFilePath dyn file path |
Definition at line 434 of file oxnavigationtree.php.
OxNavigationTree.getDomXml | ( | ) |
OxNavigationTree.getListNodes | ( | $ | aNodes | ) |
Returns DOMNodeList of given navigation classes
Definition at line 529 of file oxnavigationtree.php.
OxNavigationTree.getListUrl | ( | $ | sId | ) |
Formats and returns url for list area
string | $sId tab related class |
Definition at line 546 of file oxnavigationtree.php.
OxNavigationTree.getEditUrl | ( | $ | sId, | |
$ | iActTab | |||
) |
Formats and returns url for edit area
string | $sId tab related class | |
int | $iActTab active tab |
Definition at line 569 of file oxnavigationtree.php.
OxNavigationTree._getAdminUrl | ( | ) | [protected] |
OxNavigationTree._hasRights | ( | $ | sRights | ) | [protected] |
Checks if user has required rights
string | $sRights session user rights |
Definition at line 621 of file oxnavigationtree.php.
OxNavigationTree._hasGroup | ( | $ | sGroupId | ) | [protected] |
Checks if user in required group
string | $sGroupId active group id |
Definition at line 633 of file oxnavigationtree.php.
OxNavigationTree.getClassId | ( | $ | sClassName | ) |
Returns id of class assigned to current node
string | $sClassName active class name |
Definition at line 645 of file oxnavigationtree.php.
OxNavigationTree.getShopVersionNr | ( | ) |
Definition at line 662 of file oxnavigationtree.php.
OxNavigationTree._getDynMenuUrl | ( | $ | iLang, | |
$ | blLoadDynContents | |||
) | [protected] |
Definition at line 686 of file oxnavigationtree.php.
OxNavigationTree._getDynMenuLang | ( | ) | [protected] |
Definition at line 708 of file oxnavigationtree.php.
OxNavigationTree.$_oDom = null [protected] |
stores DOM object for all navigation tree
Definition at line 12 of file oxnavigationtree.php.
OxNavigationTree.$_sDynIncludeUrl = null [protected] |
Definition at line 19 of file oxnavigationtree.php.