[!!!][CLEANUP] Remove deprecated code in sysext backend 83/33483/12
authorMarkus Klein <klein.t3@reelworx.at>
Thu, 23 Oct 2014 01:04:53 +0000 (03:04 +0200)
committerWouter Wolters <typo3@wouterwolters.nl>
Tue, 4 Nov 2014 17:49:02 +0000 (18:49 +0100)
This patch does not touch the $include_once magic of BE modules.

Resolves: #59659
Releases: master
Change-Id: I8721b44d93f002d152c93b094df6a60c578d7bf4
Reviewed-on: http://review.typo3.org/33483
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
18 files changed:
typo3/js/tree.js
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
typo3/sysext/backend/Classes/Controller/LoginController.php
typo3/sysext/backend/Classes/Controller/PageTreeNavigationController.php
typo3/sysext/backend/Classes/Form/Element/FlexElement.php
typo3/sysext/backend/Classes/Form/FormEngine.php
typo3/sysext/backend/Classes/Module/ModuleController.php
typo3/sysext/backend/Classes/RecordList/AbstractRecordList.php
typo3/sysext/backend/Classes/Sprite/SpriteGenerator.php
typo3/sysext/backend/Classes/Template/DocumentTemplate.php
typo3/sysext/backend/Classes/Utility/BackendUtility.php
typo3/sysext/backend/Classes/Utility/IconUtility.php
typo3/sysext/backend/Classes/View/ModuleMenuView.php
typo3/sysext/backend/Classes/View/PageLayoutView.php
typo3/sysext/backend/Resources/Public/JavaScript/clickmenu.js
typo3/sysext/core/Documentation/Changelog/master/Breaking-59659-DeprecatedCodeRemovalInBackendSysext.rst [new file with mode: 0644]
typo3/sysext/rsaauth/Classes/BackendWarnings.php
typo3/sysext/sys_action/Classes/ActionTask.php

