TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\ExtraPageCmOptions\ExtraPageContextMenuOptions Class Reference
Inheritance diagram for TYPO3\CMS\ExtraPageCmOptions\ExtraPageContextMenuOptions:
tx_extrapagecmoptions

Public Member Functions

 main (&$backRef, $menuItems, $table, $uid)
 

Detailed Description

This file is part of the TYPO3 CMS project.

It is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, either version 2 of the License, or any later version.

For the full copyright and license information, please read the LICENSE.txt file that was distributed with this source code.

The TYPO3 project - inspiring people to share! Class to add extra context menu options

Author
Kasper Skårhøj kaspe.nosp@m.rYYY.nosp@m.Y@typ.nosp@m.o3.c.nosp@m.om

Definition at line 22 of file ExtraPageContextMenuOptions.php.

Member Function Documentation

◆ main()

TYPO3\CMS\ExtraPageCmOptions\ExtraPageContextMenuOptions::main ( $backRef,
  $menuItems,
  $table,
  $uid 
)

Adding various standard options to the context menu. This includes both first and second level.

Parameters
object$backRefThe calling object. Value by reference.
array$menuItemsArray with the currently collected menu items to show.
string$tableTable name of clicked item.
integer$uidUID of clicked item.
Returns
array Modified $menuItems array

Definition at line 34 of file ExtraPageContextMenuOptions.php.

References $GLOBALS, $uid, TYPO3\CMS\Core\Utility\GeneralUtility\_GP(), and TYPO3\CMS\Core\Utility\GeneralUtility\linkThisScript().