当前位置: 首页>>代码示例>>PHP>>正文


PHP Module\BaseScriptClass类代码示例

本文整理汇总了PHP中TYPO3\CMS\Backend\Module\BaseScriptClass的典型用法代码示例。如果您正苦于以下问题:PHP BaseScriptClass类的具体用法?PHP BaseScriptClass怎么用?PHP BaseScriptClass使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了BaseScriptClass类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('mode' => array());
     $this->MOD_MENU['mode']['information'] = $GLOBALS['LANG']->sL('LLL:EXT:taskcenter/locallang.xlf:task_overview');
     $this->MOD_MENU['mode']['tasks'] = 'Tasks';
     parent::menuConfig();
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:12,代码来源:TaskModuleController.php

示例2: init

 /**
  * First initialization of global variables
  *
  * @return	void
  */
 function init()
 {
     $this->MCONF = $GLOBALS['MCONF'];
     parent::init();
     // initialize IconFactory
     $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
     // get TS Params
     $temp = BackendUtility::getModTSconfig($this->id, 'mod.web_modules.dmail');
     if (!is_array($temp['properties'])) {
         $temp['properties'] = array();
     }
     $this->params = $temp['properties'];
     $this->implodedParams = DirectMailUtility::implodeTSParams($this->params);
     $this->MOD_MENU['dmail_mode'] = BackendUtility::unsetMenuItems($this->params, $this->MOD_MENU['dmail_mode'], 'menu.dmail_mode');
     // initialize the page selector
     $this->sys_page = GeneralUtility::makeInstance('TYPO3\\CMS\\Frontend\\Page\\PageRepository');
     $this->sys_page->init(true);
     // initialize backend user language
     if ($this->getLanguageService()->lang && ExtensionManagementUtility::isLoaded('static_info_tables')) {
         $res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery('sys_language.uid', 'sys_language LEFT JOIN static_languages ON sys_language.static_lang_isocode=static_languages.uid', 'static_languages.lg_typo3=' . $GLOBALS["TYPO3_DB"]->fullQuoteStr($this->getLanguageService()->lang, 'static_languages') . BackendUtility::BEenableFields('sys_language') . BackendUtility::deleteClause('sys_language') . BackendUtility::deleteClause('static_languages'));
         while ($row = $GLOBALS["TYPO3_DB"]->sql_fetch_assoc($res)) {
             $this->sys_language_uid = $row['uid'];
         }
     }
     // load contextual help
     $this->cshTable = '_MOD_' . $this->MCONF['name'];
     if ($GLOBALS["BE_USER"]->uc['edit_showFieldHelp']) {
         $this->getLanguageService()->loadSingleTableDescription($this->cshTable);
     }
 }
开发者ID:Teddytrombone,项目名称:direct_mail,代码行数:35,代码来源:Statistics.php

示例3: init

 /**
  * Initializes the Module
  *
  * @return  void
  */
 public function init()
 {
     $this->MCONF['name'] = 'web_txl10nmgrM1';
     $GLOBALS['BE_USER']->modAccess($this->MCONF, 1);
     $GLOBALS['LANG']->includeLLFile("EXT:l10nmgr/Resources/Private/Language/Modules/Module1/locallang.xlf");
     parent::init();
 }
开发者ID:danilovq,项目名称:l10nmgr,代码行数:12,代码来源:Module1.php

