TYPO3 CMS  TYPO3_7-6
TYPO3\CMS\Backend\ClickMenu\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 = []
 
 $disabledItems = []
 
 $leftIcons = false
 
 $extClassArray = []
 
 $editPageIconSet = false
 
 $editOK = false
 
 $rec = []
 
 $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 ClickMenu.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::__construct ( LanguageService  $languageService = null,
BackendUserAuthentication  $backendUser = null 
)
Parameters
LanguageService$languageServiceLanguage Service to inject
BackendUserAuthentication$backendUser

Definition at line 160 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$backendUser, $GLOBALS, TYPO3\CMS\Backend\ClickMenu\ClickMenu\$languageService, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

Member Function Documentation

◆ addMenuItems()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1460 of file ClickMenu.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

◆ cleanUpSpacers()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1607 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printItems().

◆ DB_changeFlag()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 933 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$rec, $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_hideUnhide(), and TYPO3\CMS\Backend\ClickMenu\ClickMenu\printFileClickMenu().

◆ DB_copycut()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 523 of file ClickMenu.php.

References $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_db_list()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 659 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$rec, $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printNewDBLevel().

◆ DB_delete()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::DB_delete (   $table,
  $uid,
  $elInfo 
)

◆ DB_edit()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::DB_edit (   $table,
  $uid 
)

◆ DB_editAccess()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 729 of file ClickMenu.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\ClickMenu\ClickMenu\urlRefForCM().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_editPageProperties()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 750 of file ClickMenu.php.

References $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\ClickMenu\ClickMenu\urlRefForCM().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_hideUnhide()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 919 of file ClickMenu.php.

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

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_history()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 608 of file ClickMenu.php.

References $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\ClickMenu\ClickMenu\urlRefForCM().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_info()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::DB_info (   $table,
  $uid 
)

◆ DB_moveWizard()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 681 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$rec, $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\ClickMenu\ClickMenu\urlRefForCM().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printNewDBLevel().

◆ DB_new()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 798 of file ClickMenu.php.

