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

Public Member Functions

 __construct (LanguageService $languageService=null, BackendUserAuthentication $backendUser=null)
 
 init ()
 
 printDBClickMenu ($table, $uid)
 
 printNewDBLevel ($table, $uid)
 
 externalProcessingOfDBMenuItems ($menuItems)
 
 processingByExtClassArray ($menuItems, $table, $uid)
 
 urlRefForCM ($url, $retUrl= '', $hideCM=true, $overrideLoc= '')
 
 DB_copycut ($table, $uid, $type)
 
 DB_paste ($table, $uid, $type, $elInfo)
 
 DB_info ($table, $uid)
 
 DB_history ($table, $uid)
 
 DB_perms ($table, $uid, $rec)
 
 DB_db_list ($table, $uid, $rec)
 
 DB_moveWizard ($table, $uid, $rec)
 
 DB_newWizard ($table, $uid, $rec)
 
 DB_editAccess ($table, $uid)
 
 DB_editPageProperties ($uid)
 
 DB_edit ($table, $uid)
 
 DB_new ($table, $uid)
 
 DB_delete ($table, $uid, $elInfo)
 
 DB_view ($id, $anchor= '')
 
 DB_tempMountPoint ($page_id)
 
 DB_hideUnhide ($table, $rec, $hideField)
 
 DB_changeFlag ($table, $rec, $flagField, $title)
 
 printFileClickMenu ($combinedIdentifier)
 
 externalProcessingOfFileMenuItems ($menuItems)
 
 FILE_launch ($path, $moduleName, $type, $iconName, $noReturnUrl=false)
 
 FILE_copycut ($path, $type)
 
 FILE_delete ($path)
 
 FILE_paste ($path, $target, $elInfo)
 
 printDragDropClickMenu ($table, $srcId, $dstId)
 
 externalProcessingOfDragDropMenuItems ($menuItems)
 
 dragDrop_copymovepage ($srcUid, $dstUid, $action, $into)
 
 dragDrop_copymovefolder ($srcPath, $dstPath, $action)
 
 printItems ($menuItems)
 
 printLayerJScode ($menuItems)
 
 wrapColorTableCM ($str)
 
 menuItemsForClickMenu ($menuItems)
 
 addMenuItems ($menuItems, $newMenuItems, $position= '')
 
 linkItem ($str, $icon, $onClick, $onlyCM=0, $dontHide=0)
 
 excludeIcon ($iconCode)
 
 enableDisableItems ($menuItems)
 
 cleanUpSpacers ($menuItems)
 
 label ($label)
 
 isCMlayers ()
 
 frameLocation ($str)
 

Public Attributes

 $cmLevel = 0
 
 $CB
 
 $listFrame = false
 
 $isDBmenu = false
 
 $alwaysContentFrame = false
 
 $iParts = array()
 
 $disabledItems = array()
 
 $leftIcons = false
 
 $extClassArray = array()
 
 $editPageIconSet = false
 
 $editOK = false
 
 $rec = array()
 
 $clipObj
 

Protected Member Functions

 fileInfo ($identifier)
 

Protected Attributes

 $pageinfo
 
 $languageService
 
 $backendUser
 
 $iconFactory
 

Detailed Description

Class for generating the click menu

Definition at line 34 of file backend/Classes/ClickMenu/ClickMenu.php.

Constructor & Destructor Documentation

__construct ( LanguageService  $languageService = null,
BackendUserAuthentication  $backendUser = null 
)
Parameters
LanguageService$languageServiceLanguage Service to inject
BackendUserAuthentication$backendUser

Definition at line 160 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$backendUser, $GLOBALS, ClickMenu\$languageService, and GeneralUtility\makeInstance().

Member Function Documentation

addMenuItems (   $menuItems,
  $newMenuItems,
  $position = '' 
)

Adds or inserts a menu item Can be used to set the position of new menu entries within the list of existing menu entries. Has this syntax: [cmd]:[menu entry key],[cmd].... cmd can be "after", "before" or "top" (or blank/"bottom" which is default). If "after"/"before" then menu items will be inserted after/before the existing entry with [menu entry key] if found. "after-spacer" and "before-spacer" do the same, but inserts before or after an item and a spacer. If not found, the bottom of list. If "top" the items are inserted in the top of the list.

