TYPO3 API  SVNRelease
Functions
example_itemArrayProcFunc.php File Reference

Go to the source code of this file.

Functions

 user_itemArrayProcFuncTest ($menuArr, $conf)
 user_IProcFuncTest ($I, $conf)

Function Documentation

user_IProcFuncTest ( I,
conf 
)

Used in the menu item state example of the "testsite" package at page-path "/Intro/TypoScript examples/Menu object examples/Menu state test/"

Parameters:
arrayThe menu item array, $this->I (in the parent object)
arrayTypoScript configuration for the function. Notice that the property "parentObj" is a reference to the parent (calling) object (the tslib_Xmenu class instantiated)
Returns:
array The processed $I array returned (and stored in $this->I of the parent object again)
See also:
tslib_menu::userProcess(), tslib_tmenu::writeMenu(), tslib_gmenu::writeMenu()

Definition at line 103 of file example_itemArrayProcFunc.php.

References debug().

user_itemArrayProcFuncTest ( menuArr,
conf 
)

This is an example of how to manipulate menu item arrays. Used in the "testsite" package

Id:
example_itemArrayProcFunc.php 5165 2009-03-09 18:28:59Z ohader

Revised for TYPO3 3.6 June/2003 by Kasper Skårhøj XHTML compliant

Author:
Kasper Skårhøj <kasperYYYY@typo3.com> This function basically adds the parent page to the sublevel but only if the sublevel is empty! It is also used to demonstrate the menu state items

Example can be found in the testsite package at the page-path "/Intro/TypoScript examples/Menu object examples/Fake menu items/" and "/Intro/TypoScript examples/Menu object examples/Menu state test/" This TypoScript configuration will also demonstrate it ("fake menu items"):

includeLibs.fakemenuitems = media/scripts/example_itemArrayProcFunc.php page = PAGE page.10 = HMENU page.10.1 = TMENU page.10.1.expAll = 1 page.10.1.NO { allWrap = |
linkWrap = | } page.10.2 = TMENU page.10.2.itemArrayProcFunc = user_itemArrayProcFuncTest page.10.2.NO { allWrap = |
linkWrap = - | }

Parameters:
arrayThe $menuArr array which simply is a num-array of page records which goes into the menu.
arrayTypoScript configuration for the function. Notice that the property "parentObj" is a reference to the parent (calling) object (the tslib_Xmenu class instantiated)
Returns:
array The modified $menuArr array

Definition at line 74 of file example_itemArrayProcFunc.php.

References $GLOBALS.