References $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_newWizard()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 702 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$rec, $uid, TYPO3\CMS\Backend\Utility\BackendUtility\getModTSconfig(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\ClickMenu\ClickMenu\urlRefForCM().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printNewDBLevel().

◆ DB_paste()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 553 of file ClickMenu.php.

References $uid, TYPO3\CMS\Core\Type\Bitmask\JsConfirmation\COPY_MOVE_PASTE, TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ DB_perms()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 627 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$rec, $uid, TYPO3\CMS\Core\Utility\ExtensionManagementUtility\isLoaded(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\ClickMenu\ClickMenu\urlRefForCM().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printNewDBLevel().

◆ DB_tempMountPoint()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 886 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printNewDBLevel().

◆ DB_view()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 873 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL, and TYPO3\CMS\Backend\Utility\BackendUtility\viewOnClick().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu().

◆ dragDrop_copymovefolder()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1341 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDragDropClickMenu().

◆ dragDrop_copymovepage()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1314 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDragDropClickMenu().

◆ enableDisableItems()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1569 of file ClickMenu.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\inList(), and TYPO3\CMS\Core\Utility\GeneralUtility\trimExplode().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printItems().

◆ excludeIcon()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1557 of file ClickMenu.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

◆ externalProcessingOfDBMenuItems()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::externalProcessingOfDBMenuItems (   $menuItems)

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

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

Definition at line 472 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDBClickMenu(), and TYPO3\CMS\Backend\ClickMenu\ClickMenu\printDragDropClickMenu().

◆ externalProcessingOfDragDropMenuItems()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1299 of file ClickMenu.php.

◆ externalProcessingOfFileMenuItems()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::externalProcessingOfFileMenuItems (   $menuItems)

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

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

Definition at line 1087 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printFileClickMenu().

◆ FILE_copycut()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1134 of file ClickMenu.php.

References $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printFileClickMenu().

◆ FILE_delete()

◆ FILE_launch()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1103 of file ClickMenu.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\deprecationLog(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printFileClickMenu().

◆ FILE_paste()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1206 of file ClickMenu.php.

References TYPO3\CMS\Core\Type\Bitmask\JsConfirmation\COPY_MOVE_PASTE, TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue(), and TYPO3\CMS\Core\Imaging\Icon\SIZE_SMALL.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printFileClickMenu().

◆ fileInfo()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1245 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_info().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printFileClickMenu().

◆ frameLocation()

◆ init()

◆ isCMlayers()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1655 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\$CB.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printLayerJScode().

◆ label()

◆ linkItem()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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)
int$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 1537 of file ClickMenu.php.

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

◆ menuItemsForClickMenu()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1422 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printLayerJScode().

◆ printDBClickMenu()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::printDBClickMenu (   $table,
  $uid 
)

Make 1st level clickmenu:

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

Definition at line 231 of file ClickMenu.php.

References $GLOBALS, $uid, TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_copycut(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_delete(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_edit(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_editAccess(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_editPageProperties(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_hideUnhide(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_history(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_info(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_new(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_paste(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\DB_view(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\externalProcessingOfDBMenuItems(), TYPO3\CMS\Core\Utility\GeneralUtility\fixed_lgd_cs(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecord(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordTitle(), TYPO3\CMS\Backend\Utility\BackendUtility\getRecordWSOL(), TYPO3\CMS\Backend\Utility\BackendUtility\isTableLocalizable(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\label(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\linkItem(), TYPO3\CMS\Core\Utility\GeneralUtility\linkThisScript(), TYPO3\CMS\Core\Type\Bitmask\Permission\PAGE_NEW, TYPO3\CMS\Backend\ClickMenu\ClickMenu\printItems(), TYPO3\CMS\Backend\ClickMenu\ClickMenu\processingByExtClassArray(), and TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\init().

◆ printDragDropClickMenu()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::printDragDropClickMenu (   $table,
  $srcId,
  $dstId 
)

◆ printFileClickMenu()

◆ printItems()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::printItems (   $menuItems)

◆ printLayerJScode()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1385 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\isCMlayers(), and TYPO3\CMS\Backend\ClickMenu\ClickMenu\menuItemsForClickMenu().

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\printItems().

◆ printNewDBLevel()

◆ processingByExtClassArray()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 485 of file ClickMenu.php.

References $uid, and TYPO3\CMS\Core\Utility\GeneralUtility\makeInstance().

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

◆ urlRefForCM()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 505 of file ClickMenu.php.

References TYPO3\CMS\Backend\ClickMenu\ClickMenu\frameLocation(), and TYPO3\CMS\Core\Utility\GeneralUtility\quoteJSvalue().

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

◆ wrapColorTableCM()

TYPO3\CMS\Backend\ClickMenu\ClickMenu::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 1408 of file ClickMenu.php.

References TYPO3\CMS\Core\Utility\GeneralUtility\logDeprecatedFunction().

Member Data Documentation

◆ $alwaysContentFrame

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$alwaysContentFrame = false

Definition at line 70 of file ClickMenu.php.

◆ $backendUser

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$backendUser
protected

Definition at line 149 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\__construct().

◆ $CB

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$CB

Definition at line 49 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\isCMlayers().

◆ $clipObj

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$clipObj

Definition at line 131 of file ClickMenu.php.

◆ $cmLevel

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$cmLevel = 0

Definition at line 42 of file ClickMenu.php.

◆ $disabledItems

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$disabledItems = []

Definition at line 87 of file ClickMenu.php.

◆ $editOK

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$editOK = false

Definition at line 116 of file ClickMenu.php.

◆ $editPageIconSet

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$editPageIconSet = false

Definition at line 109 of file ClickMenu.php.

◆ $extClassArray

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$extClassArray = []

Definition at line 102 of file ClickMenu.php.

◆ $iconFactory

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$iconFactory
protected

Definition at line 154 of file ClickMenu.php.

◆ $iParts

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$iParts = []

Definition at line 80 of file ClickMenu.php.

◆ $isDBmenu

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$isDBmenu = false

Definition at line 63 of file ClickMenu.php.

◆ $languageService

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$languageService
protected

Definition at line 144 of file ClickMenu.php.

Referenced by TYPO3\CMS\Backend\ClickMenu\ClickMenu\__construct().

◆ $leftIcons

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$leftIcons = false

Definition at line 94 of file ClickMenu.php.

◆ $listFrame

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$listFrame = false

Definition at line 56 of file ClickMenu.php.

◆ $pageinfo

TYPO3\CMS\Backend\ClickMenu\ClickMenu::$pageinfo
protected

Definition at line 137 of file ClickMenu.php.

◆ $rec