45 $GLOBALS[
'LANG']->includeLLFile(
'EXT:lang/locallang_wizards.xlf');
56 protected function init() {
73 $table = $this->P[
'table'];
74 $field = $this->P[
'field'];
75 $config =
$GLOBALS[
'TCA'][$table][
'columns'][$field][
'config'];
76 $fTable = $this->P[
'currentValue'] < 0 ? $config[
'neg_foreign_table'] : $config[
'foreign_table'];
78 if (is_array($config) && $config[
'type'] ==
'select' && !$config[
'MM'] && $config[
'maxitems'] <= 1 && \
TYPO3\CMS\Core\Utility\
MathUtility::canBeInterpretedAsInteger($this->P[
'currentValue']) && $this->P[
'currentValue'] && $fTable) {
80 $redirectUrl =
'alt_doc.php?returnUrl=' . rawurlencode(
BackendUtility::getModuleUrl(
'wizard_edit', array(
'doClose' => 1))) .
'&edit[' . $fTable .
'][' . $this->P[
'currentValue'] .
']=edit';
82 } elseif (is_array($config) && $this->P[
'currentSelectedValues'] && ($config[
'type'] ==
'select' && $config[
'foreign_table'] || $config[
'type'] ==
'group' && $config[
'internal_type'] ==
'db')) {
85 $allowedTables = $config[
'type'] ==
'group' ? $config[
'allowed'] : $config[
'foreign_table'] .
',' . $config[
'neg_foreign_table'];
90 $dbAnalysis->start($this->P[
'currentSelectedValues'], $allowedTables);
91 $value = $dbAnalysis->getValueArray($prependName);
93 foreach ($value as $rec) {
95 $params .=
'&edit[' . $recTableUidParts[0] .
'][' . $recTableUidParts[1] .
']=edit';
112 echo
'<script language="javascript" type="text/javascript">close();</script>';
static canBeInterpretedAsInteger($var)
static makeInstance($className)
static getModuleUrl($moduleName, $urlParameters=array(), $backPathOverride=FALSE, $returnAbsoluteUrl=FALSE)
static redirect($url, $httpStatus=self::HTTP_STATUS_303)
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]
static revExplode($delimiter, $string, $count=0)