Public Member Functions | |
getTreeCacheTime () | |
getLatestUpdateTimestampCacheTime () | |
__construct ($startfolderId=0, $activeElement=0, $additionalParams=array(), $sortby="sortorder:asc") | |
cleanUp ($user_id, $usePersonalisation=true) | |
getFiltersList () |
Static Public Member Functions | |
static | getUpdatetimestampByContentId ($startfolderId) |
static | extractBranch ($node=array(), $contentId= '') |
Public Attributes | |
$startfolderId = 0 | |
$activeElement = 0 | |
$data = array() | |
$activePath = array() | |
$lang | |
$usePersonalisation = true | |
$additionalParams = array() | |
$sortby = "sortorder:asc" |
Gentics Portal.Node PHP Author & Copyright (c) by Gentics Software GmbH sales @gen tics. comhttp://www.gentics.com Licenses can be found in the LICENSE.txt file in the root-folder of this installation You must not use this software without a valid license agreement.
Class for working with Gentics Content Connector
Definition at line 12 of file NavigationTree.php.
NavigationTree::__construct | ( | $startfolderId = 0 , |
|
$activeElement = 0 , |
|||
$additionalParams = array() , |
|||
$sortby = "sortorder:asc" |
|||
) |
Construction that will load nodes tree for given startfolderId and activePath for given activeElement
integer | $startfolderId | id of folder that must be treated as root |
int | $activeElement | id |
Definition at line 77 of file NavigationTree.php.
References $activeElement, and $startfolderId.
NavigationTree::cleanUp | ( | $user_id, | |
$usePersonalisation = true |
|||
) |
Filter tree by some schema
integer | $user_id | Id of the user to filter tree for |
bool | $usePersonalisation | defines if personalisation of received content should be performed |
Definition at line 99 of file NavigationTree.php.
References $data, and getFiltersList().
|
static |
Returnes branch with given id if exists
array | $node | contains navigation tree |
string | $contentId | contains id of content to search |
Definition at line 322 of file NavigationTree.php.
Referenced by MainNavigationTreeTest\testExtractBranch().
NavigationTree::getFiltersList | ( | ) |
Filter tree by some schema
Definition at line 172 of file NavigationTree.php.
Referenced by cleanUp().
|
static |
returnes array with active path for given $startfolderId
varchar | $startfolderId | contentId to check timestamp |
Definition at line 303 of file NavigationTree.php.
References $data, and $startfolderId.
Referenced by NavigationWidget\createCacheKey().
NavigationTree::$activeElement = 0 |
id of the root folder for current widget
Definition at line 25 of file NavigationTree.php.
Referenced by __construct().
NavigationTree::$activePath = array() |
array that contains Ids for active categories
Definition at line 37 of file NavigationTree.php.
NavigationTree::$data = array() |
array that contains categories tree
Definition at line 31 of file NavigationTree.php.
Referenced by cleanUp(), and getUpdatetimestampByContentId().
NavigationTree::$startfolderId = 0 |
id of the root folder for current widget
Definition at line 19 of file NavigationTree.php.
Referenced by __construct(), and getUpdatetimestampByContentId().