示例4: initialize

 /**
  * Initializes the Module
  *
  * @return 	void
  */
 public function initialize()
 {
     parent::init();
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('recycler') . 'mod1/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->setExtDirectStateProvider();
     $this->pageRenderer = $this->doc->getPageRenderer();
     $this->relativePath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('recycler');
     $this->pageRecord = BackendUtility::readPageAccess($this->id, $this->perms_clause);
     $this->isAccessibleForCurrentUser = $this->id && is_array($this->pageRecord) || !$this->id && $this->isCurrentUserAdmin();
     //don't access in workspace
     if ($GLOBALS['BE_USER']->workspace !== 0) {
         $this->isAccessibleForCurrentUser = FALSE;
     }
     //read configuration
     $modTS = $GLOBALS['BE_USER']->getTSConfig('mod.recycler');
     if ($this->isCurrentUserAdmin()) {
         $this->allowDelete = TRUE;
     } else {
         $this->allowDelete = $modTS['properties']['allowDelete'] == '1';
     }
     if (isset($modTS['properties']['recordsPageLimit']) && (int) $modTS['properties']['recordsPageLimit'] > 0) {
         $this->recordsPageLimit = (int) $modTS['properties']['recordsPageLimit'];
     }
 }
开发者ID:khanhdeux,项目名称:typo3test,代码行数:31,代码来源:RecyclerModuleController.php

示例5: init

 /**
  * Initializing global variables
  *
  * @return	void		no return values: first initialisation of global variables
  */
 function init()
 {
     $this->MCONF = $GLOBALS['MCONF'];
     parent::init();
     $temp = BackendUtility::getModTSconfig($this->id, 'mod.web_modules.dmail');
     $this->params = $temp['properties'];
     $this->implodedParams = BackendUtility::implodeTSParams($this->params);
     if ($this->params['userTable'] && is_array($GLOBALS["TCA"][$this->params['userTable']])) {
         $this->userTable = $this->params['userTable'];
         $this->allowedTables[] = $this->userTable;
     }
     $this->MOD_MENU['dmail_mode'] = BackendUtility::unsetMenuItems($this->params, $this->MOD_MENU['dmail_mode'], 'menu.dmail_mode');
     // initialize backend user language
     if ($GLOBALS["LANG"]->lang && ExtensionManagementUtility::isLoaded('static_info_tables')) {
         $res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery('sys_language.uid', 'sys_language LEFT JOIN static_languages ON sys_language.static_lang_isocode=static_languages.uid', 'static_languages.lg_typo3=' . $GLOBALS["TYPO3_DB"]->fullQuoteStr($GLOBALS["LANG"]->lang, 'static_languages') . BackendUtility::BEenableFields('sys_language') . BackendUtility::deleteClause('sys_language') . BackendUtility::deleteClause('static_languages'));
         while ($row = $GLOBALS["TYPO3_DB"]->sql_fetch_assoc($res)) {
             $this->sys_language_uid = $row['uid'];
         }
         $GLOBALS["TYPO3_DB"]->sql_free_result($res);
     }
     // load contextual help
     $this->cshTable = '_MOD_' . $this->MCONF['name'];
     if ($GLOBALS["BE_USER"]->uc['edit_showFieldHelp']) {
         $GLOBALS["LANG"]->loadSingleTableDescription($this->cshTable);
     }
 }
开发者ID:preinboth,项目名称:direct_mail,代码行数:31,代码来源:MailerEngine.php

示例6: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  * @todo Define visibility
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $GLOBALS['LANG']->getLL('display')));
     if ($GLOBALS['BE_USER']->user['admin']) {
         $this->MOD_MENU['function']['2'] = $GLOBALS['LANG']->getLL('rebuild');
     }
     parent::menuConfig();
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:14,代码来源:TypoScriptConfigHelpModuleController.php

示例7: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return	void
  */
 function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $GLOBALS['LANG']->getLL('function1')));
     if (intval($this->settings['enableClearLogs']) === 1 || $GLOBALS['BE_USER']->user['admin']) {
         $this->MOD_MENU['function']['2'] = $GLOBALS['LANG']->getLL('function2');
     }
     parent::menuConfig();
 }
开发者ID:mhuebe,项目名称:formhandler,代码行数:13,代码来源:index.php

示例8: init

 /**
  * Init
  *
  * @return void
  * @todo Define visibility
  */
 public function init()
 {
     parent::init();
     $this->id = (int) GeneralUtility::_GP('id');
     $this->e = GeneralUtility::_GP('e');
     $this->sObj = GeneralUtility::_GP('sObj');
     $this->edit = GeneralUtility::_GP('edit');
     $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
 }
