TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
VersionClickMenu Class Reference

Public Member Functions

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

Protected Attributes

 $iconFactory
 

Detailed Description

"Versioning" item added to click menu of elements.

Definition at line 25 of file VersionClickMenu.php.

Constructor & Destructor Documentation

__construct ( )

Initialize

Definition at line 35 of file VersionClickMenu.php.

References GeneralUtility\makeInstance().

Member Function Documentation

includeLL ( )

Includes the [extDir]/locallang.xlf and returns the translations found in that file.

Returns
array Local lang array

Definition at line 88 of file VersionClickMenu.php.

References $GLOBALS.

Referenced by VersionClickMenu\main().

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

Main function, adding the item to input menuItems array

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

Definition at line 49 of file VersionClickMenu.php.

References $GLOBALS, $url, VersionClickMenu\includeLL(), and Icon\SIZE_SMALL.

Member Data Documentation

$iconFactory
protected

Definition at line 30 of file VersionClickMenu.php.