Parameters
array$menuItemsMenu items array
array$newMenuItemsMenu items array to insert
string$positionPosition command string. Has this syntax: [cmd]:[menu entry key],[cmd].... cmd can be "after", "before" or "top" (or blank/"bottom" which is default). If "after"/"before" then menu items will be inserted after/before the existing entry with [menu entry key] if found. "after-spacer" and "before-spacer" do the same, but inserts before or after an item and a spacer. If not found, the bottom of list. If "top" the items are inserted in the top of the list.
Returns
array Menu items array, processed.

Definition at line 1398 of file backend/Classes/ClickMenu/ClickMenu.php.

References elseif, and GeneralUtility\trimExplode().

cleanUpSpacers (   $menuItems)

Clean up spacers; Will remove any spacers in the start/end of menu items array plus any duplicates.

Parameters
array$menuItemsMenu items array
Returns
array Menu items array, processed.

Definition at line 1544 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\printItems().

DB_changeFlag (   $table,
  $rec,
  $flagField,
  $title 
)

Adding CM element for a flag field of the input record

Parameters
string$tableTable name
array$recRecord array
string$flagFieldName of the flag field
string$titleMenu item Title
Returns
array Item array, element in $menuItems

Definition at line 893 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$rec, ClickMenu\frameLocation(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\DB_hideUnhide(), and ClickMenu\printFileClickMenu().

DB_copycut (   $table,
  $uid,
  $type 
)

Adding CM element for Clipboard "copy" and "cut"

Parameters
string$tableTable name
int$uidUID for the current record.
string$typeType: "copy" or "cut
Returns
array Item array, element in $menuItems

Definition at line 521 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printDBClickMenu().

DB_db_list (   $table,
  $uid,
  $rec 
)

Adding CM element for DBlist

Parameters
string$tableTable name
int$uidUID for the current record.
array$recRecord of the element (needs "pid" field if not pages-record)
Returns
array Item array, element in $menuItems

Definition at line 643 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$rec, $url, ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printNewDBLevel().

DB_delete (   $table,
  $uid,
  $elInfo 
)

Adding CM element for Delete

Parameters
string$tableTable name
int$uidUID for the current record.
array$elInfoLabel for including in the confirmation message, EXT:lang/locallang_core.xlf:mess.delete
Returns
array Item array, element in $menuItems

Definition at line 801 of file backend/Classes/ClickMenu/ClickMenu.php.

References JsConfirmation\DELETE, ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), BackendUtility\referenceCount(), Icon\SIZE_SMALL, and BackendUtility\translationCount().

Referenced by ClickMenu\printDBClickMenu(), and ClickMenu\printFileClickMenu().

DB_edit (   $table,
  $uid 
)

Adding CM element for regular editing of the element!

Parameters
string$tableTable name
int$uidUID for the current record.
Returns
array Item array, element in $menuItems

