Solutions Open Source

Référence du fichier Z:/doxygen/typo3_src-4.1.2/typo3/sysext/cms/tslib/media/scripts/example_itemArrayProcFunc.php


Fonctions

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

Documentation des fonctions

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/"

Paramètres:
array The menu item array, $this->I (in the parent object)
array TypoScript configuration for the function. Notice that the property "parentObj" is a reference to the parent (calling) object (the tslib_Xmenu class instantiated)
Renvoie:
array The processed $I array returned (and stored in $this->I of the parent object again)
Voir également:
tslib_menu::userProcess(), tslib_tmenu::writeMenu(), tslib_gmenu::writeMenu()

user_itemArrayProcFuncTest ( menuArr,
conf 
)

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

Id
Revised for TYPO3 3.6 June/2003 by Kasper Skaarhoj XHTML compliant

Auteur:
Kasper Skaarhoj <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 = - | }

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


Généré le Fri Aug 31 11:39:01 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3