TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Version\ClickMenu\VersionClickMenu Class Reference

Public Member Functions

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

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! "Versioning" item added to click menu of elements.

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 VersionClickMenu.php.

Member Function Documentation

◆ includeLL()

TYPO3\CMS\Version\ClickMenu\VersionClickMenu::includeLL ( )

Includes the [extDir]/locallang.php and returns the $LOCAL_LANG array found in that file.

Returns
array Local lang array
Todo:
Define visibility

Definition at line 72 of file VersionClickMenu.php.

References $GLOBALS.

Referenced by TYPO3\CMS\Version\ClickMenu\VersionClickMenu\main().

◆ main()

TYPO3\CMS\Version\ClickMenu\VersionClickMenu::main ( $backRef,
  $menuItems,
  $table,
  $uid 
)

Main function, adding the item to input menuItems array

Parameters
object$backRefReferences to parent clickmenu objects.
array$menuItemsArray of existing menu items accumulated. New element added to this.
string$tableTable name of the element
integer$uidRecord UID of the element
Returns
array Modified menuItems array

Definition at line 33 of file VersionClickMenu.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\Utility\BackendUtility\getModuleUrl(), and TYPO3\CMS\Version\ClickMenu\VersionClickMenu\includeLL().