开发者ID:samuweiss,项目名称:TYPO3-Site,代码行数:15,代码来源:TypoScriptTemplateModuleController.php

示例9: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return    void
  */
 function menuConfig()
 {
     $this->MOD_MENU = array("function" => array("1" => $GLOBALS['LANG']->getLL("function1"), "2" => $GLOBALS['LANG']->getLL("function2"), "3" => $GLOBALS['LANG']->getLL("function3")));
     if (!$this->getBackendUserAuthentication()->isAdmin()) {
         // Rollback and Security settings are not available for non-admins
         unset($this->MOD_MENU['function']['2']);
         unset($this->MOD_MENU['function']['3']);
     }
     parent::menuConfig();
 }
开发者ID:visol,项目名称:ext-rs_userimp,代码行数:15,代码来源:UserImporter.php

示例10: init

 /**
  * Init
  *
  * @return void
  * @todo Define visibility
  */
 public function init()
 {
     parent::init();
     $this->id = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'));
     $this->e = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('e');
     $this->sObj = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('sObj');
     $this->edit = \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('edit');
     $this->perms_clause = $GLOBALS['BE_USER']->getPagePermsClause(1);
     if (\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('clear_all_cache')) {
         $this->include_once[] = PATH_t3lib . 'class.t3lib_tcemain.php';
     }
 }
开发者ID:nicksergio,项目名称:TYPO3v4-Core,代码行数:18,代码来源:TypoScriptTemplateModuleController.php

示例11: menuConfig

 /**
  * Adds items to the ->MOD_MENU array. Used for the function menu selector.
  *
  * @return void
  */
 public function menuConfig()
 {
     $this->MOD_MENU = array('mode' => array());
     $this->MOD_MENU['mode']['information'] = $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang.xlf:task_overview');
     $this->MOD_MENU['mode']['tasks'] = $this->getLanguageService()->sL('LLL:EXT:taskcenter/Resources/Private/Language/locallang.xlf:task_tasks');
     /* Copied from parent::menuConfig, because parent is hardcoded to menu.function,
      * however menu.function is already used for the individual tasks.
      * Therefore we use menu.mode here.
      */
     // Page/be_user TSconfig settings and blinding of menu-items
     $this->modTSconfig = BackendUtility::getModTSconfig($this->id, 'mod.' . $this->moduleName);
     $this->MOD_MENU['mode'] = $this->mergeExternalItems($this->MCONF['name'], 'mode', $this->MOD_MENU['mode']);
     $this->MOD_MENU['mode'] = BackendUtility::unsetMenuItems($this->modTSconfig['properties'], $this->MOD_MENU['mode'], 'menu.mode');
     parent::menuConfig();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:20,代码来源:TaskModuleController.php

示例12: init

 /**
  * First initialization of global variables
  *
  * @return	void
  */
 function init()
 {
     $this->MCONF = $GLOBALS['MCONF'];
     parent::init();
     // initialize IconFactory
     $this->iconFactory = GeneralUtility::makeInstance(IconFactory::class);
     // get the config from pageTS
     $temp = BackendUtility::getModTSconfig($this->id, 'mod.web_modules.dmail');
     if (!is_array($temp['properties'])) {
         $temp['properties'] = array();
     }
     $this->params = $temp['properties'];
     $this->implodedParams = DirectMailUtility::implodeTSParams($this->params);
     if ($this->params['userTable'] && is_array($GLOBALS['TCA'][$this->params['userTable']])) {
         $this->userTable = $this->params['userTable'];
         $this->allowedTables[] = $this->userTable;
     }
     // check if the right domain shoud be set
     if (!$this->params['use_domain']) {
         $rootLine = BackendUtility::BEgetRootLine($this->id);
         if ($rootLine) {
             $parts = parse_url(GeneralUtility::getIndpEnv('TYPO3_SITE_URL'));
             if (BackendUtility::getDomainStartPage($parts['host'], $parts['path'])) {
                 $temporaryPreUrl = BackendUtility::firstDomainRecord($rootLine);
                 $domain = BackendUtility::getRecordsByField('sys_domain', 'domainName', $temporaryPreUrl, ' AND hidden=0', '', 'sorting');
                 if (is_array($domain)) {
                     reset($domain);
                     $dom = current($domain);
                     $this->params['use_domain'] = $dom['uid'];
                 }
             }
         }
     }
     $this->MOD_MENU['dmail_mode'] = BackendUtility::unsetMenuItems($this->params, $this->MOD_MENU['dmail_mode'], 'menu.dmail_mode');
     // initialize backend user language
     if ($this->getLanguageService()->lang && ExtensionManagementUtility::isLoaded('static_info_tables')) {
         $res = $GLOBALS['TYPO3_DB']->exec_SELECTquery('sys_language.uid', 'sys_language LEFT JOIN static_languages ON sys_language.static_lang_isocode=static_languages.uid', 'static_languages.lg_typo3=' . $GLOBALS['TYPO3_DB']->fullQuoteStr($this->getLanguageService()->lang, 'static_languages') . BackendUtility::BEenableFields('sys_language') . BackendUtility::deleteClause('sys_language') . BackendUtility::deleteClause('static_languages'));
         while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
             $this->sys_language_uid = $row['uid'];
         }
         $GLOBALS['TYPO3_DB']->sql_free_result($res);
     }
     // load contextual help
     $this->cshTable = '_MOD_' . $this->MCONF['name'];
     if ($GLOBALS['BE_USER']->uc['edit_showFieldHelp']) {
         $this->getLanguageService()->loadSingleTableDescription($this->cshTable);
     }
 }
