38 $GLOBALS[
'LANG']->includeLLFile(
'EXT:impexp/locallang_csh.xlf');
73 'tx_impexp[action]' =>
'export',
75 'preset[select]' => $id)
77 return $this->taskObject->urlInIframe($url, 1);
80 $content .= $this->taskObject->description(
$GLOBALS[
'LANG']->getLL(
'.alttitle'),
$GLOBALS[
'LANG']->getLL(
'.description'));
81 $thumbnails = ($lines = array());
87 $clause =
$GLOBALS[
'BE_USER']->getPagePermsClause(1);
92 if (is_array($presets)) {
93 foreach ($presets as $key => $presetCfg) {
94 $configuration = unserialize($presetCfg[
'preset_data']);
95 $thumbnailFile = $thumbnails[$configuration[
'meta'][
'thumbnail']];
96 $title = strlen($presetCfg[
'title']) ? $presetCfg[
'title'] :
'[' . $presetCfg[
'uid'] .
']';
97 $icon =
'EXT:impexp/export.gif';
98 $description = array();
100 if ($presetCfg[
'public']) {
101 $description[] =
$GLOBALS[
'LANG']->getLL(
'task.public') .
': ' .
$GLOBALS[
'LANG']->sL(
'LLL:EXT:lang/locallang_common.xlf:yes');
104 $description[] =
$GLOBALS[
'LANG']->getLL(
'task.owner') .
': ' . ($presetCfg[
'user_uid'] ===
$GLOBALS[
'BE_USER']->user[
'uid'] ?
$GLOBALS[
'LANG']->getLL(
'task.own') :
'[' . htmlspecialchars($usernames[$presetCfg[
'user_uid']][
'username']) .
']');
106 if ($configuration[
'pagetree'][
'id']) {
107 $description[] =
$GLOBALS[
'LANG']->getLL(
'task.page') .
': ' . $configuration[
'pagetree'][
'id'];
110 $description[] =
$GLOBALS[
'LANG']->getLL(
'single-record');
113 if ($configuration[
'meta'][
'title'] || $configuration[
'meta'][
'description'] || $configuration[
'meta'][
'notes']) {
114 $metaInformation =
'';
115 if ($configuration[
'meta'][
'title']) {
116 $metaInformation .=
'<strong>' . htmlspecialchars($configuration[
'meta'][
'title']) .
'</strong><br />';
118 if ($configuration[
'meta'][
'description']) {
119 $metaInformation .= htmlspecialchars($configuration[
'meta'][
'description']);
121 if ($configuration[
'meta'][
'notes']) {
122 $metaInformation .=
'<br /><br /> 123 <strong>' .
$GLOBALS[
'LANG']->getLL(
'notes') .
': </strong> 124 <em>' . htmlspecialchars($configuration[
'meta'][
'notes']) .
'</em>';
126 $description[] =
'<br />' . $metaInformation;
129 $lines[$key] = array(
132 'descriptionHtml' => implode(
'<br />', $description),
137 $content .= $this->taskObject->renderListMenu($lines);
141 'TYPO3\\CMS\\Core\\Messaging\\FlashMessage',
142 $GLOBALS[
'LANG']->getLL(
'no-presets'),
144 \
TYPO3\CMS\Core\Messaging\FlashMessage::NOTICE
146 $content .= $flashMessage->render();
158 $presets =
$GLOBALS[
'TYPO3_DB']->exec_SELECTgetRows(
161 '(public > 0 OR user_uid=' .
$GLOBALS[
'BE_USER']->user[
'uid'] .
')',
163 'item_uid DESC, title'
__construct(\TYPO3\CMS\Taskcenter\Controller\TaskModuleController $taskObject)
static makeInstance($className)
static getModuleUrl($moduleName, $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
static getUserNames($fields='username, usergroup, usergroup_cached_list, uid', $where='')
static getFilesInDir($path, $extensionList='', $prependPath=FALSE, $order='', $excludePattern='')
static getRecordPath($uid, $clause, $titleLimit, $fullTitleLimit=0)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]