Documentation TYPO3 par Ameos |
Public Member Functions | |
initializeClipboard () | |
lockToNormal () | |
setCmd ($cmd) | |
setCurrentPad ($padIdent) | |
endClipboard () | |
cleanUpCBC ($CBarr, $table, $removeDeselected=0) | |
printClipboard () | |
printContentFromTab ($pad) | |
padTitleWrap ($str, $pad) | |
linkItemText ($str, $rec, $table='') | |
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) | |
confirmMsg ($table, $rec, $type, $clElements) | |
clLabel ($key, $Akey='labels') | |
exportClipElementParameters () | |
removeElement ($el) | |
saveClipboard () | |
currentMode () | |
cleanCurrent () | |
elFromTable ($matchTable='', $pad='') | |
isSelected ($table, $uid) | |
getSelectedRecord ($table='', $uid='') | |
isElements () | |
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 97 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 771 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecord(). |
|
Cleans up an incoming element array $CBarr (Array selecting/deselecting elements)
Definition at line 271 of file class.t3lib_clipboard.php. |
|
Clipboard label - getting from "EXT:lang/locallang_core.php:"
Definition at line 680 of file class.t3lib_clipboard.php. |
|
Returns confirm JavaScript message
Definition at line 632 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 761 of file class.t3lib_clipboard.php. |
|
deleteUrl for current pad
Definition at line 581 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 598 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 798 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 258 of file class.t3lib_clipboard.php. |
|
Creates GET parameters for linking to the export module.
Definition at line 689 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecord(), and t3lib_div::isAllowedAbsPath(). |
|
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 843 of file class.t3lib_clipboard.php. References t3lib_BEfunc::getRecordTitle(), and t3lib_BEfunc::getRecordWSOL(). |
|
Initialize the clipboard from the be_user session
Definition at line 150 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 861 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 829 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 504 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 179 of file class.t3lib_clipboard.php. |
|
Delete record entries in CMD array
Definition at line 931 of file class.t3lib_clipboard.php. |
|
Delete files in CMD array
Definition at line 996 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 902 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 974 of file class.t3lib_clipboard.php. |
|
Wraps title of pad in bold-tags and maybe the number of elements if any.
Definition at line 487 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 564 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Prints the clipboard
Definition at line 306 of file class.t3lib_clipboard.php. References t3lib_extMgm::isLoaded(), t3lib_div::linkThisScript(), and t3lib_iconWorks::skinImg(). |
|
Print the content on a pad. Called from ->printClipboard()
Definition at line 413 of file class.t3lib_clipboard.php. References t3lib_div::fixed_lgd_cs(), t3lib_BEfunc::getFileIcon(), t3lib_iconWorks::getIconImage(), t3lib_BEfunc::getRecordTitle(), t3lib_BEfunc::getRecordWSOL(), t3lib_BEfunc::getThumbNail(), t3lib_div::inList(), t3lib_div::isAllowedAbsPath(), and t3lib_iconWorks::skinImg(). |
|
Removes element on clipboard
Definition at line 739 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 619 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 751 of file class.t3lib_clipboard.php. |
|
Returns the select-url for database elements
Definition at line 531 of file class.t3lib_clipboard.php. References t3lib_div::linkThisScript(). |
|
Returns the select-url for files
Definition at line 547 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 196 of file class.t3lib_clipboard.php. |
|
Setting the current pad on clipboard
Definition at line 243 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 119 of file class.t3lib_clipboard.php. Referenced by initializeClipboard(). |