TYPO3 CMS  TYPO3_6-2
db_new_content_el.php
Go to the documentation of this file.
1 <?php
20 unset($MCONF);
21 require __DIR__ . '/conf.php';
22 require $BACK_PATH . 'init.php';
23 // Unset MCONF/MLANG since all we wanted was back path etc. for this particular script.
24 unset($MCONF);
25 unset($MLANG);
26 // Merging locallang files/arrays:
27 $GLOBALS['LANG']->includeLLFile('EXT:lang/locallang_misc.xlf');
29 $LANG->includeLLFile('EXT:cms/layout/locallang_db_new_content_el.xlf');
32 // Exits if 'cms' extension is not loaded:
40 
44  public $dontPrintPageInsertIcons = 1;
45 
54  public function wrapRecordTitle($str, $row) {
55  return $str;
56  }
57 
69  public function onClickInsertRecord($row, $vv, $moveUid, $pid, $sys_lang = 0) {
70  $table = 'tt_content';
71  $location = $this->backPath . 'alt_doc.php?edit[tt_content][' . (is_array($row) ? -$row['uid'] : $pid) . ']=new&defVals[tt_content][colPos]=' . $vv . '&defVals[tt_content][sys_language_uid]=' . $sys_lang . '&returnUrl=' . rawurlencode($GLOBALS['SOBE']->R_URI);
72  return 'window.location.href=\'' . $location . '\'+document.editForm.defValues.value; return false;';
73  }
74 
75 }
76 
77 /*
78  * @deprecated since 6.0, the classname SC_db_new_content_el and this file is obsolete
79  * and will be removed with 6.2. The class was renamed and is now located at:
80  * typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php
81  */
82 require_once \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('backend') . 'Classes/Controller/ContentElement/NewContentElementController.php';
83 // Make instance:
84 $SOBE = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Controller\\ContentElement\\NewContentElementController');
85 $SOBE->init();
86 // Include files?
87 foreach ($SOBE->include_once as $INC_FILE) {
88  include_once $INC_FILE;
89 }
90 $SOBE->main();
91 $SOBE->printContent();
static mergeRecursiveWithOverrule(array &$original, array $overrule, $addKeys=TRUE, $includeEmptyValues=TRUE, $enableUnsetFeature=TRUE)
$MCONF['navFrameScript']
Definition: conf.php:4
$LOCAL_LANG_orig
wrapRecordTitle($str, $row)
$MLANG['default']['tabs_images']['tab']
Definition: conf.php:2
$BACK_PATH
Definition: conf.php:3
onClickInsertRecord($row, $vv, $moveUid, $pid, $sys_lang=0)
$dontPrintPageInsertIcons
Definition: db_layout.php:42
if(!defined('TYPO3_MODE')) $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_userauth.php']['logoff_pre_processing'][]