Solutions Open Source

Référence de la classe tslib_tmenu

Graphe d'héritage de tslib_tmenu:

Inheritance graph
[légende]
Graphe de collaboration de tslib_tmenu:

Collaboration graph
[légende]

Liste de tous les membres

Fonctions membres publiques

 generate ()
 writeMenu ()
 getBeforeAfter ($pref)
 addJScolorShiftFunction ()
 extProc_init ()
 extProc_RO ($key)
 extProc_beforeLinking ($key)
 extProc_afterLinking ($key)
 extProc_beforeAllWrap ($item, $key)
 extProc_finish ()


Documentation des fonctions membres

tslib_tmenu::generate (  ) 

Calls procesItemStates() so that the common configuration for the menu items are resolved into individual configuration per item. Sets the result for the new "normal state" in $this->result

Renvoie:
void
Voir également:
tslib_menu::procesItemStates()

tslib_tmenu::writeMenu (  ) 

Traverses the ->result array of menu items configuration (made by ->generate()) and renders each item. During the execution of this function many internal methods prefixed "extProc_" from this class is called and many of these are for now dummy functions. But they can be used for processing as they are used by the TMENU_LAYERS An instance of tslib_cObj is also made and for each menu item rendered it is loaded with the record for that page so that any stdWrap properties that applies will have the current menu items record available.

Renvoie:
string The HTML for the menu (returns result through $this->extProc_finish(); )

tslib_tmenu::getBeforeAfter ( pref  ) 

Generates the before* and after* images for TMENUs

Paramètres:
string Can be "before" or "after" and determines which kind of image to create (basically this is the prefix of the TypoScript properties that are read from the ->I['val'] array
Renvoie:
string The resulting HTML of the image, if any. &tx_extrepmgm_pi1[extUid]=270&tx_extrepmgm_pi1[tocEl]=388&cHash=a7486044cd

tslib_tmenu::addJScolorShiftFunction (  ) 

Adds a JavaScript function to the $GLOBALS['TSFE']->additionalJavaScript array

Renvoie:
void private
Voir également:
writeMenu()

tslib_tmenu::extProc_init (  ) 

Called right before the traversing of $this->result begins. Can be used for various initialization

Renvoie:
void private
Voir également:
writeMenu(), tslib_tmenu_layers::extProc_init()

Réimplémentée dans tslib_tmenu_layers.

tslib_tmenu::extProc_RO ( key  ) 

Called after all processing for RollOver of an element has been done.

Paramètres:
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Renvoie:
void private
Voir également:
writeMenu(), tslib_tmenu_layers::extProc_RO()

Réimplémentée dans tslib_tmenu_layers.

tslib_tmenu::extProc_beforeLinking ( key  ) 

Called right before the creation of the link for the menu item

Paramètres:
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Renvoie:
void private
Voir également:
writeMenu(), tslib_tmenu_layers::extProc_beforeLinking()

Réimplémentée dans tslib_tmenu_layers.

tslib_tmenu::extProc_afterLinking ( key  ) 

Called right after the creation of links for the menu item. This is also the last function call before the while-loop traversing menu items goes to the next item. This function MUST set $this->WMresult.=[HTML for menu item] to add the generated menu item to the internal accumulation of items.

Paramètres:
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Renvoie:
void private
Voir également:
writeMenu(), tslib_tmenu_layers::extProc_afterLinking()

Réimplémentée dans tslib_tmenu_layers.

tslib_tmenu::extProc_beforeAllWrap ( item,
key 
)

Called before the "allWrap" happens on the menu item.

Paramètres:
string The current content of the menu item, $this->I['theItem'], passed along.
integer Pointer to $this->menuArr[$key] where the current menu element record is found
Renvoie:
string The modified version of $item, going back into $this->I['theItem'] private
Voir également:
writeMenu(), tslib_tmenu_layers::extProc_beforeAllWrap()

Réimplémentée dans tslib_tmenu_layers.

tslib_tmenu::extProc_finish (  ) 

Called before the writeMenu() function returns (only if a menu was generated)

Renvoie:
string The total menu content should be returned by this function private
Voir également:
writeMenu(), tslib_tmenu_layers::extProc_finish()

Réimplémentée dans tslib_tmenu_layers.


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:43:30 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3