Documentation TYPO3 par Ameos |
Public Member Functions | |
init () | |
doDisplayTopFrameCM () | |
printDBClickMenu ($table, $uid) | |
printNewDBLevel ($table, $uid) | |
externalProcessingOfDBMenuItems ($menuItems) | |
processingByExtClassArray ($menuItems, $table, $uid) | |
urlRefForCM ($url, $retUrl='', $hideCM=1, $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_editPageHeader ($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, $name, $iconRelPath='gfx/') | |
printFileClickMenu ($path) | |
externalProcessingOfFileMenuItems ($menuItems) | |
FILE_launch ($path, $script, $type, $image) | |
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, $item) | |
printLayerJScode ($menuItems) | |
wrapColorTableCM ($str) | |
menuItemsForTopFrame ($menuItems) | |
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 | |
$backPath = '' | |
$PH_backPath = '###BACK_PATH###' | |
$listFrame = 0 | |
$isDBmenu = 0 | |
$alwaysContentFrame = 0 | |
$iParts = array() | |
$disabledItems = array() | |
$dontDisplayTopFrameCM = 0 | |
$leftIcons = 0 | |
$extClassArray = array() | |
$ajax = 0 | |
$elCount = 0 | |
$editPageIconSet = 0 | |
$editOK = 0 | |
$rec = array() |
Definition at line 136 of file alt_clickmenu.php.
clickMenu::init | ( | ) |
Initialize click menu
Definition at line 168 of file alt_clickmenu.php.
References t3lib_div::_GP(), printDBClickMenu(), printDragDropClickMenu(), printFileClickMenu(), printNewDBLevel(), and t3lib_div::trimExplode().
clickMenu::doDisplayTopFrameCM | ( | ) |
Returns true if the menu should (also?) be displayed in topframe, not just
Definition at line 222 of file alt_clickmenu.php.
Referenced by printItems(), and printLayerJScode().
clickMenu::printDBClickMenu | ( | $ | table, | |
$ | uid | |||
) |
Make 1st level clickmenu:
string | Table name | |
integer | UID for the current record. |
Definition at line 254 of file alt_clickmenu.php.
References DB_copycut(), DB_delete(), DB_edit(), DB_history(), DB_info(), DB_new(), DB_paste(), DB_view(), externalProcessingOfDBMenuItems(), t3lib_div::fixed_lgd_cs(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordTitle(), t3lib_BEfunc::getRecordWSOL(), printItems(), processingByExtClassArray(), and t3lib_iconWorks::skinImg().
Referenced by init().
clickMenu::printNewDBLevel | ( | $ | table, | |
$ | uid | |||
) |
Make 2nd level clickmenu (only for DBmenus)
string | Table name | |
integer | UID for the current record. |
Definition at line 346 of file alt_clickmenu.php.
References t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordWSOL(), printItems(), processingByExtClassArray(), and t3lib_iconWorks::skinImg().
Referenced by init().
clickMenu::externalProcessingOfDBMenuItems | ( | $ | menuItems | ) |
Processing the $menuItems array (for extension classes) (DATABASE RECORDS)
array | $menuItems array for manipulation. |
Definition at line 383 of file alt_clickmenu.php.
Referenced by printDBClickMenu(), and printDragDropClickMenu().
clickMenu::processingByExtClassArray | ( | $ | menuItems, | |
$ | table, | |||
$ | uid | |||
) |
Processing the $menuItems array by external classes (typ. adding items)
array | $menuItems array for manipulation. | |
string | Table name | |
integer | UID for the current record. |
Definition at line 395 of file alt_clickmenu.php.
References t3lib_div::makeInstance().
Referenced by printDBClickMenu(), printDragDropClickMenu(), printFileClickMenu(), and printNewDBLevel().
clickMenu::urlRefForCM | ( | $ | url, | |
$ | retUrl = '' , |
|||
$ | hideCM = 1 , |
|||
$ | overrideLoc = '' | |||
) |
Returning JavaScript for the onClick event linking to the input URL.
string | The URL relative to TYPO3_mainDir | |
string | The return_url-parameter | |
boolean | If set, the "hideCM()" will be called | |
string | If set, gives alternative location to load in (for example top frame or somewhere else) |
Definition at line 415 of file alt_clickmenu.php.
References frameLocation().
Referenced by DB_moveWizard(), and DB_newWizard().
clickMenu::DB_copycut | ( | $ | table, | |
$ | uid, | |||
$ | type | |||
) |
Adding CM element for Clipboard "copy" and "cut"
string | Table name | |
integer | UID for the current record. | |
string | Type: "copy" or "cut" |
Definition at line 432 of file alt_clickmenu.php.
References excludeIcon(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu().
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();
string | Table name | |
integer | UID for the current record. NOTICE: Special syntax! | |
string | Type: "into" or "after" | |
array | Contains instructions about whether to copy or cut an element. |
Definition at line 461 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu().
clickMenu::DB_info | ( | $ | table, | |
$ | uid | |||
) |
Adding CM element for Info
string | Table name | |
integer | UID for the current record. |
Definition at line 486 of file alt_clickmenu.php.
References excludeIcon(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu(), and printFileClickMenu().
clickMenu::DB_history | ( | $ | table, | |
$ | uid | |||
) |
Adding CM element for History
string | Table name | |
integer | UID for the current record. |
Definition at line 502 of file alt_clickmenu.php.
References excludeIcon(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu().
clickMenu::DB_perms | ( | $ | table, | |
$ | uid, | |||
$ | rec | |||
) |
Adding CM element for Permission setting
string | Table name | |
integer | UID for the current record. | |
array | The "pages" record with "perms_*" fields inside. |
Definition at line 521 of file alt_clickmenu.php.
References excludeIcon(), linkItem(), and t3lib_iconWorks::skinImg().
clickMenu::DB_db_list | ( | $ | table, | |
$ | uid, | |||
$ | rec | |||
) |
Adding CM element for DBlist
string | Table name | |
integer | UID for the current record. | |
array | Record of the element (needs "pid" field if not pages-record) |
Definition at line 540 of file alt_clickmenu.php.
References $rec, excludeIcon(), t3lib_div::getIndpEnv(), linkItem(), and t3lib_iconWorks::skinImg().
clickMenu::DB_moveWizard | ( | $ | table, | |
$ | uid, | |||
$ | rec | |||
) |
Adding CM element for Moving wizard
string | Table name | |
integer | UID for the current record. | |
array | Record. Needed for tt-content elements which will have the sys_language_uid sent |
Definition at line 559 of file alt_clickmenu.php.
References $rec, excludeIcon(), linkItem(), t3lib_iconWorks::skinImg(), and urlRefForCM().
clickMenu::DB_newWizard | ( | $ | table, | |
$ | uid, | |||
$ | rec | |||
) |
Adding CM element for Create new wizard (either db_new.php or sysext/cms/layout/db_new_content_el.php or custom wizard)
string | Table name | |
integer | UID for the current record. | |
array | Record. |
Definition at line 580 of file alt_clickmenu.php.
References $rec, excludeIcon(), t3lib_extMgm::extRelPath(), t3lib_BEfunc::getModTSconfig(), t3lib_extMgm::isLoaded(), linkItem(), t3lib_iconWorks::skinImg(), and urlRefForCM().
clickMenu::DB_editAccess | ( | $ | table, | |
$ | uid | |||
) |
Adding CM element for Editing of the access related fields of a table (disable, starttime, endtime, fe_groups)
string | Table name | |
integer | UID for the current record. |
Definition at line 603 of file alt_clickmenu.php.
References excludeIcon(), linkItem(), and t3lib_iconWorks::skinImg().
clickMenu::DB_editPageHeader | ( | $ | uid | ) |
Adding CM element for edit page header
integer | page uid to edit (PID) |
Definition at line 622 of file alt_clickmenu.php.
References DB_editPageProperties().
clickMenu::DB_editPageProperties | ( | $ | uid | ) |
Adding CM element for edit page properties
integer | page uid to edit (PID) |
Definition at line 633 of file alt_clickmenu.php.
References excludeIcon(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by DB_editPageHeader().
clickMenu::DB_edit | ( | $ | table, | |
$ | uid | |||
) |
Adding CM element for regular editing of the element!
string | Table name | |
integer | UID for the current record. |
Definition at line 651 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), t3lib_extMgm::isLoaded(), t3lib_BEfunc::isModuleSetInTBE_MODULES(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu().
clickMenu::DB_new | ( | $ | table, | |
$ | uid | |||
) |
Adding CM element for regular Create new element
string | Table name | |
integer | UID for the current record. |
Definition at line 693 of file alt_clickmenu.php.
References excludeIcon(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu().
clickMenu::DB_delete | ( | $ | table, | |
$ | uid, | |||
$ | elInfo | |||
) |
Adding CM element for Delete
string | Table name | |
integer | UID for the current record. | |
array | Label for including in the confirmation message, EXT:lang/locallang_core.php:mess.delete |
Definition at line 718 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu().
clickMenu::DB_view | ( | $ | id, | |
$ | anchor = '' | |||
) |
Adding CM element for View Page
integer | Page uid (PID) | |
string | Anchor, if any |
Definition at line 744 of file alt_clickmenu.php.
References t3lib_BEfunc::BEgetRootLine(), excludeIcon(), label(), linkItem(), t3lib_iconWorks::skinImg(), and t3lib_BEfunc::viewOnClick().
Referenced by printDBClickMenu().
clickMenu::DB_tempMountPoint | ( | $ | page_id | ) |
Adding element for setting temporary mount point.
integer | Page uid (PID) |
Definition at line 759 of file alt_clickmenu.php.
References excludeIcon(), label(), linkItem(), and t3lib_iconWorks::skinImg().
clickMenu::DB_hideUnhide | ( | $ | table, | |
$ | rec, | |||
$ | hideField | |||
) |
Adding CM element for hide/unhide of the input record
string | Table name | |
array | Record array | |
string | Name of the hide field |
Definition at line 776 of file alt_clickmenu.php.
References $rec, DB_changeFlag(), and label().
clickMenu::DB_changeFlag | ( | $ | table, | |
$ | rec, | |||
$ | flagField, | |||
$ | title, | |||
$ | name, | |||
$ | iconRelPath = 'gfx/' | |||
) |
Adding CM element for a flag field of the input record
string | Table name | |
array | Record array | |
string | Name of the flag field | |
string | Menu item Title | |
string | Name of the item used for icons and labels | |
string | Icon path relative to typo3/ folder |
Definition at line 791 of file alt_clickmenu.php.
References $rec, excludeIcon(), frameLocation(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by DB_hideUnhide().
clickMenu::printFileClickMenu | ( | $ | path | ) |
Make 1st level clickmenu:
string | The absolute path |
Definition at line 825 of file alt_clickmenu.php.
References DB_info(), externalProcessingOfFileMenuItems(), FILE_copycut(), FILE_delete(), FILE_launch(), FILE_paste(), t3lib_BEfunc::getFileIcon(), t3lib_div::inList(), t3lib_div::isAllowedAbsPath(), printItems(), and processingByExtClassArray().
Referenced by init().
clickMenu::externalProcessingOfFileMenuItems | ( | $ | menuItems | ) |
Processing the $menuItems array (for extension classes) (FILES)
array | $menuItems array for manipulation. |
Definition at line 889 of file alt_clickmenu.php.
Referenced by printFileClickMenu().
clickMenu::FILE_launch | ( | $ | path, | |
$ | script, | |||
$ | type, | |||
$ | image | |||
) |
Multi-function for adding an entry to the $menuItems array
string | Path to the file/directory (target) | |
string | Script (eg. file_edit.php) to pass &target= to | |
string | "type" is the code which fetches the correct label for the element from "cm." | |
string | icon image-filename from "gfx/" (12x12 icon) |
Definition at line 903 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printFileClickMenu().
clickMenu::FILE_copycut | ( | $ | path, | |
$ | type | |||
) |
Returns element for copy or cut of files.
string | Path to the file/directory (target) | |
string | Type: "copy" or "cut" |
Definition at line 923 of file alt_clickmenu.php.
References excludeIcon(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printFileClickMenu().
clickMenu::FILE_delete | ( | $ | path | ) |
Creates element for deleting of target
string | Path to the file/directory (target) |
Definition at line 949 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), label(), linkItem(), t3lib_BEfunc::referenceCount(), and t3lib_iconWorks::skinImg().
Referenced by printFileClickMenu().
clickMenu::FILE_paste | ( | $ | path, | |
$ | target, | |||
$ | elInfo | |||
) |
Creates element for pasting files.
string | Path to the file/directory (target) | |
string | target - NOT USED. | |
array | Various values for the labels. |
Definition at line 976 of file alt_clickmenu.php.
References excludeIcon(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printFileClickMenu().
clickMenu::printDragDropClickMenu | ( | $ | table, | |
$ | srcId, | |||
$ | dstId | |||
) |
Make 1st level clickmenu:
string | The absolute path | |
integer | UID for the current record. | |
integer | Destination ID |
Definition at line 1013 of file alt_clickmenu.php.
References dragDrop_copymovefolder(), dragDrop_copymovepage(), externalProcessingOfDBMenuItems(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecordTitle(), printItems(), and processingByExtClassArray().
Referenced by init().
clickMenu::externalProcessingOfDragDropMenuItems | ( | $ | menuItems | ) |
Processing the $menuItems array (for extension classes) (DRAG'N DROP)
array | $menuItems array for manipulation. |
Definition at line 1055 of file alt_clickmenu.php.
clickMenu::dragDrop_copymovepage | ( | $ | srcUid, | |
$ | dstUid, | |||
$ | action, | |||
$ | into | |||
) |
Adding CM element for Copying/Moving a Page Into/After from a drag & drop action
integer | source UID code for the record to modify | |
integer | destination UID code for the record to modify | |
string | Action code: either "move" or "copy" | |
string | Parameter code: either "into" or "after" |
Definition at line 1070 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDragDropClickMenu().
clickMenu::dragDrop_copymovefolder | ( | $ | srcPath, | |
$ | dstPath, | |||
$ | action | |||
) |
Adding CM element for Copying/Moving a Folder Into from a drag & drop action
string | source path for the record to modify | |
string | destination path for the records to modify | |
string | Action code: either "move" or "copy" |
Definition at line 1095 of file alt_clickmenu.php.
References excludeIcon(), frameLocation(), label(), linkItem(), and t3lib_iconWorks::skinImg().
Referenced by printDragDropClickMenu().
clickMenu::printItems | ( | $ | menuItems, | |
$ | item | |||
) |
Prints the items from input $menuItems array - both as topframe menu AND the JS section for writing to the div-layers. Of course the topframe menu will appear only if $this->doDisplayTopFrameCM() returns true
array | $menuItems array | |
string | HTML code for the element which was clicked - shown in the end of the horizontal menu in topframe after the close-button. |
Definition at line 1131 of file alt_clickmenu.php.
References cleanUpSpacers(), doDisplayTopFrameCM(), enableDisableItems(), printLayerJScode(), and t3lib_iconWorks::skinImg().
Referenced by printDBClickMenu(), printDragDropClickMenu(), printFileClickMenu(), and printNewDBLevel().
clickMenu::printLayerJScode | ( | $ | menuItems | ) |
Create the JavaScript section
array | The $menuItems array to print |
Definition at line 1183 of file alt_clickmenu.php.
References doDisplayTopFrameCM(), isCMlayers(), menuItemsForClickMenu(), and wrapColorTableCM().
Referenced by printItems().
clickMenu::wrapColorTableCM | ( | $ | str | ) |
Wrapping the input string in a table with background color 4 and a black border style. For the pop-up menu
string | HTML content to wrap in table. |
Definition at line 1224 of file alt_clickmenu.php.
Referenced by printLayerJScode().
clickMenu::menuItemsForTopFrame | ( | $ | menuItems | ) |
Traverses the menuItems and generates an output array for implosion in the topframe horizontal menu
array | $menuItem array | |
array | Array with HTML content to be imploded between |
-tags
Definition at line 1247 of file alt_clickmenu.php.
clickMenu::menuItemsForClickMenu | ( | $ | menuItems | ) |
Traverses the menuItems and generates an output array for implosion in the CM div-layers table.
array | $menuItem array | |
array | Array with HTML content to be imploded between |
-tags
Definition at line 1264 of file alt_clickmenu.php.
Referenced by printLayerJScode().
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.
array | Menu items array | |
array | Menu items array to insert | |
string | 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 1302 of file alt_clickmenu.php.
References t3lib_div::trimExplode().
clickMenu::linkItem | ( | $ | str, | |
$ | icon, | |||
$ | onClick, | |||
$ | onlyCM = 0 , |
|||
$ | dontHide = 0 | |||
) |
Creating an array with various elements for the clickmenu entry
string | The label, htmlspecialchar'ed already | |
string<img>-tag | for the icon | |
string | JavaScript onclick event for label/icon | |
boolean | ==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) | |
boolean | If set, the clickmenu layer will not hide itself onclick - used for secondary menus to appear... |
Definition at line 1378 of file alt_clickmenu.php.
References t3lib_iconWorks::skinImg().
Referenced by DB_changeFlag(), DB_copycut(), DB_db_list(), DB_delete(), DB_edit(), DB_editAccess(), DB_editPageProperties(), DB_history(), DB_info(), DB_moveWizard(), DB_new(), DB_newWizard(), DB_paste(), DB_perms(), DB_tempMountPoint(), DB_view(), dragDrop_copymovefolder(), dragDrop_copymovepage(), FILE_copycut(), FILE_delete(), FILE_launch(), and FILE_paste().
clickMenu::excludeIcon | ( | $ | iconCode | ) |
Returns the input string IF not a user setting has disabled display of icons.
string | The icon-image tag |
Definition at line 1407 of file alt_clickmenu.php.
Referenced by DB_changeFlag(), DB_copycut(), DB_db_list(), DB_delete(), DB_edit(), DB_editAccess(), DB_editPageProperties(), DB_history(), DB_info(), DB_moveWizard(), DB_new(), DB_newWizard(), DB_paste(), DB_perms(), DB_tempMountPoint(), DB_view(), dragDrop_copymovefolder(), dragDrop_copymovepage(), FILE_copycut(), FILE_delete(), FILE_launch(), and FILE_paste().
clickMenu::enableDisableItems | ( | $ | menuItems | ) |
Enabling / Disabling items based on list provided from GET var ($this->iParts[3])
array | Menu items array |
Definition at line 1417 of file alt_clickmenu.php.
References t3lib_div::inList(), and t3lib_div::trimExplode().
Referenced by printItems().
clickMenu::cleanUpSpacers | ( | $ | menuItems | ) |
Clean up spacers; Will remove any spacers in the start/end of menu items array plus any duplicates.
array | Menu items array |
Definition at line 1455 of file alt_clickmenu.php.
Referenced by printItems().
clickMenu::label | ( | $ | label | ) |
Get label from locallang_core.php:cm.*
string | The "cm."-suffix to get. |
Definition at line 1497 of file alt_clickmenu.php.
Referenced by DB_copycut(), DB_delete(), DB_edit(), DB_hideUnhide(), DB_info(), DB_new(), DB_paste(), DB_tempMountPoint(), DB_view(), dragDrop_copymovefolder(), dragDrop_copymovepage(), FILE_copycut(), FILE_delete(), FILE_launch(), and FILE_paste().
clickMenu::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 1506 of file alt_clickmenu.php.
Referenced by printLayerJScode().
clickMenu::frameLocation | ( | $ | str | ) |
Appends ".location" to input string
string | Input string, probably a JavaScript document reference |
Definition at line 1520 of file alt_clickmenu.php.
Referenced by DB_changeFlag(), DB_delete(), DB_edit(), DB_paste(), dragDrop_copymovefolder(), dragDrop_copymovepage(), FILE_delete(), FILE_launch(), and urlRefForCM().