Solutions Open Source

Référence de la classe clickMenu

Liste de tous les membres

Fonctions membres publiques

 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)

Attributs publics

 $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()


Documentation des fonctions membres

clickMenu::init (  ) 

Initialize click menu

Renvoie:
string The clickmenu HTML content

clickMenu::doDisplayTopFrameCM (  ) 

Returns true if the menu should (also?) be displayed in topframe, not just

-layers

Renvoie:
boolean

clickMenu::printDBClickMenu ( table,
uid 
)

Make 1st level clickmenu:

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
string HTML content

clickMenu::printNewDBLevel ( table,
uid 
)

Make 2nd level clickmenu (only for DBmenus)

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
string HTML content

clickMenu::externalProcessingOfDBMenuItems ( menuItems  ) 

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

Paramètres:
array $menuItems array for manipulation.
Renvoie:
array Processed $menuItems array

clickMenu::processingByExtClassArray ( menuItems,
table,
uid 
)

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

Paramètres:
array $menuItems array for manipulation.
string Table name
integer UID for the current record.
Renvoie:
array Processed $menuItems array

clickMenu::urlRefForCM ( url,
retUrl = '',
hideCM = 1,
overrideLoc = '' 
)

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

Paramètres:
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)
Renvoie:
string JavaScript for an onClick event.

clickMenu::DB_copycut ( table,
uid,
type 
)

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

Paramètres:
string Table name
integer UID for the current record.
string Type: "copy" or "cut"
Renvoie:
array Item array, element in $menuItems

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();

Paramètres:
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.
Renvoie:
array Item array, element in $menuItems
Voir également:
t3lib_clipboard::pasteUrl()

clickMenu::DB_info ( table,
uid 
)

Adding CM element for Info

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_history ( table,
uid 
)

Adding CM element for History

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_perms ( table,
uid,
rec 
)

Adding CM element for Permission setting

Paramètres:
string Table name
integer UID for the current record.
array The "pages" record with "perms_*" fields inside.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_db_list ( table,
uid,
rec 
)

Adding CM element for DBlist

Paramètres:
string Table name
integer UID for the current record.
array Record of the element (needs "pid" field if not pages-record)
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_moveWizard ( table,
uid,
rec 
)

Adding CM element for Moving wizard

Paramètres:
string Table name
integer UID for the current record.
array Record. Needed for tt-content elements which will have the sys_language_uid sent
Renvoie:
array Item array, element in $menuItems

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)

Paramètres:
string Table name
integer UID for the current record.
array Record.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_editAccess ( table,
uid 
)

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

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_editPageHeader ( uid  ) 

Adding CM element for edit page header

Paramètres:
integer page uid to edit (PID)
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_editPageProperties ( uid  ) 

Adding CM element for edit page properties

Paramètres:
integer page uid to edit (PID)
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_edit ( table,
uid 
)

Adding CM element for regular editing of the element!

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_new ( table,
uid 
)

Adding CM element for regular Create new element

Paramètres:
string Table name
integer UID for the current record.
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_delete ( table,
uid,
elInfo 
)

Adding CM element for Delete

Paramètres:
string Table name
integer UID for the current record.
array Label for including in the confirmation message, EXT:lang/locallang_core.php:mess.delete
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_view ( id,
anchor = '' 
)

Adding CM element for View Page

Paramètres:
integer Page uid (PID)
string Anchor, if any
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_tempMountPoint ( page_id  ) 

Adding element for setting temporary mount point.

Paramètres:
integer Page uid (PID)
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_hideUnhide ( table,
rec,
hideField 
)

Adding CM element for hide/unhide of the input record

Paramètres:
string Table name
array Record array
string Name of the hide field
Renvoie:
array Item array, element in $menuItems

clickMenu::DB_changeFlag ( table,
rec,
flagField,
title,
name,
iconRelPath = 'gfx/' 
)

Adding CM element for a flag field of the input record

Paramètres:
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
Renvoie:
array Item array, element in $menuItems

clickMenu::printFileClickMenu ( path  ) 

Make 1st level clickmenu:

Paramètres:
string The absolute path
Renvoie:
string HTML content

clickMenu::externalProcessingOfFileMenuItems ( menuItems  ) 

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

Paramètres:
array $menuItems array for manipulation.
Renvoie:
array Processed $menuItems array

clickMenu::FILE_launch ( path,
script,
type,
image 
)

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

Paramètres:
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)
Renvoie:
array Item array, element in $menuItems

clickMenu::FILE_copycut ( path,
type 
)

