"TYPO3 4.0.1: tslib_menu Class Reference", "datetime" => "Sat Dec 2 19:26:56 2006", "date" => "2 Dec 2006", "doxygenversion" => "1.4.6", "projectname" => "TYPO3 4.0.1", "projectnumber" => "4.0.1" ); get_header($doxygen_vars); ?>
Public Member Functions | |
start (&$tmpl, &$sys_page, $id, $conf, $menuNumber, $objSuffix='') | |
makeMenu () | |
includeMakeMenu ($conf, $altSortField) | |
filterMenuPages (&$data, $banUidArray, $spacer) | |
procesItemStates ($splitCount) | |
link ($key, $altTarget='', $typeOverride='') | |
changeLinksForAccessRestrictedPages (&$LD, $page, $mainTarget, $typeOverride) | |
subMenu ($uid, $objSuffix='') | |
isNext ($uid, $MPvar='') | |
isActive ($uid, $MPvar='') | |
isCurrent ($uid, $MPvar='') | |
isSubMenu ($uid) | |
isItemState ($kind, $key) | |
accessKey ($title) | |
userProcess ($mConfKey, $passVar) | |
setATagParts () | |
getPageTitle ($title, $nav_title) | |
getMPvar ($key) | |
getDoktypeExcludeWhere () | |
getBannedUids () | |
Public Attributes | |
$menuNumber = 1 | |
$entryLevel = 0 | |
$spacerIDList = '199' | |
$doktypeExcludeList = '5,6' | |
$alwaysActivePIDlist = array() | |
$imgNamePrefix = 'img' | |
$imgNameNotRandom = 0 | |
$debug = 0 | |
$parent_cObj = '' | |
$GMENU_fixKey = 'gmenu' | |
$MP_array = array() | |
$conf = Array() | |
$mconf = Array() | |
$tmpl | |
$sys_page | |
$id | |
$nextActive | |
$menuArr | |
$hash | |
$result = Array() | |
$rL_uidRegister = '' | |
$INPfixMD5 | |
$I | |
$WMresult | |
$WMfreezePrefix | |
$WMmenuItems | |
$WMsubmenuObjSuffixes | |
$WMextraScript | |
$alternativeMenuTempArray = '' | |
$nameAttribute = 'name' |
Definition at line 145 of file class.tslib_menu.php.
|
Creates an access-key for a GMENU menu item based on the menu item titles first letter
Definition at line 1400 of file class.tslib_menu.php. References $result. |
|
Will change $LD (passed by reference) if the page is access restricted
Definition at line 1212 of file class.tslib_menu.php. Referenced by link(), and tslib_imgmenu::makeImageMap(). |
|
Checks if a page is OK to include in the final menu item array. Pages can be excluded if the doktype is wrong, if they are hidden in navigation, have a uid in the list of banned uids etc.
Definition at line 881 of file class.tslib_menu.php. References t3lib_div::hideIfNotTranslated(), t3lib_div::inArray(), and t3lib_div::inList(). Referenced by makeMenu(). |
|
Returns an array of banned UIDs (from excludeUidList)
Definition at line 1491 of file class.tslib_menu.php. References t3lib_div::intExplode(). Referenced by makeMenu(). |
|
Returns where clause part to exclude 'not in menu' pages
Definition at line 1481 of file class.tslib_menu.php. Referenced by makeMenu(). |
|
Return MPvar string for entry $key in ->menuArr
Definition at line 1466 of file class.tslib_menu.php. Referenced by tslib_tmenu_layers::extProc_beforeLinking(), tslib_gmenu_layers::extProc_beforeLinking(), tslib_gmenu_foldout::extProc_beforeLinking(), isItemState(), link(), and subMenu(). |
|
Returns the title for the navigation
Definition at line 1454 of file class.tslib_menu.php. Referenced by tslib_tmenu::writeMenu(). |
|
Includes the PHP script defined for the HMENU special type "userdefined". This script is supposed to populate the array $menuItemsArray with a set of page records comprising the menu. The "userdefined" type is deprecated since "userfunction" has arrived since and is a better choice for many reasons (like using classes/functions for rendering the menu)
Definition at line 865 of file class.tslib_menu.php. References $conf. Referenced by makeMenu(). |
|
Returns true if the page with UID $uid is active (in the current rootline)
Definition at line 1299 of file class.tslib_menu.php. Referenced by tslib_tmenu_layers::extProc_beforeLinking(), tslib_gmenu_layers::extProc_beforeLinking(), tslib_gmenu_foldout::extProc_beforeLinking(), isItemState(), and link(). |
|
Returns true if the page with UID $uid is the CURRENT page (equals $GLOBALS['TSFE']->id)
Definition at line 1320 of file class.tslib_menu.php. Referenced by isItemState(). |
|
Used by procesItemStates() to evaluate if a menu item (identified by $key) is in a certain state.
Definition at line 1360 of file class.tslib_menu.php. References getMPvar(), isActive(), isCurrent(), and isSubMenu(). Referenced by procesItemStates(). |
|
Returns true if the page with UID $uid is the NEXT page in root line (which means a submenu should be drawn)
Definition at line 1278 of file class.tslib_menu.php. Referenced by subMenu(). |
|
Returns true if there is a submenu with items for the page id, $uid Used by the item states "IFSUB", "ACTIFSUB" and "CURIFSUB" to check if there is a submenu
Definition at line 1335 of file class.tslib_menu.php. References t3lib_div::inList(). Referenced by isItemState(). |
|
Creates the URL, target and onclick values for the menu item link. Returns them in an array as key/value pairs for -tag attributes This function doesn't care about the url, because if we let the url be redirected, it will be logged in the stat!!!
Definition at line 1147 of file class.tslib_menu.php. References $conf, changeLinksForAccessRestrictedPages(), getMPvar(), and isActive(). Referenced by tslib_tmenu::writeMenu(). |
|
Creates the menu in the internal variables, ready for output. Basically this will read the page records needed and fill in the internal $this->menuArr Based on a hash of this array and some other variables the $this->result variable will be loaded either from cache OR by calling the generate() method of the class to create the menu for real.
Definition at line 324 of file class.tslib_menu.php. References $id, $nextActive, tslib_cObj::calc(), tslib_cObj::enableFields(), filterMenuPages(), getBannedUids(), getDoktypeExcludeWhere(), tslib_cObj::getKey(), tslib_cObj::getTreeList(), t3lib_div::hideIfNotTranslated(), includeMakeMenu(), t3lib_div::inList(), t3lib_div::intExplode(), t3lib_div::intInRange(), tslib_cObj::keywords(), t3lib_div::makeInstance(), t3lib_div::testInt(), and userProcess(). |
|
Generating the per-menu-item configuration arrays based on the settings for item states (NO, RO, ACT, CUR etc) set in ->mconf (config for the current menu object) Basically it will produce an individual array for each menu item based on the item states. BUT in addition the "optionSplit" syntax for the values is ALSO evaluated here so that all property-values are "option-splitted" and the output will thus be resolved. Is called from the "generate" functions in the extension classes. The function is processor intensive due to the option split feature in particular. But since the generate function is not always called (since the ->result array may be cached, see makeMenu) it doesn't hurt so badly.
Definition at line 937 of file class.tslib_menu.php. References isItemState(). Referenced by tslib_imgmenu::generate(), and tslib_tmenu::generate(). |
|
Creates the tag parts for the current item (in $this->I, [A1] and [A2]) based on other information in this array (like $this->I['linkHREF'])
Definition at line 1441 of file class.tslib_menu.php. Referenced by tslib_tmenu::writeMenu(). |
|
The initialization of the object. This just sets some internal variables.
Definition at line 191 of file class.tslib_menu.php. References $conf, $entryLevel, $id, $menuNumber, $sys_page, $tmpl, tslib_cObj::getKey(), t3lib_div::intExplode(), t3lib_div::removeArrayEntryByValue(), and t3lib_div::trimExplode(). Referenced by subMenu(). |
|
Creates a submenu level to the current level - if configured for.
Definition at line 1233 of file class.tslib_menu.php. References getMPvar(), t3lib_div::inList(), isNext(), t3lib_div::makeInstance(), and start(). Referenced by tslib_tmenu_layers::extProc_beforeLinking(), tslib_gmenu_layers::extProc_beforeLinking(), and tslib_gmenu_foldout::extProc_beforeLinking(). |
|
Calls a user function for processing of internal data. Used for the properties "IProcFunc" and "itemArrayProcFunc"
Definition at line 1426 of file class.tslib_menu.php. Referenced by makeMenu(), and tslib_tmenu::writeMenu(). |