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


PHP BaseScriptClass::init方法代码示例

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


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

示例1: 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

示例2: 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

示例3: 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

示例4: init

 /**
  * Initializes this module.
  *
  * @return void
  */
 public function init()
 {
     $this->MCONF = array('name' => $this->moduleName);
     $this->getLanguageService()->includeLLFile('EXT:dbal/Resources/Private/Language/locallang.xlf');
     parent::init();
     $this->moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
 }
开发者ID:hlop,项目名称:TYPO3.CMS,代码行数:12,代码来源:ModuleController.php

示例5: init

 /**
  * Initializes the Module
  * @return	void
  */
 function init()
 {
     $id = intval(\TYPO3\CMS\Core\Utility\GeneralUtility::_GP('id'));
     $tsconfig = \TYPO3\CMS\Backend\Utility\BackendUtility::getModTSconfig($id, 'tx_formhandler_mod1');
     $this->settings = $tsconfig['properties']['config.'];
     parent::init();
 }
开发者ID:mhuebe,项目名称:formhandler,代码行数:11,代码来源:index.php

示例6: init

 /**
  * Initializes the Module
  * @return	void
  */
 function init()
 {
     global $BE_USER, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS;
     parent::init();
     // init registry class
     $this->registry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Registry');
 }
开发者ID:mneuhaus,项目名称:ke_search,代码行数:11,代码来源:index.php

示例7: init

 function init()
 {
     $this->MCONF['name'] = 'xMOD_Module2List';
     $GLOBALS['BE_USER']->modAccess($this->MCONF, 1);
     $GLOBALS['LANG']->includeLLFile("EXT:l10nmgr/Resources/Private/Language/Modules/Module2/locallang.xlf");
     parent::init();
 }
开发者ID:xf-,项目名称:l10nmgr-1,代码行数:7,代码来源:index.php

示例8: __construct

 /**
  * Initializes the Module
  */
 public function __construct()
 {
     $this->moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
     $this->moduleTemplate->getPageRenderer()->addCssFile(ExtensionManagementUtility::extRelPath('taskcenter') . 'Resources/Public/Css/styles.css');
     $this->getLanguageService()->includeLLFile('EXT:taskcenter/Resources/Private/Language/locallang_task.xlf');
     $this->MCONF = array('name' => $this->moduleName);
     parent::init();
 }
开发者ID:CDRO,项目名称:TYPO3.CMS,代码行数:11,代码来源:TaskModuleController.php

示例9: init

 /**
  * Initializes the module.
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     /*
     if (t3lib_div::_GP('clear_all_cache'))    {
         $this->include_once[] = PATH_t3lib . 'class.t3lib_tcemain.php';
     }
     */
 }
开发者ID:Entwicklungshilfe-NRW,项目名称:wmdb_base_ewh,代码行数:14,代码来源:index.php

示例10: 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

示例11: __construct

 /**
  * Initializes the Module
  */
 public function __construct()
 {
     $this->moduleTemplate = GeneralUtility::makeInstance(ModuleTemplate::class);
     $cssFile = GeneralUtility::getFileAbsFileName('EXT:taskcenter/Resources/Public/Css/styles.css');
     $this->moduleTemplate->getPageRenderer()->addCssFile(PathUtility::getAbsoluteWebPath($cssFile));
     $this->getLanguageService()->includeLLFile('EXT:taskcenter/Resources/Private/Language/locallang_task.xlf');
     $this->MCONF = array('name' => $this->moduleName);
     parent::init();
 }
开发者ID:TYPO3Incubator,项目名称:TYPO3.CMS,代码行数:12,代码来源:TaskModuleController.php

示例12: __construct

 /**
  * Initializes the Module
  *
  * @return void
  */
 public function __construct()
 {
     parent::init();
     // Initialize document
     $this->doc = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Backend\\Template\\DocumentTemplate');
     $this->doc->setModuleTemplate(\TYPO3\CMS\Core\Extension\ExtensionManager::extPath('taskcenter') . 'res/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->getPageRenderer()->loadScriptaculous('effects,dragdrop');
     $this->doc->addStyleSheet('tx_taskcenter', '../' . \TYPO3\CMS\Core\Extension\ExtensionManager::siteRelPath('taskcenter') . 'res/mod_styles.css');
 }
开发者ID:noxludo,项目名称:TYPO3v4-Core,代码行数:15,代码来源:TaskModuleController.php

示例13: init

 /**
  * Initializes the Module
  * @return    void
  */
 function init()
 {
     global $BE_USER, $LANG, $BACK_PATH, $TCA_DESCR, $TCA, $CLIENT, $TYPO3_CONF_VARS;
     parent::init();
     /*
     if ( \TYPO3\CMS\Core\Utility\GeneralUtility::_GP('clear_all_cache'))	{
         $this->include_once[] = PATH_t3lib.'class.t3lib_tcemain.php';
     }
     */
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:14,代码来源:index.php

示例14: 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

示例15: __construct

 /**
  * Initializes the Module
  */
 public function __construct()
 {
     $this->getLanguageService()->includeLLFile('EXT:taskcenter/task/locallang.xlf');
     $this->MCONF = array('name' => $this->moduleName);
     parent::init();
     // Initialize document
     $this->doc = GeneralUtility::makeInstance(\TYPO3\CMS\Backend\Template\DocumentTemplate::class);
     $this->doc->setModuleTemplate(ExtensionManagementUtility::extPath('taskcenter') . 'Resources/Private/Templates/mod_template.html');
     $this->doc->backPath = $GLOBALS['BACK_PATH'];
     $this->doc->getPageRenderer()->loadJquery();
     $this->doc->addStyleSheet('tx_taskcenter', '../' . ExtensionManagementUtility::siteRelPath('taskcenter') . 'Resources/Public/Styles/styles.css');
 }
开发者ID:adrolli,项目名称:TYPO3.CMS,代码行数:15,代码来源:TaskModuleController.php


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