TYPO3
7.6
|
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 | |
Class for generating the click menu
Definition at line 34 of file backend/Classes/ClickMenu/ClickMenu.php.
__construct | ( | LanguageService | $languageService = null , |
BackendUserAuthentication | $backendUser = null |
||
) |
LanguageService | $languageService | Language 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().
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.
array | $menuItems | Menu items array |
array | $newMenuItems | Menu items array to insert |
string | $position | Position 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. |
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.
array | $menuItems | Menu items array |
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
string | $table | Table name |
array | $rec | Record array |
string | $flagField | Name of the flag field |
string | $title | Menu item Title |
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"
string | $table | Table name |
int | $uid | UID for the current record. |
string | $type | Type: "copy" or "cut |
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
string | $table | Table name |
int | $uid | UID for the current record. |
array | $rec | Record of the element (needs "pid" field if not pages-record) |
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
string | $table | Table name |
int | $uid | UID for the current record. |
array | $elInfo | Label for including in the confirmation message, EXT:lang/locallang_core.xlf:mess.delete |
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!
string | $table | Table name |
int | $uid | UID for the current record. |
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)
string | $table | Table name |
int | $uid | UID for the current record. |
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
int | $uid | page uid to edit (PID) |
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
string | $table | Table name |
array | $rec | Record array |
string | $hideField | Name of the hide field |
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
string | $table | Table name |
int | $uid | UID for the current record. |
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
string | $table | Table name |
int | $uid | UID for the current record. |
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
string | $table | Table name |
int | $uid | UID for the current record. |
array | $rec | Record. Needed for tt-content elements which will have the sys_language_uid sent |
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
string | $table | Table name |
int | $uid | UID for the current record. |
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)
string | $table | Table name |
int | $uid | UID for the current record. |
array | $rec | Record. |
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();
string | $table | Table name |
int | $uid | UID for the current record. NOTICE: Special syntax! |
string | $type | Type: "into" or "after |
array | $elInfo | Contains instructions about whether to copy or cut an element. |
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
string | $table | Table name |
int | $uid | UID for the current record. |
array | $rec | The "pages" record with "perms_*" fields inside. |
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.
int | $page_id | Page uid (PID) |
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
int | $id | Page uid (PID) |
string | $anchor | Anchor, if any |
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
string | $srcPath | source path for the record to modify |
string | $dstPath | destination path for the records to modify |
string | $action | Action code: either "move" or "copy |
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
int | $srcUid | source UID code for the record to modify |
int | $dstUid | destination UID code for the record to modify |
string | $action | Action code: either "move" or "copy @param string $into Parameter code: either "into" or "after |
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])
array | $menuItems | Menu items array |
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.
string | $iconCode | The icon-image tag |
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)
array | $menuItems | Array for manipulation. |
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)
array | $menuItems | Array for manipulation. |
Definition at line 1237 of file backend/Classes/ClickMenu/ClickMenu.php.
externalProcessingOfFileMenuItems | ( | $menuItems | ) |
Processing the $menuItems array (for extension classes) (FILES)
array | $menuItems | Array for manipulation. |
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.
string | $path | Path to the file/directory (target) |
string | $type | Type: "copy" or "cut |
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
string | $path | Path to the file/directory (target) |
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
string | $path | Path to the file/directory (target) |
string | $moduleName | Script (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 | $noReturnUrl | If set, the return URL parameter will not be set in the link |
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.
string | $path | Path to the file/directory (target) |
string | $target | target - NOT USED. |
array | $elInfo | Various values for the labels. |
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().
|
protected |
Adding ClickMenu element for file info
string | $identifier | The combined identifier of the file. |
Definition at line 1183 of file backend/Classes/ClickMenu/ClickMenu.php.
References ClickMenu\DB_info().
Referenced by ClickMenu\printFileClickMenu().
frameLocation | ( | $str | ) |
Appends ".location" to input string
string | $str | Input string, probably a JavaScript document reference |
Definition at line 1603 of file backend/Classes/ClickMenu/ClickMenu.php.
Referenced by ClickMenu\DB_changeFlag(), ClickMenu\DB_delete(), ClickMenu\DB_edit(), ClickMenu\DB_new(), ClickMenu\DB_paste(), ClickMenu\dragDrop_copymovefolder(), ClickMenu\dragDrop_copymovepage(), ClickMenu\FILE_delete(), ClickMenu\FILE_launch(), ClickMenu\FILE_paste(), and ClickMenu\urlRefForCM().
init | ( | ) |
Initialize click menu
Definition at line 172 of file backend/Classes/ClickMenu/ClickMenu.php.
References GeneralUtility\_GP(), ClickMenu\printDBClickMenu(), ClickMenu\printDragDropClickMenu(), ClickMenu\printFileClickMenu(), ClickMenu\printNewDBLevel(), and GeneralUtility\trimExplode().
isCMlayers | ( | ) |
Returns TRUE if there should be writing to the div-layers (commands sent to clipboard MUST NOT write to div-layers)
Definition at line 1592 of file backend/Classes/ClickMenu/ClickMenu.php.
References ClickMenu\$CB.
Referenced by ClickMenu\printLayerJScode().
label | ( | $label | ) |
Get label from locallang_core.xlf:cm.*
string | $label | The "cm."-suffix to get. |
Definition at line 1582 of file backend/Classes/ClickMenu/ClickMenu.php.
Referenced by ClickMenu\DB_copycut(), ClickMenu\DB_delete(), ClickMenu\DB_edit(), ClickMenu\DB_hideUnhide(), ClickMenu\DB_info(), ClickMenu\DB_new(), ClickMenu\DB_paste(), ClickMenu\DB_tempMountPoint(), ClickMenu\DB_view(), ClickMenu\dragDrop_copymovefolder(), ClickMenu\dragDrop_copymovepage(), ClickMenu\FILE_copycut(), ClickMenu\FILE_delete(), ClickMenu\FILE_launch(), ClickMenu\FILE_paste(), ClickMenu\printDBClickMenu(), and ClickMenu\printFileClickMenu().
linkItem | ( | $str, | |
$icon, | |||
$onClick, | |||
$onlyCM = 0 , |
|||
$dontHide = 0 |
|||
) |
Creating an array with various elements for the clickmenu entry
string | $str | The label, htmlspecialchar'ed already |
string | $icon | -tag for the icon |
string | $onClick | JavaScript 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 | $dontHide | If set, the clickmenu layer will not hide itself onclick - used for secondary menus to appear... |
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.
array | $menuItems | Array |
Definition at line 1360 of file backend/Classes/ClickMenu/ClickMenu.php.
Referenced by ClickMenu\printLayerJScode().
printDBClickMenu | ( | $table, | |
$uid | |||
) |
Make 1st level clickmenu:
string | $table | Table name |
int | $uid | UID for the current record. |
Definition at line 231 of file backend/Classes/ClickMenu/ClickMenu.php.
References $GLOBALS, ClickMenu\DB_copycut(), ClickMenu\DB_delete(), ClickMenu\DB_edit(), ClickMenu\DB_editAccess(), ClickMenu\DB_editPageProperties(), ClickMenu\DB_hideUnhide(), ClickMenu\DB_history(), ClickMenu\DB_info(), ClickMenu\DB_new(), ClickMenu\DB_paste(), ClickMenu\DB_view(), ClickMenu\externalProcessingOfDBMenuItems(), GeneralUtility\fixed_lgd_cs(), BackendUtility\getRecord(), BackendUtility\getRecordTitle(), BackendUtility\getRecordWSOL(), BackendUtility\isTableLocalizable(), ClickMenu\label(), ClickMenu\linkItem(), GeneralUtility\linkThisScript(), Permission\PAGE_NEW, ClickMenu\printItems(), ClickMenu\processingByExtClassArray(), and GeneralUtility\quoteJSvalue().
Referenced by ClickMenu\init().
printDragDropClickMenu | ( | $table, | |
$srcId, | |||
$dstId | |||
) |
Make 1st level clickmenu:
string | $table | The absolute path |
int | $srcId | UID for the current record. |
int | $dstId | Destination ID |
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 | ) |
Make 1st level clickmenu:
string | $combinedIdentifier | The combined identifier |
Definition at line 926 of file backend/Classes/ClickMenu/ClickMenu.php.
References $GLOBALS, ClickMenu\DB_changeFlag(), ClickMenu\DB_delete(), ClickMenu\DB_edit(), ClickMenu\DB_info(), elseif, ClickMenu\externalProcessingOfFileMenuItems(), ClickMenu\FILE_copycut(), ClickMenu\FILE_delete(), ClickMenu\FILE_launch(), ClickMenu\FILE_paste(), ClickMenu\fileInfo(), GeneralUtility\fixed_lgd_cs(), GeneralUtility\formatSize(), ResourceFactory\getInstance(), BackendUtility\getRecord(), GeneralUtility\inList(), ClickMenu\label(), ClickMenu\printItems(), ClickMenu\processingByExtClassArray(), and Icon\SIZE_SMALL.
Referenced by ClickMenu\init().
printItems | ( | $menuItems | ) |
Prints the items from input $menuItems array - as JS section for writing to the div-layers.
array | $menuItems | Array |
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
array | $menuItems | The $menuItems array to print |
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)
string | $table | Table name |
int | $uid | UID for the current record. |
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)
array | $menuItems | Array for manipulation. |
string | $table | Table name |
int | $uid | UID for the current record. |
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.
string | $url | The URL relative to TYPO3_mainDir |
string | $retUrl | The return_url-parameter |
bool | $hideCM | If set, the "hideCM()" will be called |
string | $overrideLoc | If set, gives alternative location to load in (for example top frame or somewhere else) |
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
string | $str | HTML content to wrap in table. |
Definition at line 1346 of file backend/Classes/ClickMenu/ClickMenu.php.
References GeneralUtility\logDeprecatedFunction().
$alwaysContentFrame = false |
Definition at line 70 of file backend/Classes/ClickMenu/ClickMenu.php.
|
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.
|
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.
|
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.
|
protected |
Definition at line 137 of file backend/Classes/ClickMenu/ClickMenu.php.
$rec = array() |
Definition at line 123 of file backend/Classes/ClickMenu/ClickMenu.php.
Referenced by ClickMenu\DB_changeFlag(), ClickMenu\DB_db_list(), ClickMenu\DB_hideUnhide(), ClickMenu\DB_moveWizard(), ClickMenu\DB_newWizard(), and ClickMenu\DB_perms().