Definition at line 753 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\frameLocation(), BackendUtility\isModuleSetInTBE_MODULES(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printDBClickMenu(), and ClickMenu\printFileClickMenu().

DB_editAccess (   $table,
  $uid 
)

Adding CM element for Editing of the access related fields of a table (disable, starttime, endtime, fe_groups)

Parameters
string$tableTable name
int$uidUID for the current record.
Returns
array Item array, element in $menuItems

Definition at line 711 of file backend/Classes/ClickMenu/ClickMenu.php.

References $GLOBALS, $url, ClickMenu\linkItem(), Icon\SIZE_SMALL, and ClickMenu\urlRefForCM().

Referenced by ClickMenu\printDBClickMenu().

DB_editPageProperties (   $uid)

Adding CM element for edit page properties

Parameters
int$uidpage uid to edit (PID)
Returns
array Item array, element in $menuItems

Definition at line 732 of file backend/Classes/ClickMenu/ClickMenu.php.

References $url, ClickMenu\linkItem(), Icon\SIZE_SMALL, and ClickMenu\urlRefForCM().

Referenced by ClickMenu\printDBClickMenu().

DB_hideUnhide (   $table,
  $rec,
  $hideField 
)

Adding CM element for hide/unhide of the input record

Parameters
string$tableTable name
array$recRecord array
string$hideFieldName of the hide field
Returns
array Item array, element in $menuItems

Definition at line 879 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$rec, ClickMenu\DB_changeFlag(), and ClickMenu\label().

Referenced by ClickMenu\printDBClickMenu().

DB_history (   $table,
  $uid 
)

Adding CM element for History

Parameters
string$tableTable name
int$uidUID for the current record.
Returns
array Item array, element in $menuItems

Definition at line 592 of file backend/Classes/ClickMenu/ClickMenu.php.

References $url, ClickMenu\linkItem(), Icon\SIZE_SMALL, and ClickMenu\urlRefForCM().

Referenced by ClickMenu\printDBClickMenu().

DB_info (   $table,
  $uid 
)

Adding CM element for Info

Parameters
string$tableTable name
int$uidUID for the current record.
Returns
array Item array, element in $menuItems

Definition at line 575 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\fileInfo(), ClickMenu\printDBClickMenu(), and ClickMenu\printFileClickMenu().

DB_moveWizard (   $table,
  $uid,
  $rec 
)

Adding CM element for Moving wizard

Parameters
string$tableTable name
int$uidUID for the current record.
array$recRecord. Needed for tt-content elements which will have the sys_language_uid sent
Returns
array Item array, element in $menuItems

Definition at line 665 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$rec, $url, ClickMenu\linkItem(), Icon\SIZE_SMALL, and ClickMenu\urlRefForCM().

Referenced by ClickMenu\printNewDBLevel().

DB_new (   $table,
  $uid 
)

Adding CM element for regular Create new element

Parameters
string$tableTable name
int$uidUID for the current record.
Returns
array Item array, element in $menuItems

Definition at line 780 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printDBClickMenu().

DB_newWizard (   $table,
  $uid,
  $rec 
)

Adding CM element for Create new wizard (either BackendUtility::getModuleUrl('db_new') or BackendUtility::getModuleUrl('new_content_element') or custom wizard)

Parameters
string$tableTable name
int$uidUID for the current record.
array$recRecord.
Returns
array Item array, element in $menuItems

Definition at line 686 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$rec, $url, BackendUtility\getModTSconfig(), ClickMenu\linkItem(), Icon\SIZE_SMALL, and ClickMenu\urlRefForCM().

Referenced by ClickMenu\printNewDBLevel().

DB_paste (   $table,
  $uid,
  $type,
  $elInfo 
)

Adding CM element for Clipboard "paste into"/"paste after" NOTICE: $table and $uid should follow the special syntax for paste, see clipboard-class :: pasteUrl();

Parameters
string$tableTable name
int$uidUID for the current record. NOTICE: Special syntax!
string$typeType: "into" or "after
array$elInfoContains instructions about whether to copy or cut an element.
Returns
array Item array, element in $menuItems
See Also
::pasteUrl()

Definition at line 551 of file backend/Classes/ClickMenu/ClickMenu.php.

References JsConfirmation\COPY_MOVE_PASTE, ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printDBClickMenu().

DB_perms (   $table,
  $uid,
  $rec 
)

Adding CM element for Permission setting

Parameters
string$tableTable name
int$uidUID for the current record.
array$recThe "pages" record with "perms_*" fields inside.
Returns
array Item array, element in $menuItems

Definition at line 611 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$rec, $url, ExtensionManagementUtility\isLoaded(), ClickMenu\linkItem(), Icon\SIZE_SMALL, and ClickMenu\urlRefForCM().

Referenced by ClickMenu\printNewDBLevel().

DB_tempMountPoint (   $page_id)

Adding element for setting temporary mount point.

Parameters
int$page_idPage uid (PID)
Returns
array Item array, element in $menuItems

Definition at line 846 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\label(), ClickMenu\linkItem(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printNewDBLevel().

DB_view (   $id,
  $anchor = '' 
)

Adding CM element for View Page

Parameters
int$idPage uid (PID)
string$anchorAnchor, if any
Returns
array Item array, element in $menuItems

Definition at line 833 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\label(), ClickMenu\linkItem(), Icon\SIZE_SMALL, and BackendUtility\viewOnClick().

Referenced by ClickMenu\printDBClickMenu().

dragDrop_copymovefolder (   $srcPath,
  $dstPath,
  $action 
)

Adding CM element for Copying/Moving a Folder Into from a drag & drop action

Parameters
string$srcPathsource path for the record to modify
string$dstPathdestination path for the records to modify
string$actionAction code: either "move" or "copy
Returns
array Item array, element in $menuItems

Definition at line 1279 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printDragDropClickMenu().

dragDrop_copymovepage (   $srcUid,
  $dstUid,
  $action,
  $into 
)

Adding CM element for Copying/Moving a Page Into/After from a drag & drop action

Parameters
int$srcUidsource UID code for the record to modify
int$dstUiddestination UID code for the record to modify
string$actionAction code: either "move" or "copy @param string $into Parameter code: either "into" or "after
Returns
array Item array, element in $menuItems

Definition at line 1252 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printDragDropClickMenu().

enableDisableItems (   $menuItems)

Enabling / Disabling items based on list provided from GET var ($this->iParts[3])

Parameters
array$menuItemsMenu items array
Returns
array Menu items array, processed.

Definition at line 1506 of file backend/Classes/ClickMenu/ClickMenu.php.

References GeneralUtility\inList(), and GeneralUtility\trimExplode().

Referenced by ClickMenu\printItems().

excludeIcon (   $iconCode)

Returns the input string IF not a user setting has disabled display of icons.

Parameters
string$iconCodeThe icon-image tag
Returns
string The icon-image tag prefixed with space char IF the icon should be printed at all due to user settings
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8

Definition at line 1494 of file backend/Classes/ClickMenu/ClickMenu.php.

References GeneralUtility\logDeprecatedFunction().

externalProcessingOfDBMenuItems (   $menuItems)

Processing the $menuItems array (for extension classes) (DATABASE RECORDS)

Parameters
array$menuItemsArray for manipulation.
Returns
array Processed $menuItems array

Definition at line 470 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\printDBClickMenu(), and ClickMenu\printDragDropClickMenu().

externalProcessingOfDragDropMenuItems (   $menuItems)

Processing the $menuItems array (for extension classes) (DRAG'N DROP)

Parameters
array$menuItemsArray for manipulation.
Returns
array Processed $menuItems array

Definition at line 1237 of file backend/Classes/ClickMenu/ClickMenu.php.

externalProcessingOfFileMenuItems (   $menuItems)

Processing the $menuItems array (for extension classes) (FILES)

Parameters
array$menuItemsArray for manipulation.
Returns
array Processed $menuItems array

Definition at line 1057 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\printFileClickMenu().

FILE_copycut (   $path,
  $type 
)

Returns element for copy or cut of files.

Parameters
string$pathPath to the file/directory (target)
string$typeType: "copy" or "cut
Returns
array Item array, element in $menuItems

Definition at line 1104 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printFileClickMenu().

FILE_delete (   $path)

Creates element for deleting of target

Parameters
string$pathPath to the file/directory (target)
Returns
array Item array, element in $menuItems

Definition at line 1131 of file backend/Classes/ClickMenu/ClickMenu.php.

References JsConfirmation\DELETE, ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), BackendUtility\referenceCount(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printFileClickMenu().

FILE_launch (   $path,
  $moduleName,
  $type,
  $iconName,
  $noReturnUrl = false 
)

Multi-function for adding an entry to the $menuItems array

Parameters
string$pathPath to the file/directory (target)
string$moduleNameScript (deprecated) or module name (e.g. file_edit) to pass &target= to
string$type"type" is the code which fetches the correct label for the element from "cm.
string$iconName
bool$noReturnUrlIf set, the return URL parameter will not be set in the link
Returns
array Item array, element in $menuItems

Definition at line 1073 of file backend/Classes/ClickMenu/ClickMenu.php.

References GeneralUtility\deprecationLog(), ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printFileClickMenu().

FILE_paste (   $path,
  $target,
  $elInfo 
)

Creates element for pasting files.

Parameters
string$pathPath to the file/directory (target)
string$targettarget - NOT USED.
array$elInfoVarious values for the labels.
Returns
array Item array, element in $menuItems

Definition at line 1161 of file backend/Classes/ClickMenu/ClickMenu.php.

References JsConfirmation\COPY_MOVE_PASTE, ClickMenu\frameLocation(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\quoteJSvalue(), and Icon\SIZE_SMALL.

Referenced by ClickMenu\printFileClickMenu().

fileInfo (   $identifier)
protected

Adding ClickMenu element for file info

Parameters
string$identifierThe combined identifier of the file.
Returns
array Item array, element in $menuItems

Definition at line 1183 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\DB_info().

Referenced by ClickMenu\printFileClickMenu().

frameLocation (   $str)
init ( )
isCMlayers ( )

Returns TRUE if there should be writing to the div-layers (commands sent to clipboard MUST NOT write to div-layers)

Returns
bool

Definition at line 1592 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\$CB.

Referenced by ClickMenu\printLayerJScode().

label (   $label)
linkItem (   $str,
  $icon,
  $onClick,
  $onlyCM = 0,
  $dontHide = 0 
)

Creating an array with various elements for the clickmenu entry

Parameters
string$strThe label, htmlspecialchar'ed already
string$icon-tag for the icon
string$onClickJavaScript onclick event for label/icon
int$onlyCM==1 and the element will NOT appear in clickmenus in the topframe (unless clickmenu is totally unavailable)! ==2 and the item will NEVER appear in top frame. (This is mostly for "less important" options since the top frame is not capable of holding so many elements horizontally)
bool$dontHideIf set, the clickmenu layer will not hide itself onclick - used for secondary menus to appear...
Returns
array $menuItem entry with 6 numerical entries: [0] is the HTML for display of the element with link and icon an mouseover etc., [1]-[5] is simply the input params passed through!

Definition at line 1474 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\DB_changeFlag(), ClickMenu\DB_copycut(), ClickMenu\DB_db_list(), ClickMenu\DB_delete(), ClickMenu\DB_edit(), ClickMenu\DB_editAccess(), ClickMenu\DB_editPageProperties(), ClickMenu\DB_history(), ClickMenu\DB_info(), ClickMenu\DB_moveWizard(), ClickMenu\DB_new(), ClickMenu\DB_newWizard(), ClickMenu\DB_paste(), ClickMenu\DB_perms(), ClickMenu\DB_tempMountPoint(), ClickMenu\DB_view(), ClickMenu\dragDrop_copymovefolder(), ClickMenu\dragDrop_copymovepage(), ClickMenu\FILE_copycut(), ClickMenu\FILE_delete(), ClickMenu\FILE_launch(), ClickMenu\FILE_paste(), and ClickMenu\printDBClickMenu().

menuItemsForClickMenu (   $menuItems)

Traverses the menuItems and generates an output array for implosion in the CM div-layers table.

Parameters
array$menuItemsArray
Returns
array array for implosion in the CM div-layers table.

Definition at line 1360 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\printLayerJScode().

printDBClickMenu (   $table,
  $uid 
)
printDragDropClickMenu (   $table,
  $srcId,
  $dstId 
)

Make 1st level clickmenu:

Parameters
string$tableThe absolute path
int$srcIdUID for the current record.
int$dstIdDestination ID
Returns
string HTML content

Definition at line 1201 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\dragDrop_copymovefolder(), ClickMenu\dragDrop_copymovepage(), ClickMenu\externalProcessingOfDBMenuItems(), ClickMenu\printItems(), and ClickMenu\processingByExtClassArray().

Referenced by ClickMenu\init().

printFileClickMenu (   $combinedIdentifier)
printItems (   $menuItems)

Prints the items from input $menuItems array - as JS section for writing to the div-layers.

Parameters
array$menuItemsArray
Returns
string HTML code

Definition at line 1307 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\cleanUpSpacers(), ClickMenu\enableDisableItems(), and ClickMenu\printLayerJScode().

Referenced by ClickMenu\printDBClickMenu(), ClickMenu\printDragDropClickMenu(), ClickMenu\printFileClickMenu(), and ClickMenu\printNewDBLevel().

printLayerJScode (   $menuItems)

Create the JavaScript section

Parameters
array$menuItemsThe $menuItems array to print
Returns
string The JavaScript section which will print the content of the CM to the div-layer in the target frame.

Definition at line 1323 of file backend/Classes/ClickMenu/ClickMenu.php.

References ClickMenu\isCMlayers(), and ClickMenu\menuItemsForClickMenu().

Referenced by ClickMenu\printItems().

printNewDBLevel (   $table,
  $uid 
)

Make 2nd level clickmenu (only for DBmenus)

Parameters
string$tableTable name
int$uidUID for the current record.
Returns
string HTML content

Definition at line 410 of file backend/Classes/ClickMenu/ClickMenu.php.

References GeneralUtility\_GP(), ClickMenu\DB_db_list(), ClickMenu\DB_moveWizard(), ClickMenu\DB_newWizard(), ClickMenu\DB_perms(), ClickMenu\DB_tempMountPoint(), BackendUtility\getRecord(), BackendUtility\getRecordWSOL(), ClickMenu\printItems(), and ClickMenu\processingByExtClassArray().

Referenced by ClickMenu\init().

processingByExtClassArray (   $menuItems,
  $table,
  $uid 
)

Processing the $menuItems array by external classes (typ. adding items)

Parameters
array$menuItemsArray for manipulation.
string$tableTable name
int$uidUID for the current record.
Returns
array Processed $menuItems array

Definition at line 483 of file backend/Classes/ClickMenu/ClickMenu.php.

References GeneralUtility\makeInstance().

Referenced by ClickMenu\printDBClickMenu(), ClickMenu\printDragDropClickMenu(), ClickMenu\printFileClickMenu(), and ClickMenu\printNewDBLevel().

urlRefForCM (   $url,
  $retUrl = '',
  $hideCM = true,
  $overrideLoc = '' 
)

Returning JavaScript for the onClick event linking to the input URL.

Parameters
string$urlThe URL relative to TYPO3_mainDir
string$retUrlThe return_url-parameter
bool$hideCMIf set, the "hideCM()" will be called
string$overrideLocIf set, gives alternative location to load in (for example top frame or somewhere else)
Returns
string JavaScript for an onClick event.

Definition at line 503 of file backend/Classes/ClickMenu/ClickMenu.php.

References $url, ClickMenu\frameLocation(), and GeneralUtility\quoteJSvalue().

Referenced by ClickMenu\DB_editAccess(), ClickMenu\DB_editPageProperties(), ClickMenu\DB_history(), ClickMenu\DB_moveWizard(), ClickMenu\DB_newWizard(), and ClickMenu\DB_perms().

wrapColorTableCM (   $str)

Wrapping the input string in a table with background color 4 and a black border style. For the pop-up menu

Parameters
string$strHTML content to wrap in table.
Returns
string
Deprecated:
since TYPO3 CMS 7, will be removed in TYPO3 CMS 8

Definition at line 1346 of file backend/Classes/ClickMenu/ClickMenu.php.

References GeneralUtility\logDeprecatedFunction().

Member Data Documentation

$alwaysContentFrame = false

Definition at line 70 of file backend/Classes/ClickMenu/ClickMenu.php.

$backendUser
protected

Definition at line 149 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\__construct().

$CB

Definition at line 49 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\isCMlayers().

$clipObj

Definition at line 131 of file backend/Classes/ClickMenu/ClickMenu.php.

$cmLevel = 0

Definition at line 42 of file backend/Classes/ClickMenu/ClickMenu.php.

$disabledItems = array()

Definition at line 87 of file backend/Classes/ClickMenu/ClickMenu.php.

$editOK = false

Definition at line 116 of file backend/Classes/ClickMenu/ClickMenu.php.

$editPageIconSet = false

Definition at line 109 of file backend/Classes/ClickMenu/ClickMenu.php.

$extClassArray = array()

Definition at line 102 of file backend/Classes/ClickMenu/ClickMenu.php.

$iconFactory
protected

Definition at line 154 of file backend/Classes/ClickMenu/ClickMenu.php.

$iParts = array()

Definition at line 80 of file backend/Classes/ClickMenu/ClickMenu.php.

$isDBmenu = false

Definition at line 63 of file backend/Classes/ClickMenu/ClickMenu.php.

$languageService
protected

Definition at line 144 of file backend/Classes/ClickMenu/ClickMenu.php.

Referenced by ClickMenu\__construct().

$leftIcons = false

Definition at line 94 of file backend/Classes/ClickMenu/ClickMenu.php.

$listFrame = false

Definition at line 56 of file backend/Classes/ClickMenu/ClickMenu.php.

$pageinfo
protected

Definition at line 137 of file backend/Classes/ClickMenu/ClickMenu.php.

$rec = array()