2 namespace TYPO3\CMS\Impexp;
49 public function main(&$backRef, $menuItems, $table, $uid)
51 $localItems = array();
53 if ($backRef->cmLevel && \TYPO3\CMS\Core\Utility\
GeneralUtility::_GP(
'subname') ==
'moreoptions' || $table ===
'pages' && $uid == 0) {
55 $urlParameters = array(
59 'id' => ($table ==
'pages' ? $uid : $backRef->rec[
'pid'])
61 if ($table ==
'pages') {
62 $urlParameters[
'tx_impexp'][
'pagetree'][
'id'] = $uid;
63 $urlParameters[
'tx_impexp'][
'pagetree'][
'levels'] = 0;
64 $urlParameters[
'tx_impexp'][
'pagetree'][
'tables'][] =
'_ALL';
66 $urlParameters[
'tx_impexp'][
'record'][] = $table .
':' . $uid;
67 $urlParameters[
'tx_impexp'][
'external_ref'][
'tables'][] =
'_ALL';
69 $url = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl(
'xMOD_tximpexp', $urlParameters);
70 $localItems[] = $backRef->linkItem(
$GLOBALS[
'LANG']->makeEntities(
$GLOBALS[
'LANG']->getLLL(
'export', $LL)), $backRef->excludeIcon($this->iconFactory->getIcon(
'actions-document-export-t3d',
Icon::SIZE_SMALL)), $backRef->urlRefForCM(
$url), 1);
71 if ($table ==
'pages') {
72 $urlParameters = array(
79 $url = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleUrl(
'xMOD_tximpexp', $urlParameters);
80 $localItems[] = $backRef->linkItem(
$GLOBALS[
'LANG']->makeEntities(
$GLOBALS[
'LANG']->getLLL(
'import', $LL)), $backRef->excludeIcon($this->iconFactory->getIcon(
'actions-document-import-t3d',
Icon::SIZE_SMALL)), $backRef->urlRefForCM(
$url), 1);
83 return array_merge($menuItems, $localItems);
93 return $GLOBALS[
'LANG']->includeLLFile(
'EXT:impexp/Resources/Private/Language/locallang.xlf',
false);