开发者ID:Teddytrombone,项目名称:direct_mail,代码行数:53,代码来源:Dmail.php

示例13: menuConfig

 /**
  * Adds items to the ->MOD_MENU array.
  * Used for the function menu selector.
  */
 function menuConfig()
 {
     $this->MOD_MENU = array('function' => array('1' => $GLOBALS['LANG']->getLL('function1'), '2' => $GLOBALS['LANG']->getLL('function2')));
     parent::menuConfig();
 }
开发者ID:ulrikkold,项目名称:cal,代码行数:9,代码来源:CalIndexer.php

示例14: handleExternalFunctionValue

 /**
  * If $this->function_key is set (which means there are two levels of object connectivity) then $this->extClassConf is loaded with the TBE_MODULES_EXT configuration for that sub-sub-module
  *
  * @return void
  * @see $function_key, tx_funcwizards_webfunc::init()
  * @todo Define visibility
  */
 public function handleExternalFunctionValue()
 {
     // Must clean first to make sure the correct key is set...
     $this->pObj->MOD_SETTINGS = \TYPO3\CMS\Backend\Utility\BackendUtility::getModuleData($this->pObj->MOD_MENU, \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('SET'), $this->pObj->MCONF['name']);
     if ($this->function_key) {
         $this->extClassConf = $this->pObj->getExternalItemConfig($this->pObj->MCONF['name'], $this->function_key, $this->pObj->MOD_SETTINGS[$this->function_key]);
         if (is_array($this->extClassConf) && $this->extClassConf['path']) {
             $this->pObj->include_once[] = $this->extClassConf['path'];
         }
     }
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:18,代码来源:AbstractFunctionModule.php

示例15: init

 /**
  * Initializes the Module
  * @return    void
  */
 function init()
 {
     global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS;
     parent::init();
     $this->node_id = $_GET['id'];
 }
开发者ID:TrueType,项目名称:caretaker,代码行数:10,代码来源:index.php


注:本文中的TYPO3\CMS\Backend\Module\BaseScriptClass类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。