Source for file INFA_CMS_MENU_NODE.phpclass
Documentation is available at INFA_CMS_MENU_NODE.phpclass
* openCSP interface file INFA_CMS_MENU_NODE.phpclass
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: INFA_CMS_MENU_NODE.phpclass,v 1.12 2008/12/03 09:47:56 pitlinz Exp $
// ---------------------------------------------------------
// ---------------------------------------------------------
* openCSP interface INFA_CMS_MENU_NODE
* @project Open CSP-Management
* @author Peter Krebs <pitlinz@users.sourceforge.net>
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @version $Id: INFA_CMS_MENU_NODE.phpclass,v 1.12 2008/12/03 09:47:56 pitlinz Exp $
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** class vars ------------------------------------------------------ */
/*** class methods --------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
/*** compostion --------------------------------------------------- */
/*** attributes -------------------------------------------------- */
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* the menu key is a '-' seperated string
* where the 1st part is the ocsp MEN_ID
public function getTitle($langId=
0,$debug=
False);
// ---------------------------------------------------------------------------
// navigation / output methods
// ---------------------------------------------------------------------------
public function getLinkUrl($valArr=
array(),$debug=
False);
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* @param boolean $useCache
* @param boolean $checkParent (if false $this->getParentObj is not called)
function &getTree($useCache=
True,$debug=
False,$checkParent=
True);
* returns the parent object or null if parent is root
* @param boolean $useCache
* @param CMS_MENU_NODE $aParent
* returns a array back to the root
* @param boolean $useCache
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns if the node has children
* returns a array of pointers to the child objects
* if filtered $this->myFilterArr is used to check the child
* @param boolean $useCache
* @param boolean $filtered
* @global array $OCSP_VAL
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the Project Object
* @param boolean $forceObj (if false no new object will be instanciated)
* @param boolean $setAsCurrent (if true call $this->setAsCurrent())
function &getMyProject($debug=
False,$forceObj=
True,$setAsCurrent=
False);
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* checks if the menu is to show from date
* - 0: showtill is outdate
* - -2: showfrom is not reached
* checks if the node is on
* @param boolean $checkDate
* @param boolean $checkGroup
* @param boolean $checkShow
function isToShow($checkDate=
True,$checkGroup=
True,$debug=
False,$checkShow=
True);
* returns if the object is to echo in the tree when creating the html-code
* or only children are to show instead of the node
* checks if the menu is the current menu
* sets the node as current menu node
* returns if the node is editable
* return if the menu type can have editable pages
* if not the menu generates it's page object himself
* users are not able to add pages to the menu
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns the current Page
* this is the first page found and the user has rights to show
* @param boolean $goDown (check children if the node has no page to show)
* @param boolean $online (check if the page is online if false all pages are returned)
* @param array $xtraConditions (array of columns to check to)
function &getCurrentPage($goDown=
False,$online=
True,$xtraConditions=
Null,$debug=
False);
* returns the template id set in menu or project
// ---------------------------------------------------------------------------
// ---------------------------------------------------------------------------
* returns if the current user can open the menu
* returns if the current user can add a childmenu
* returns if the current user can add a page
* returns if the current user can delete the menu
* returns if the current user can edit the menu
Documentation generated on Thu, 08 Jan 2009 17:44:25 +0100 by phpDocumentor 1.4.0a2