index db88075..d64d0c6 100644 (file)
@@ -54,12 +54,12 @@ var DragDrop = {
        dropElement: function(event) {
                var dropID = this.getIdFromEvent(event);
                if ((this.dragID) && (this.dragID !== dropID)) {
-                       var url = this.changeURL +
-                                       '?dragDrop=' + this.table +
+                       var urlParams = 'dragDrop=' + this.table +
                                        '&srcId=' + this.dragID +
                                        '&dstId=' + dropID +
                                        '&backPath=' + this.backPath;
-                       showClickmenu_raw(url);
+                       Clickmenu.clickURL = this.changeURL;
+                       Clickmenu.callURL(urlParams);
                }
                this.cancelDragEvent();
                return false;
index e7286a6..1095657 100644 (file)
@@ -1222,28 +1222,6 @@ class ClickMenu {
        }
 
        /**
-        * Traverses the menuItems and generates an output array for implosion in the topframe horizontal menu
-        *
-        * @param array $menuItems Array
-        * @return array Array of menu items for top frame.
-        */
-       public function menuItemsForTopFrame($menuItems) {
-               $out = array();
-               foreach ($menuItems as $i) {
-                       // IF the topbar is the ONLY means of the click menu, then items normally disabled from
-                       // the top menu will appear anyways IF they are disabled with a "1" (2+ will still disallow
-                       // them in the topbar)
-                       if ($i[4] == 1 && !$GLOBALS['SOBE']->doc->isCMlayers()) {
-                               $i[4] = 0;
-                       }
-                       if (is_array($i) && !$i[4]) {
-                               $out[] = $i[0];
-                       }
-               }
-               return $out;
-       }
-
-       /**
         * Traverses the menuItems and generates an output array for implosion in the CM div-layers table.
         *
         * @param array $menuItems Array
@@ -1357,7 +1335,7 @@ class ClickMenu {
         * @param string $str The label, htmlspecialchar'ed already
         * @param string $icon <img>-tag for the icon
         * @param string $onClick JavaScript onclick event for label/icon
-        * @param bool $onlyCM ==1 and the element will NOT appear in clickmenus in the topframe (unless clickmenu is totally unavailable)! ==2 and the item will NEVER appear in top frame. (This is mostly for "less important" options since the top frame is not capable of holding so many elements horizontally)
+        * @param int $onlyCM ==1 and the element will NOT appear in clickmenus in the topframe (unless clickmenu is totally unavailable)! ==2 and the item will NEVER appear in top frame. (This is mostly for "less important" options since the top frame is not capable of holding so many elements horizontally)
         * @param bool $dontHide If set, the clickmenu layer will not hide itself onclick - used for secondary menus to appear...
         * @return array $menuItem entry with 6 numerical entries: [0] is the HTML for display of the element with link and icon an mouseover etc., [1]-[5] is simply the input params passed through!
         */
index 4eab5c7..370a6ff 100644 (file)
@@ -484,7 +484,7 @@ class LoginController {
         * Returns the login box image, whether the default or an image from the rotation folder.
         *
         * @return string HTML image tag.
-        * @deprecated since 6.3, see Deprecation-60559-MakeLoginBoxImage.rst
+        * @deprecated since TYPO3 CMS 7, will be removed in CMS 8, see Deprecation-60559-MakeLoginBoxImage.rst
         */
        public function makeLoginBoxImage() {
                GeneralUtility::logDeprecatedFunction();
@@ -590,7 +590,7 @@ class LoginController {
         * Creates JavaScript for the login form
         *
         * @return string JavaScript code
-        * @deprecated since TYPO3 6.3, not in use anymore
+        * @deprecated since TYPO3 CMS 7, will be removed in CMS 8
         */
        public function getJScode() {
                GeneralUtility::logDeprecatedFunction();
index a5e646c..c00331c 100644 (file)
@@ -73,7 +73,7 @@ class PageTreeNavigationController {
 
        /**
         * @var string
-        * @deprecated since version 7; unused
+        * @deprecated since TYPO3 CMS 7, will be removed in CMS 8
         */
        public $template;
 
index 54b9a49..9960829 100644 (file)
@@ -312,14 +312,6 @@ class FlexElement extends AbstractFormElement {
                                                                $title = '';
                                                                if (isset($nCfg['title'])) {
                                                                        $title = $this->formEngine->sL($nCfg['title']);
-                                                               } elseif (isset($nCfg['tx_templavoila']['title'])) {
-                                                                       /* @deprecated since 4.7 will be removed two versions after 6.2 */
-                                                                       GeneralUtility::deprecationLog(
-                                                                               'Flexform data for table ' . $table . ', field ' . $field
-                                                                               . 'contains the <tx_templavoila><title>... construct deprecated since TYPO3 4.7. '
-                                                                               . 'The <tx_templavoila> element has to be removed now. Support will be removed two versions after 6.2.'
-                                                                       );
-                                                                       $title = $this->formEngine->sL($nCfg['tx_templavoila']['title']);
                                                                }
                                                                $newElementsLinks[] = '<a href="#" onclick="' . htmlspecialchars($onClickInsert) . '">'
                                                                        . IconUtility::getSpriteIcon('actions-document-new')
index 56c27ae..93a15e1 100644 (file)
@@ -1977,7 +1977,7 @@ class FormEngine {
         * @param string $field Specify the field name.
         * @return array|NULL
         * @see getSpecConfFromString(), BackendUtility::getTCAtypes()
-        * @deprecated since 6.3 - will be removed two versions later; unused in Core
+        * @deprecated since TYPO3 CMS 7, will be removed in CMS 8
         */
        public function getSpecConfForField($table, $row, $field) {
                GeneralUtility::logDeprecatedFunction();
@@ -2617,51 +2617,6 @@ class FormEngine {
                                                                                $urlParameters = $wConf['module']['urlParameters'];
                                                                        }
                                                                        $wScript = BackendUtility::getModuleUrl($wConf['module']['name'], $urlParameters);
-                                                               } elseif (isset($wConf['script'])) {
-                                                                       GeneralUtility::deprecationLog(
-                                                                               'The way registering a wizard in TCA has changed in 6.2. '
-                                                                               . 'Please set module[name]=module_name instead of using script=path/to/sctipt.php in your TCA. '
-                                                                               . 'The possibility to register wizards this way will be removed in 2 versions.'
-                                                                       );
-                                                                       if (substr($wConf['script'], 0, 4) === 'EXT:') {
-                                                                               $wScript = GeneralUtility::getFileAbsFileName($wConf['script']);
-                                                                               if ($wScript) {
-                                                                                       $wScript = '../' . PathUtility::stripPathSitePrefix($wScript);
-                                                                               } else {
-                                                                                       // Illeagal configuration, fail silently
-                                                                                       break;
-                                                                               }
-                                                                       } else {
-                                                                               // Compatibility layer
-                                                                               // @deprecated since 6.2, will be removed 2 versions later
-                                                                               $parsedWizardUrl = parse_url($wConf['script']);
-                                                                               if (in_array($parsedWizardUrl['path'], array(
-                                                                                                       'wizard_add.php',
-                                                                                                       'wizard_colorpicker.php',
-                                                                                                       'wizard_edit.php',
-                                                                                                       'wizard_forms.php',
-                                                                                                       'wizard_list.php',
-                                                                                                       'wizard_rte.php',
-                                                                                                       'wizard_table.php',
-                                                                                                       'browse_links.php',
-                                                                                                       'sysext/cms/layout/wizard_backend_layout.php'
-                                                                                               ))
-                                                                               ) {
-                                                                                       $urlParameters = array();
-                                                                                       if (isset($parsedWizardUrl['query'])) {
-                                                                                                parse_str($parsedWizardUrl['query'], $urlParameters);
-                                                                                       }
-                                                                                       $moduleName = str_replace(
-                                                                                               array('.php', 'browse_links', 'sysext/cms/layout/wizard_backend_layout'),
-                                                                                               array('', 'wizard_element_browser', 'wizard_backend_layout'),
-                                                                                               $parsedWizardUrl['path']
-                                                                                       );
-                                                                                       $wScript = BackendUtility::getModuleUrl($moduleName, $urlParameters);
-                                                                                       unset($moduleName, $urlParameters, $parsedWizardUrl);
-                                                                               } else {
-                                                                                       $wScript = $wConf['script'];
-                                                                               }
-                                                                       }
                                                                } elseif (in_array($wConf['type'], array('script', 'colorbox', 'popup'), TRUE)) {
                                                                        // Illegal configuration, fail silently
                                                                        break;
@@ -4175,17 +4130,6 @@ class FormEngine {
        }
 
        /**
-        * Used to connect the db/file browser with this document and the formfields on it!
-        *
-        * @param string $formObj Form object reference (including "document.")
-        * @return string JavaScript functions/code (NOT contained in a <script>-element)
-        * @deprecated since TYPO3 6.2, remove two versions later. This is now done in an external file, see printNeededJSfunctions
-        */
-       public function dbFileCon($formObj = 'document.forms[0]') {
-               GeneralUtility::logDeprecatedFunction();
-       }
-
-       /**
         * Prints necessary JavaScript for TCEforms (after the form HTML).
         * currently this is used to transform page-specific options in the TYPO3.Settings array for JS
         * so the JS module can access these values
@@ -4249,7 +4193,7 @@ class FormEngine {
         * @param string $table Database Tablename
         * @param int $pid PID value (positive / negative)
         * @return array|NULL "default" row.
-        * @deprecated since 6.3 - will be removed two versions later; not used anymore in Core
+        * @deprecated since TYPO3 CMS 7, will be removed in CMS 8
         */
        public function getDefaultRecord($table, $pid = 0) {
                GeneralUtility::logDeprecatedFunction();
index dc20f58..b4f0317 100644 (file)
@@ -33,7 +33,7 @@ class ModuleController {
 
        /**
         * Constructor
-        * @deprecated since TYPO3 CMS 6.3, not in use, as everything can be done via the ModuleMenuRepository directly
+        * @deprecated since TYPO3 CMS 7, not in use, as everything can be done via the ModuleMenuRepository directly
         */
        public function __construct() {
                \TYPO3\CMS\Core\Utility\GeneralUtility::logDeprecatedFunction();
index 1d881a4..0a4e547 100644 (file)
@@ -284,16 +284,6 @@ abstract class AbstractRecordList {
        }
 
        /**
-        * Finishes the list with the "stopper"-gif, adding the HTML code for that item to the internal ->HTMLcode string
-        *
-        * @return void
-        * @deprecated since 6.2, will be removed 2 versions later - Function not needed anymore
-        */
-       public function writeBottom() {
-               GeneralUtility::logDeprecatedFunction();
-       }
-
-       /**
         * Creates a forward/reverse button based on the status of ->eCounter, ->firstElementNumber, ->iLimit
         *
         * @param string $table Table name
index 65b601c..e645084 100644 (file)
@@ -240,18 +240,6 @@ class SpriteGenerator {
         *
         * @param bool $value
         * @return SpriteGenerator An instance of $this, to enable "chaining".
-        * @deprecated since 6.2, will be removed two versions later - use setOmitSpriteNameInIconName() instead
-        */
-       public function setOmmitSpriteNameInIconName($value) {
-               GeneralUtility::logDeprecatedFunction();
-               return $this->setOmitSpriteNameInIconName($value);
-       }
-
-       /**
-        * Setter do enable the exclusion of the sprites-name from iconnames
-        *
-        * @param bool $value
-        * @return SpriteGenerator An instance of $this, to enable "chaining".
         */
        public function setOmitSpriteNameInIconName($value) {
                $this->omitSpriteNameInIconName = is_bool($value) ? $value : FALSE;
index dd65433..e2d0ef4 100644 (file)
@@ -538,18 +538,6 @@ function jumpToUrl(URL) {
        }
 
        /**
-        * Returns TRUE if click-menu layers can be displayed for the current user/browser
-        * Use this to test if click-menus (context sensitive menus) can and should be displayed in the backend.
-        *
-        * @return bool
-        * @deprecated since TYPO3 4.7, will be removed in TYPO3 6.1 - This function makes no sense anymore
-        */
-       public function isCMlayers() {
-               GeneralUtility::logDeprecatedFunction();
-               return !$GLOBALS['BE_USER']->uc['disableCMlayers'] && !($GLOBALS['CLIENT']['SYSTEM'] == 'mac' && $GLOBALS['CLIENT']['BROWSER'] == 'Opera');
-       }
-
-       /**
         * Makes the header (icon+title) for a page (or other record). Used in most modules under Web>*
         * $table and $row must be a tablename/record from that table
         * $path will be shown as alt-text for the icon.
@@ -606,23 +594,6 @@ function jumpToUrl(URL) {
        }
 
        /**
-        * Like ->getHeader() but for files in the File>* main module/submodules
-        * Returns the file-icon with the path of the file set in the alt/title attribute. Shows the file-name after the icon.
-        *
-        * @param string $title Title string, expected to be the filepath
-        * @param string $path Alt text
-        * @param string $iconfile The icon file (relative to TYPO3 dir)
-        * @return string HTML content
-        * @deprecated since 6.2 remove 2 version later use getResourceHeader() instead
-        */
-       public function getFileheader($title, $path, $iconfile) {
-               GeneralUtility::logDeprecatedFunction();
-               $fileInfo = GeneralUtility::split_fileref($title);
-               $title = htmlspecialchars(GeneralUtility::fixed_lgd_cs($fileInfo['path'], -35)) . '<strong>' . htmlspecialchars($fileInfo['file']) . '</strong>';
-               return '<span class="typo3-moduleHeader"><img' . IconUtility::skinImg($this->backPath, $iconfile, 'width="18" height="16"') . ' title="' . htmlspecialchars($path) . '" alt="" />' . $title . '</span>';
-       }
-
-       /**
         * Returns a linked shortcut-icon which will call the shortcut frame and set a shortcut there back to the calling page/module
         *
         * @param string $gvList Is the list of GET variables to store (if any)
index 3f10d5b..cbe6b26 100644 (file)
@@ -4143,19 +4143,6 @@ class BackendUtility {
        }
 
        /**
-        * Display some warning messages if this installation is obviously insecure!!
-        * These warnings are only displayed to admin users
-        *
-        * @return string Rendered messages as HTML
-        * @deprecated since 6.2 and is removed two versions later. This was transferred to ext:aboutmodules, do not use any longer!
-        * @see \TYPO3\CMS\Aboutmodules\Controller\ModulesController
-        */
-       static public function displayWarningMessages() {
-               GeneralUtility::logDeprecatedFunction();
-               return '';
-       }
-
-       /**
         * Returns "web" if the $path (absolute) is within the DOCUMENT ROOT - and thereby qualifies as a "web" folder.
         *
         * @param string $path Path to evaluate
index 3986560..cb246a0 100644 (file)
@@ -116,30 +116,6 @@ class IconUtility {
        static protected $spriteIconCache = array();
 
        /**
-        * Returns an icon image tag, 18x16 pixels, based on input information.
-        * This function is recommended to use in your backend modules.
-        *
-        * @param string $table The table name
-        * @param array $row The table row ("enablefields" are at least needed for correct icon display and for pages records some more fields in addition!)
-        * @param string $backPath The backpath to the main TYPO3 directory (relative path back to PATH_typo3)
-        * @param string $params Additional attributes for the image tag
-        * @param bool $shaded If set, the icon will be grayed/shaded
-        * @return string <img>-tag
-        * @see getIcon()
-        * @deprecated since TYPO3 6.1 will be removed in 7.0, should not be used anymore as only sprite icons are used since TYPO3 4.4
-        */
-       static public function getIconImage($table, $row = array(), $backPath, $params = '', $shaded = FALSE) {
-               GeneralUtility::logDeprecatedFunction();
-
-               $str = '<img' . self::skinImg($backPath, self::getIcon($table, $row, $shaded), 'width="18" height="16"') . (trim($params) ? ' ' . trim($params) : '');
-               if (!stristr($str, 'alt="')) {
-                       $str .= ' alt=""';
-               }
-               $str .= ' />';
-               return $str;
-       }
-
-       /**
         * Creates the icon for input table/row
         * Returns filename for the image icon, relative to PATH_typo3
         *
@@ -147,7 +123,6 @@ class IconUtility {
         * @param array $row The table row ("enablefields" are at least needed for correct icon display and for pages records some more fields in addition!)
         * @param bool $shaded If set, the icon will be grayed/shaded
         * @return string Icon filename
-        * @see getIconImage()
         */
        static public function getIcon($table, $row = array(), $shaded = FALSE) {
                // Flags
index 03ca4dc..60aced9 100644 (file)
@@ -48,7 +48,7 @@ class ModuleMenuView {
 
        /**
         * Constructor, initializes several variables
-        * @deprecated since TYPO3 CMS 6.3, not in use, as everything can be done via the ModuleMenuRepository directly
+        * @deprecated since TYPO3 CMS 7, not in use, as everything can be done via the ModuleMenuRepository directly
         */
        public function __construct() {
                GeneralUtility::logDeprecatedFunction();
index dd405cf..18bcf57 100644 (file)
@@ -393,18 +393,6 @@ class PageLayoutView extends \TYPO3\CMS\Recordlist\RecordList\AbstractDatabaseRe
        }
 
        /**
-        * Returns the backend layout which should be used for this page.
-        *
-        * @param int $id Uid of the current page
-        * @return bool|string Identifier of the backend layout to be used, or FALSE if none
-        * @deprecated since TYPO3 CMS 6.2, will be removed two versions later
-        */
-       public function getSelectedBackendLayoutUid($id) {
-               GeneralUtility::logDeprecatedFunction();
-               return $this->getBackendLayoutView()->getSelectedCombinedIdentifier($id);
-       }
-
-       /**
         * Renders Content Elements from the tt_content table from page id
         *
         * @param int $id Page id
index f189f52..0dc0984 100644 (file)
@@ -214,16 +214,16 @@ var Clickmenu = {
                var code = '<div id="contentMenu0" style="display: block;"></div><div id="contentMenu1" style="display: block;"></div>';
                var insert = new Insertion.Bottom(document.getElementsByTagName('body')[0], code);
        }
-}
+};
 
 // register mouse movement inside the document
 Event.observe(document, 'mousemove', Clickmenu.calcMousePosEvent.bindAsEventListener(Clickmenu), true);
 
 
-// @deprecated: Deprecated functions since 4.2, here for compatibility, remove in 4.4+
-// ## BEGIN ##
-
-// Still used in Core: typo3/alt_clickmenu.php::linkItem()
+/**
+ * @param url
+ * @deprecated since 4.2, Used in Core: \TYPO3\CMS\Backend\ClickMenu\ClickMenu::linkItem()
+ */
 function showClickmenu_raw(url) {
        var parts = url.split('?');
        if (parts.length === 2) {
@@ -233,19 +233,4 @@ function showClickmenu_raw(url) {
                Clickmenu.callURL(url);
        }
 }
-function setLayerObj(tableData, cmLevel) {
-       Clickmenu.populateData(tableData, cmLevel);
-}
-function hideEmpty() {
-       Clickmenu.hideAll();
-       return false;
-}
-function hideSpecific(level) {
-       if (level === 0 || level === 1) {
-               Clickmenu.hide('contentMenu'+level);
-       }
-}
-function showHideSelectorBoxes(action) {
-       toggleSelectorBoxes(action);
-}
 // ## END ##
diff --git a/typo3/sysext/core/Documentation/Changelog/master/Breaking-59659-DeprecatedCodeRemovalInBackendSysext.rst b/typo3/sysext/core/Documentation/Changelog/master/Breaking-59659-DeprecatedCodeRemovalInBackendSysext.rst
new file mode 100644 (file)
index 0000000..e185a72
--- /dev/null
@@ -0,0 +1,58 @@
+===============================================================
+Breaking: #59659 - Removal of deprecated code in sysext backend
+===============================================================
+
+Description
+===========
+
+Flexforms
+---------
+
+Flexform xml that still contains the old "<tx_templavoila><title>" code has to be adapted.
+The "<tx_templavoila>" elements needs to be removed.
+
+Wizard registration
+-------------------
+
+Wizard registration in TCA must not contain the "script=some/path/script.php" definition anymore.
+The new API for registering wizards is to set "module[name]=module_name".
+
+Removed PHP methods
+-------------------
+
+* FormEngine::dbFileCon() is removed without replacement. The functionality is not needed anymore.
+* AbstractRecordList::writeBottom() is removed without replacement. The functionality is not needed anymore.
+* SpriteGenerator::setOmmitSpriteNameInIconName() is removed in favor of setOmitSpriteNameInIconName()
+* DocumentTemplate::isCMlayers() is removed without replacement. The functionality is obsolete.
+* DocumentTemplate::getFileheader() is removed. Use getResourceHeader() instead.
+* BackendUtility::displayWarningMessages() is removed without replacement. The functionality was moved to ext:aboutmodules.
+* IconUtility::getIconImage() is removed without replacement. Use sprite icon API instead.
+* PageLayoutView::getSelectedBackendLayoutUid() is removed. Use BackendLayoutView::getSelectedCombinedIdentifier() instead.
+* ClickMenu::menuItemsForClickMenu() is removed without replacement. The functionality is obsolete.
+
+Removed JS functions
+--------------------
+
+* showClickmenu_noajax() is removed. Use Clickmenu.ajax = false; showClickmenu_raw(); instead.
+* setLayerObj() is replaced with Clickmenu.populateData().
+* hideEmpty() is replaced with Clickmenu.hideAll().
+* hideSpecific() is replaced with Clickmenu.hide(). E.g. Clickmenu.hide('contentMenu1');
+* showHideSelectorBoxes() is replaced with toggleSelectorBoxes().
+
+Impact
+======
+
+A call to any of the aforementioned methods by third party code will result in
+a fatal PHP error.
+
+
+Affected installations
+======================
+
+Any installation which contains third party code still using these deprecated methods.
+
+
+Migration
+=========
+
+Replace the calls with the suggestions outlined above.
index c4af0f0..8d0de3b 100644 (file)
@@ -26,7 +26,6 @@ class BackendWarnings {
         *
         * @param array $warnings Warnings
         * @return void
-        * @see \TYPO3\CMS\Backend\Utility\BackendUtility::displayWarningMessages()
         */
        public function displayWarningMessages_postProcess(array &$warnings) {
                $backend = \TYPO3\CMS\Rsaauth\Backend\BackendFactory::getBackend();
index d2301ca..39165d5 100644 (file)
@@ -567,9 +567,7 @@ class ActionTask implements \TYPO3\CMS\Taskcenter\TaskInterface {
        protected function JScode() {
                $this->t3lib_TCEforms = GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Form\\FormEngine');
                $this->t3lib_TCEforms->backPath = $GLOBALS['BACK_PATH'];
-               $js = $this->t3lib_TCEforms->dbFileCon();
-               $this->taskObject->doc->JScodeArray[] = $js;
-               return $js;
+               $this->t3lib_TCEforms->printNeededJSFunctions();
        }
 
        /**