Example #1
0
 /**
  * Initialization of script class
  *
  * @return	void
  */
 function init()
 {
     global $TBE_MODULES;
     // Loads the available backend modules so we can create the description overview.
     $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
     $this->loadModules->observeWorkspaces = TRUE;
     $this->loadModules->load($TBE_MODULES);
 }
 /**
  * constructor, initializes several variables
  *
  * @return	void
  */
 public function __construct()
 {
     $this->backPath = '';
     $this->linkModules = true;
     // Loads the backend modules available for the logged in user.
     $this->moduleLoader = t3lib_div::makeInstance('t3lib_loadModules');
     $this->moduleLoader->observeWorkspaces = true;
     $this->moduleLoader->load($GLOBALS['TBE_MODULES']);
     $this->loadedModules = $this->moduleLoader->modules;
 }
    /**
     * Constructor, initialize.
     *
     * @return	void
     */
    function init()
    {
        global $BACK_PATH;
        // Start the template object:
        $this->doc = t3lib_div::makeInstance('mediumDoc');
        $this->doc->bodyTagMargins['x'] = 5;
        $this->doc->bodyTagMargins['y'] = 5;
        $this->doc->backPath = $BACK_PATH;
        // Add JS
        $this->doc->JScode = $this->doc->wrapScriptTags('
		function jump(url, modName, mainModName) {
				// clear information about which entry in nav. tree that might have been highlighted.
			top.fsMod.navFrameHighlightedID = [];

			if (top.content && top.content.nav_frame && top.content.nav_frame.refresh_nav) {
				top.content.nav_frame.refresh_nav();
			}

			top.nextLoadModuleUrl = url;
			top.goToModule(modName);
		}
		');
        // Start the page:
        $this->content = '';
        $this->content .= $this->doc->startPage('TYPO3 Edit Document');
        // Loads the backend modules available for the logged in user.
        $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
        $this->loadModules->load($GLOBALS['TBE_MODULES']);
    }
Example #4
0
 /**
  * constructor
  *
  * @return	void
  */
 public function __construct()
 {
     // set debug flag for BE development only
     $this->debug = intval($GLOBALS['TYPO3_CONF_VARS']['BE']['debug']) === 1;
     // Initializes the backend modules structure for use later.
     $this->moduleLoader = t3lib_div::makeInstance('t3lib_loadModules');
     $this->moduleLoader->load($GLOBALS['TBE_MODULES']);
     $this->moduleMenu = t3lib_div::makeInstance('ModuleMenu');
     $this->pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
     $this->pageRenderer->loadScriptaculous('builder,effects,controls,dragdrop');
     $this->pageRenderer->loadExtJS();
     $this->pageRenderer->enableExtJSQuickTips();
     $this->pageRenderer->addJsInlineCode('consoleOverrideWithDebugPanel', '//already done');
     $this->pageRenderer->addExtDirectCode();
     // add default BE javascript
     $this->js = '';
     $this->jsFiles = array('common' => 'js/common.js', 'locallang' => $this->getLocalLangFileName(), 'modernizr' => 'contrib/modernizr/modernizr.min.js', 'swfupload' => 'contrib/swfupload/swfupload.js', 'swfupload.swfobject' => 'contrib/swfupload/plugins/swfupload.swfobject.js', 'swfupload.cookies' => 'contrib/swfupload/plugins/swfupload.cookies.js', 'swfupload.queue' => 'contrib/swfupload/plugins/swfupload.queue.js', 'md5' => 'md5.js', 'toolbarmanager' => 'js/toolbarmanager.js', 'modulemenu' => 'js/modulemenu.js', 'iecompatibility' => 'js/iecompatibility.js', 'flashupload' => 'js/flashupload.js', 'evalfield' => '../t3lib/jsfunc.evalfield.js', 'flashmessages' => '../t3lib/js/extjs/ux/flashmessages.js', 'tabclosemenu' => '../t3lib/js/extjs/ux/ext.ux.tabclosemenu.js', 'notifications' => '../t3lib/js/extjs/notifications.js', 'backend' => 'js/backend.js', 'loginrefresh' => 'js/loginrefresh.js', 'debugPanel' => 'js/extjs/debugPanel.js', 'viewport' => 'js/extjs/viewport.js', 'iframepanel' => 'js/extjs/iframepanel.js', 'viewportConfiguration' => 'js/extjs/viewportConfiguration.js', 'util' => '../t3lib/js/extjs/util.js');
     if ($this->debug) {
         unset($this->jsFiles['loginrefresh']);
     }
     // add default BE css
     $this->css = '';
     $this->cssFiles = array();
     $this->toolbarItems = array();
     $this->initializeCoreToolbarItems();
     $this->menuWidth = $this->menuWidthDefault;
     if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW']) && (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] != (int) $this->menuWidth) {
         $this->menuWidth = (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
     }
     $this->executeHook('constructPostProcess');
 }
Example #5
0
    /**
     * constructor
     *
     * @return	void
     */
    public function __construct()
    {
        // Initializes the backend modules structure for use later.
        $this->moduleLoader = t3lib_div::makeInstance('t3lib_loadModules');
        $this->moduleLoader->load($GLOBALS['TBE_MODULES']);
        $this->moduleMenu = t3lib_div::makeInstance('ModuleMenu');
        $this->pageRenderer = $GLOBALS['TBE_TEMPLATE']->getPageRenderer();
        $this->pageRenderer->loadScriptaculous('builder,effects,controls,dragdrop');
        $this->pageRenderer->loadExtJS();
        // register the extDirect API providers
        // Note: we need to iterate thru the object, because the addProvider method
        // does this only with multiple arguments
        $this->pageRenderer->addExtOnReadyCode('for (var api in Ext.app.ExtDirectAPI) {
				Ext.Direct.addProvider(Ext.app.ExtDirectAPI[api]);
			}
			TYPO3.Backend = new TYPO3.Viewport(TYPO3.Viewport.configuration);
			', TRUE);
        // add default BE javascript
        $this->js = '';
        $this->jsFiles = array('contrib/swfupload/swfupload.js', 'contrib/swfupload/plugins/swfupload.swfobject.js', 'contrib/swfupload/plugins/swfupload.cookies.js', 'contrib/swfupload/plugins/swfupload.queue.js', 'md5.js', 'js/common.js', 'js/extjs/backendsizemanager.js', 'js/toolbarmanager.js', 'js/modulemenu.js', 'js/iecompatibility.js', 'js/flashupload.js', '../t3lib/jsfunc.evalfield.js', '../t3lib/js/extjs/ux/flashmessages.js', '../t3lib/js/extjs/ux/ext.ux.tabclosemenu.js', 'js/backend.js', 'js/loginrefresh.js', 'js/extjs/debugPanel.js', 'js/extjs/viewport.js', 'js/extjs/viewportConfiguration.js');
        // add default BE css
        $this->css = '';
        $this->cssFiles = array();
        $this->toolbarItems = array();
        $this->initializeCoreToolbarItems();
        $this->menuWidth = $this->menuWidthDefault;
        if (isset($GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW']) && (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'] != (int) $this->menuWidth) {
            $this->menuWidth = (int) $GLOBALS['TBE_STYLES']['dims']['leftMenuFrameW'];
        }
        $this->executeHook('constructPostProcess');
    }
 /**
  * Constructor, initialize.
  *
  * @return	void
  */
 function init()
 {
     global $BACK_PATH;
     // Start the template object:
     $this->doc = t3lib_div::makeInstance('mediumDoc');
     $this->doc->bodyTagMargins['x'] = 5;
     $this->doc->bodyTagMargins['y'] = 5;
     $this->doc->backPath = $BACK_PATH;
     // Start the page:
     $this->content = '';
     $this->content .= $this->doc->startPage('TYPO3 Edit Document');
     // Loads the backend modules available for the logged in user.
     $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
     $this->loadModules->load($GLOBALS['TBE_MODULES']);
 }
 /**
  * Pre-initialization - setting input variables for storing shortcuts etc.
  *
  * @return	void
  */
 function preinit()
 {
     global $TBE_MODULES;
     // Setting GPvars:
     $this->isAjaxCall = (bool) t3lib_div::_GP('ajax');
     $this->modName = t3lib_div::_GP('modName');
     $this->M_modName = t3lib_div::_GP('motherModName');
     $this->URL = t3lib_div::_GP('URL');
     $this->editSC = t3lib_div::_GP('editShortcut');
     $this->deleteCategory = t3lib_div::_GP('deleteCategory');
     $this->editPage = t3lib_div::_GP('editPage');
     $this->changeWorkspace = t3lib_div::_GP('changeWorkspace');
     $this->changeWorkspacePreview = t3lib_div::_GP('changeWorkspacePreview');
     $this->editName = t3lib_div::_GP('editName');
     $this->editGroup = t3lib_div::_GP('editGroup');
     $this->whichItem = t3lib_div::_GP('whichItem');
     // Creating modules object
     $this->loadModules = t3lib_div::makeInstance('t3lib_loadModules');
     $this->loadModules->load($TBE_MODULES);
 }