2 namespace TYPO3\CMS\Backend\View\PageLayout\ExtDirect;
38 public function moveContentElement($sourceElement, $destinationColumn, $destinationElement)
42 $afterElementUid = -1;
47 $moveElementUid = (int)$uid;
51 $afterElementUid = (int)$uid;
54 $afterElementUid = -1;
60 $targetColumn = (int)$column;
61 $targetPage = (int)$page;
64 if ($afterElementUid === -1) {
65 $action[
'cmd'][
'tt_content'][$moveElementUid][
'move'] = $targetPage;
67 $action[
'cmd'][
'tt_content'][$moveElementUid][
'move'] = -$afterElementUid;
70 $action[
'data'][
'tt_content'][$moveElementUid][
'colPos'] = $targetColumn;
78 'sourceElement' => $sourceElement,
79 'destinationColumn' => $destinationColumn,
80 'destinationElement' => $destinationElement,
85 $tce->stripslashes_values = 0;
86 $tce->start($action[
'data'], $action[
'cmd']);
87 $tce->process_datamap();
88 $tce->process_cmdmap();
90 return array(
'success' =>
true);