Returns element for copy or cut of files.

Paramètres:
string Path to the file/directory (target)
string Type: "copy" or "cut"
Renvoie:
array Item array, element in $menuItems

clickMenu::FILE_delete ( path  ) 

Creates element for deleting of target

Paramètres:
string Path to the file/directory (target)
Renvoie:
array Item array, element in $menuItems

clickMenu::FILE_paste ( path,
target,
elInfo 
)

Creates element for pasting files.

Paramètres:
string Path to the file/directory (target)
string target - NOT USED.
array Various values for the labels.
Renvoie:
array Item array, element in $menuItems

clickMenu::printDragDropClickMenu ( table,
srcId,
dstId 
)

Make 1st level clickmenu:

Paramètres:
string The absolute path
integer UID for the current record.
integer Destination ID
Renvoie:
string HTML content

clickMenu::externalProcessingOfDragDropMenuItems ( menuItems  ) 

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

Paramètres:
array $menuItems array for manipulation.
Renvoie:
array Processed $menuItems array

clickMenu::dragDrop_copymovepage ( srcUid,
dstUid,
action,
into 
)

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

Paramètres:
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"
Renvoie:
array Item array, element in $menuItems

clickMenu::dragDrop_copymovefolder ( srcPath,
dstPath,
action 
)

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

Paramètres:
string source path for the record to modify
string destination path for the records to modify
string Action code: either "move" or "copy"
Renvoie:
array Item array, element in $menuItems

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

Paramètres:
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.
Renvoie:
string HTML code

clickMenu::printLayerJScode ( menuItems  ) 

Create the JavaScript section

Paramètres:
array The $menuItems array to print
Renvoie:
string The JavaScript section which will print the content of the CM to the div-layer in the target frame.

clickMenu::wrapColorTableCM ( str  ) 

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

Paramètres:
string HTML content to wrap in table.
Renvoie:
string

clickMenu::menuItemsForTopFrame ( menuItems  ) 

Traverses the menuItems and generates an output array for implosion in the topframe horizontal menu

Paramètres:
array $menuItem array
array Array with HTML content to be imploded between

-tags

Renvoie:
array Array of menu items for top frame.

clickMenu::menuItemsForClickMenu ( menuItems  ) 

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

Paramètres:
array $menuItem array
array Array with HTML content to be imploded between

-tags

Renvoie:
array array for implosion in the CM div-layers table.

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.

Paramètres:
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.
Renvoie:
array Menu items array, processed.

clickMenu::linkItem ( str,
icon,
onClick,
onlyCM = 0,
dontHide = 0 
)

Creating an array with various elements for the clickmenu entry

Paramètres:
string The label, htmlspecialchar'ed already
string -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...
Renvoie:
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!

clickMenu::excludeIcon ( iconCode  ) 

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

Paramètres:
string The icon-image tag
Renvoie:
string The icon-image tag prefixed with space char IF the icon should be printed at all due to user settings

clickMenu::enableDisableItems ( menuItems  ) 

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

Paramètres:
array Menu items array
Renvoie:
array Menu items array, processed.

clickMenu::cleanUpSpacers ( menuItems  ) 

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

Paramètres:
array Menu items array
Renvoie:
array Menu items array, processed.

clickMenu::label ( label  ) 

Get label from locallang_core.php:cm.*

Paramètres:
string The "cm."-suffix to get.
Renvoie:
string

clickMenu::isCMlayers (  ) 

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

Renvoie:
boolean

clickMenu::frameLocation ( str  ) 

Appends ".location" to input string

Paramètres:
string Input string, probably a JavaScript document reference
Renvoie:
string


Documentation des données membres

clickMenu::$cmLevel = 0

clickMenu::$CB

clickMenu::$backPath = ''

clickMenu::$PH_backPath = '###BACK_PATH###'

clickMenu::$listFrame = 0

clickMenu::$isDBmenu = 0

clickMenu::$alwaysContentFrame = 0

clickMenu::$iParts = array()

clickMenu::$disabledItems = array()

clickMenu::$dontDisplayTopFrameCM = 0

clickMenu::$leftIcons = 0

clickMenu::$extClassArray = array()

clickMenu::$ajax = 0

clickMenu::$elCount = 0

clickMenu::$editPageIconSet = 0

clickMenu::$editOK = 0

clickMenu::$rec = array()


La documentation de cette classe a été générée à partir du fichier suivant :
Généré le Fri Aug 31 11:40:49 2007 pour OBLADY - Typo3 API v4.1.2 par  doxygen 1.5.3