Documentation TYPO3 par Ameos |
Public Member Functions | |
initializeClipboard () | |
lockToNormal () | |
setCmd ($cmd) | |
setCurrentPad ($padIdent) | |
endClipboard () | |
cleanUpCBC ($CBarr, $table, $removeDeselected=0) | |
isElements () | |
printClipboard () | |
printContentFromTab ($pad) | |
padTitleWrap ($str, $pad) | |
linkItemText ($str, $rec, $table='') | |
isSelected ($table, $uid) | |
getSelectedRecord ($table='', $uid='') | |
selUrlDB ($table, $uid, $copy=0, $deselect=0, $baseArray=array()) | |
selUrlFile ($path, $copy=0, $deselect=0, $baseArray=array()) | |
pasteUrl ($table, $uid, $setRedirect=1) | |
deleteUrl ($setRedirect=1, $file=0) | |
editUrl () | |
removeUrl ($table, $uid) | |
cleanCurrent () | |
elFromTable ($matchTable='', $pad='') | |
confirmMsg ($table, $rec, $type, $clElements) | |
removeElement ($el) | |
saveClipboard () | |
currentMode () | |
clLabel ($key, $Akey='labels') | |
makePasteCmdArray ($ref, $CMD) | |
makeDeleteCmdArray ($CMD) | |
makePasteCmdArray_file ($ref, $FILE) | |
makeDeleteCmdArray_file ($FILE) | |
initializeClipboard () | |
lockToNormal () | |
setCmd ($cmd) | |
setCurrentPad ($padIdent) | |
endClipboard () | |
cleanUpCBC ($CBarr, $table, $removeDeselected=0) | |
isElements () | |
printClipboard () | |
printContentFromTab ($pad) | |
padTitleWrap ($str, $pad) | |
linkItemText ($str, $rec, $table='') | |
isSelected ($table, $uid) | |
getSelectedRecord ($table='', $uid='') | |
selUrlDB ($table, $uid, $copy=0, $deselect=0, $baseArray=array()) | |
selUrlFile ($path, $copy=0, $deselect=0, $baseArray=array()) | |
pasteUrl ($table, $uid, $setRedirect=1) | |
deleteUrl ($setRedirect=1, $file=0) | |
editUrl () | |
removeUrl ($table, $uid) | |
cleanCurrent () | |
elFromTable ($matchTable='', $pad='') | |
confirmMsg ($table, $rec, $type, $clElements) | |
removeElement ($el) | |
saveClipboard () | |
currentMode () | |
clLabel ($key, $Akey='labels') | |
makePasteCmdArray ($ref, $CMD) | |
makeDeleteCmdArray ($CMD) | |
makePasteCmdArray_file ($ref, $FILE) | |
makeDeleteCmdArray_file ($FILE) | |
Public Attributes | |
$numberTabs = 3 | |
$clipData = array() | |
$changed = 0 | |
$current = '' | |
$backPath = '' | |
$lockToNormal = 0 | |
$fileMode = 0 |
Definition at line 90 of file class.t3lib_clipboard.php.
|
This traverses the elements on the current clipboard pane and unsets elements which does not exist anymore or are disabled.
Definition at line 614 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecord(). |
|
This traverses the elements on the current clipboard pane and unsets elements which does not exist anymore or are disabled.
Definition at line 614 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecord(). |
|
Cleans up an incoming element array $CBarr (Array selecting/deselecting elements)
Definition at line 247 of file class.t3lib_clipboard.php. |
|
Cleans up an incoming element array $CBarr (Array selecting/deselecting elements)
Definition at line 247 of file class.t3lib_clipboard.php. |
|
Clipboard label - getting from "EXT:lang/locallang_core.php:"
Definition at line 749 of file class.t3lib_clipboard.php. |
|
Clipboard label - getting from "EXT:lang/locallang_core.php:"
Definition at line 749 of file class.t3lib_clipboard.php. |
|
Returns confirm JavaScript message
Definition at line 673 of file class.t3lib_clipboard.php. References t3lib_div::fixed_lgd_cs(), and t3lib_BEfunc::getRecordTitle(). |
|
Returns confirm JavaScript message
Definition at line 673 of file class.t3lib_clipboard.php. References t3lib_div::fixed_lgd_cs(), and t3lib_BEfunc::getRecordTitle(). |
|
Returns the current mode, 'copy' or 'cut'
Definition at line 738 of file class.t3lib_clipboard.php. |
|
Returns the current mode, 'copy' or 'cut'
Definition at line 738 of file class.t3lib_clipboard.php. |
|
deleteUrl for current pad
Definition at line 566 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
deleteUrl for current pad
Definition at line 566 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
editUrl of all current elements ONLY database Links to alt_doc.php
Definition at line 583 of file class.t3lib_clipboard.php. |
|
editUrl of all current elements ONLY database Links to alt_doc.php
Definition at line 583 of file class.t3lib_clipboard.php. |
|
Counts the number of elements from the table $matchTable. If $matchTable is blank, all tables (except '_FILE' of course) is counted.
Definition at line 641 of file class.t3lib_clipboard.php. |
|
Counts the number of elements from the table $matchTable. If $matchTable is blank, all tables (except '_FILE' of course) is counted.
Definition at line 641 of file class.t3lib_clipboard.php. |
|
Call this after initialization and setCmd in order to save the clipboard to the user session. The function will check if the internal flag ->changed has been set and if so, save the clipboard. Else not.
Definition at line 234 of file class.t3lib_clipboard.php. |
|
Call this after initialization and setCmd in order to save the clipboard to the user session. The function will check if the internal flag ->changed has been set and if so, save the clipboard. Else not.
Definition at line 234 of file class.t3lib_clipboard.php. |
|
Returns item record $table,$uid if selected on current clipboard If table and uid is blank, the first element is returned. Makes sense only for DB records - not files!
Definition at line 493 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecord(), and t3lib_BEfunc::getRecordTitle(). |
|
Returns item record $table,$uid if selected on current clipboard If table and uid is blank, the first element is returned. Makes sense only for DB records - not files!
Definition at line 493 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecord(), and t3lib_BEfunc::getRecordTitle(). |
|
Initialize the clipboard from the be_user session
Definition at line 126 of file class.t3lib_clipboard.php. References $clipData, t3lib_div::intInRange(), and t3lib_div::testInt(). |
|
Initialize the clipboard from the be_user session
Definition at line 126 of file class.t3lib_clipboard.php. References $clipData, t3lib_div::intInRange(), and t3lib_div::testInt(). |
|
Reports if the current pad has elements (does not check file/DB type OR if file/DBrecord exists or not. Only counting array)
Definition at line 265 of file class.t3lib_clipboard.php. |
|
Reports if the current pad has elements (does not check file/DB type OR if file/DBrecord exists or not. Only counting array)
Definition at line 265 of file class.t3lib_clipboard.php. |
|
Verifies if the item $table/$uid is on the current pad. If the pad is "normal", the mode value is returned if the element existed. Thus you'll know if the item was copy or cut moded...
Definition at line 479 of file class.t3lib_clipboard.php. |
|
Verifies if the item $table/$uid is on the current pad. If the pad is "normal", the mode value is returned if the element existed. Thus you'll know if the item was copy or cut moded...
Definition at line 479 of file class.t3lib_clipboard.php. |
|
Wraps the title of the items listed in link-tags. The items will link to the page/folder where they originate from
Definition at line 454 of file class.t3lib_clipboard.php. |
|
Wraps the title of the items listed in link-tags. The items will link to the page/folder where they originate from
Definition at line 454 of file class.t3lib_clipboard.php. |
|
Call this method after initialization if you want to lock the clipboard to operate on the normal pad only. Trying to switch pad through ->setCmd will not work This is used by the clickmenu since it only allows operation on single elements at a time (that is the "normal" pad)
Definition at line 155 of file class.t3lib_clipboard.php. |
|
Call this method after initialization if you want to lock the clipboard to operate on the normal pad only. Trying to switch pad through ->setCmd will not work This is used by the clickmenu since it only allows operation on single elements at a time (that is the "normal" pad)
Definition at line 155 of file class.t3lib_clipboard.php. |
|
Delete record entries in CMD array
Definition at line 819 of file class.t3lib_clipboard.php. |
|
Delete record entries in CMD array
Definition at line 819 of file class.t3lib_clipboard.php. |
|
Delete files in CMD array
Definition at line 884 of file class.t3lib_clipboard.php. |
|
Delete files in CMD array
Definition at line 884 of file class.t3lib_clipboard.php. |
|
Applies the proper paste configuration in the $cmd array send to tce_db.php. $ref is the target, see description below. The current pad is pasted $ref: [tablename]:[paste-uid]. tablename is the name of the table from which elements *on the current clipboard* is pasted with the 'pid' paste-uid. No tablename means that all items on the clipboard (non-files) are pasted. This requires paste-uid to be positive though. so 'tt_content:-3' means 'paste tt_content elements on the clipboard to AFTER tt_content:3 record 'tt_content:30' means 'paste tt_content elements on the clipboard into page with id 30 ':30' means 'paste ALL database elements on the clipboard into page with id 30 ':-30' not valid.
Definition at line 790 of file class.t3lib_clipboard.php. |
|
Applies the proper paste configuration in the $cmd array send to tce_db.php. $ref is the target, see description below. The current pad is pasted $ref: [tablename]:[paste-uid]. tablename is the name of the table from which elements *on the current clipboard* is pasted with the 'pid' paste-uid. No tablename means that all items on the clipboard (non-files) are pasted. This requires paste-uid to be positive though. so 'tt_content:-3' means 'paste tt_content elements on the clipboard to AFTER tt_content:3 record 'tt_content:30' means 'paste tt_content elements on the clipboard into page with id 30 ':30' means 'paste ALL database elements on the clipboard into page with id 30 ':-30' not valid.
Definition at line 790 of file class.t3lib_clipboard.php. |
|
Applies the proper paste configuration in the $file array send to tce_file.php. The current pad is pasted
Definition at line 862 of file class.t3lib_clipboard.php. |
|
Applies the proper paste configuration in the $file array send to tce_file.php. The current pad is pasted
Definition at line 862 of file class.t3lib_clipboard.php. |
|
Wraps title of pad in bold-tags and maybe the number of elements if any.
Definition at line 437 of file class.t3lib_clipboard.php. |
|
Wraps title of pad in bold-tags and maybe the number of elements if any.
Definition at line 437 of file class.t3lib_clipboard.php. |
|
pasteUrl of the element (database and file) For the meaning of $table and $uid, please read from ->makePasteCmdArray!!! The URL will point to tce_file or tce_db depending in $table
Definition at line 549 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
pasteUrl of the element (database and file) For the meaning of $table and $uid, please read from ->makePasteCmdArray!!! The URL will point to tce_file or tce_db depending in $table
Definition at line 549 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Prints the clipboard
Definition at line 274 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(), and t3lib_iconWorks::skinImg(). |
|
Prints the clipboard
Definition at line 274 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(), and t3lib_iconWorks::skinImg(). |
|
Print the content on a pad. Called from ->printClipboard()
Definition at line 363 of file class.t3lib_clipboard.php. References t3lib_div::fixed_lgd_cs(), t3lib_BEfunc::getFileIcon(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordTitle(), t3lib_BEfunc::getThumbNail(), t3lib_div::inList(), t3lib_div::isAllowedAbsPath(), and t3lib_iconWorks::skinImg(). |
|
Print the content on a pad. Called from ->printClipboard()
Definition at line 363 of file class.t3lib_clipboard.php. References t3lib_div::fixed_lgd_cs(), t3lib_BEfunc::getFileIcon(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecord(), t3lib_BEfunc::getRecordTitle(), t3lib_BEfunc::getThumbNail(), t3lib_div::inList(), t3lib_div::isAllowedAbsPath(), and t3lib_iconWorks::skinImg(). |
|
Removes element on clipboard
Definition at line 716 of file class.t3lib_clipboard.php. |
|
Removes element on clipboard
Definition at line 716 of file class.t3lib_clipboard.php. |
|
Returns the remove-url (file and db) for file $table='_FILE' and $uid = shortmd5 hash of path
Definition at line 604 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Returns the remove-url (file and db) for file $table='_FILE' and $uid = shortmd5 hash of path
Definition at line 604 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Saves the clipboard, no questions asked. Use ->endClipboard normally (as it checks if changes has been done so saving is necessary)
Definition at line 728 of file class.t3lib_clipboard.php. |
|
Saves the clipboard, no questions asked. Use ->endClipboard normally (as it checks if changes has been done so saving is necessary)
Definition at line 728 of file class.t3lib_clipboard.php. |
|
Returns the select-url for database elements
Definition at line 516 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Returns the select-url for database elements
Definition at line 516 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Returns the select-url for files
Definition at line 532 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Returns the select-url for files
Definition at line 532 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
The array $cmd may hold various keys which notes some action to take. Normally perform only one action at a time. In scripts like db_list.php / file_list.php the GET-var CB is used to control the clipboard. Selecting / Deselecting elements Array $cmd['el'] has keys = element-ident, value = element value (see description of clipData array in header) Selecting elements for 'copy' should be done by simultaneously setting setCopyMode.
Definition at line 172 of file class.t3lib_clipboard.php. |
|
The array $cmd may hold various keys which notes some action to take. Normally perform only one action at a time. In scripts like db_list.php / file_list.php the GET-var CB is used to control the clipboard. Selecting / Deselecting elements Array $cmd['el'] has keys = element-ident, value = element value (see description of clipData array in header) Selecting elements for 'copy' should be done by simultaneously setting setCopyMode.
Definition at line 172 of file class.t3lib_clipboard.php. |
|
Setting the current pad on clipboard
Definition at line 219 of file class.t3lib_clipboard.php. |
|
Setting the current pad on clipboard
Definition at line 219 of file class.t3lib_clipboard.php. |
|
Clipboard data kept here Keys: 'normal' 'tab_[x]' where x is >=1 and denotes the pad-number \ 'mode' : 'copy' means copy-mode, default = moving ('cut') \ 'el' : Array of elements: DB: keys = '[tablename]|[uid]' eg. 'tt_content:123' DB: values = 1 (basically insignificant) FILE: keys = '_FILE|[shortmd5 of path]' eg. '_FILE|9ebc7e5c74' FILE: values = The full filepath, eg. '/www/htdocs/typo3/32/dummy/fileadmin/sem1_3_examples/alternative_index.php' or 'C:/www/htdocs/typo3/32/dummy/fileadmin/sem1_3_examples/alternative_index.php' 'current' pointer to current tab (among the above...) '_setThumb' boolean: If set, file thumbnails are shown. The virtual tablename '_FILE' will always indicate files/folders. When checking for elements from eg. 'all tables' (by using an empty string) '_FILE' entries are excluded (so in effect only DB elements are counted) Definition at line 112 of file class.t3lib_clipboard.php. Referenced by initializeClipboard(). |