當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Bootstrap::loadExtensionTables方法代碼示例

本文整理匯總了PHP中TYPO3\CMS\Core\Core\Bootstrap::loadExtensionTables方法的典型用法代碼示例。如果您正苦於以下問題:PHP Bootstrap::loadExtensionTables方法的具體用法?PHP Bootstrap::loadExtensionTables怎麽用?PHP Bootstrap::loadExtensionTables使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在TYPO3\CMS\Core\Core\Bootstrap的用法示例。


在下文中一共展示了Bootstrap::loadExtensionTables方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: boot

 /**
  * Execute TYPO3 bootstrap
  */
 protected function boot()
 {
     // Evaluate the constant for skipping the BE user check for the bootstrap
     if (defined('TYPO3_PROCEED_IF_NO_USER') && TYPO3_PROCEED_IF_NO_USER) {
         $proceedIfNoUserIsLoggedIn = TRUE;
     } else {
         $proceedIfNoUserIsLoggedIn = FALSE;
     }
     $this->bootstrap->loadExtensionTables(TRUE)->initializeBackendUser()->initializeBackendAuthentication($proceedIfNoUserIsLoggedIn)->initializeLanguageObject();
     // Make sure output is not buffered, so command-line output and interaction can take place
     GeneralUtility::flushOutputBuffers();
 }
開發者ID:adrolli,項目名稱:TYPO3.CMS,代碼行數:15,代碼來源:CliRequestHandler.php

示例2: boot

 /**
  * Execute TYPO3 bootstrap
  *
  * @throws \RuntimeException when the _CLI_ user cannot be authenticated properly
  */
 protected function boot($commandLineName)
 {
     $this->bootstrap->loadExtensionTables()->initializeBackendUser();
     // Checks for a user called starting with _CLI_ e.g. "_CLI_lowlevel"
     $this->loadCommandLineBackendUser($commandLineName);
     $this->bootstrap->initializeBackendAuthentication()->initializeLanguageObject()->endOutputBufferingAndCleanPreviousOutput();
 }
開發者ID:dachcom-digital,項目名稱:TYPO3.CMS,代碼行數:12,代碼來源:CliRequestHandler.php

示例3: boot

 /**
  * Execute TYPO3 bootstrap
  *
  * @throws \RuntimeException when the _CLI_ user cannot be authenticated properly
  */
 protected function boot($commandLineName)
 {
     $this->bootstrap->loadExtensionTables()->initializeBackendUser();
     // Checks for a user called starting with _CLI_ e.g. "_CLI_lowlevel"
     $this->loadCommandLineBackendUser($commandLineName);
     $this->bootstrap->initializeBackendAuthentication()->initializeLanguageObject();
     // Make sure output is not buffered, so command-line output and interaction can take place
     GeneralUtility::flushOutputBuffers();
 }
開發者ID:TYPO3Incubator,項目名稱:TYPO3.CMS,代碼行數:14,代碼來源:CliRequestHandler.php

示例4: handleRequest

 /**
  * Handles any commandline request
  *
  * @param InputInterface $input
  * @return void
  */
 public function handleRequest(InputInterface $input)
 {
     $output = new ConsoleOutput();
     $this->bootstrap->loadExtensionTables();
     // Check if the command to run needs a backend user to be loaded
     $command = $this->getCommandToRun($input);
     foreach ($this->availableCommands as $data) {
         if ($data['command'] !== $command) {
             continue;
         }
         if (isset($data['user'])) {
             $this->initializeBackendUser($data['user']);
         }
     }
     // Make sure output is not buffered, so command-line output and interaction can take place
     GeneralUtility::flushOutputBuffers();
     $exitCode = $this->application->run($input, $output);
     exit($exitCode);
 }
開發者ID:TYPO3Incubator,項目名稱:TYPO3.CMS,代碼行數:25,代碼來源:CommandRequestHandler.php

示例5: handleRequest

 /**
  * Handles a frontend request
  *
  * @param \Psr\Http\Message\ServerRequestInterface $request
  * @return NULL|\Psr\Http\Message\ResponseInterface
  */
 public function handleRequest(\Psr\Http\Message\ServerRequestInterface $request)
 {
     $response = NULL;
     $this->request = $request;
     $this->initializeTimeTracker();
     // Hook to preprocess the current request:
     if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'])) {
         foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['tslib/index_ts.php']['preprocessRequest'] as $hookFunction) {
             $hookParameters = array();
             GeneralUtility::callUserFunction($hookFunction, $hookParameters, $hookParameters);
         }
         unset($hookFunction);
         unset($hookParameters);
     }
     $this->initializeController();
     if ($GLOBALS['TYPO3_CONF_VARS']['FE']['pageUnavailable_force'] && !GeneralUtility::cmpIP(GeneralUtility::getIndpEnv('REMOTE_ADDR'), $GLOBALS['TYPO3_CONF_VARS']['SYS']['devIPmask'])) {
         $this->controller->pageUnavailableAndExit('This page is temporarily unavailable.');
     }
     $this->controller->connectToDB();
     $this->controller->sendRedirect();
     // Output compression
     // Remove any output produced until now
     $this->bootstrap->endOutputBufferingAndCleanPreviousOutput();
     $this->initializeOutputCompression();
     // Initializing the Frontend User
     $this->timeTracker->push('Front End user initialized', '');
     $this->controller->initFEuser();
     $this->timeTracker->pull();
     // Initializing a possible logged-in Backend User
     /** @var $GLOBALS['BE_USER'] \TYPO3\CMS\Backend\FrontendBackendUserAuthentication */
     $GLOBALS['BE_USER'] = $this->controller->initializeBackendUser();
     // Process the ID, type and other parameters.
     // After this point we have an array, $page in TSFE, which is the page-record
     // of the current page, $id.
     $this->timeTracker->push('Process ID', '');
     // Initialize admin panel since simulation settings are required here:
     if ($this->controller->isBackendUserLoggedIn()) {
         $GLOBALS['BE_USER']->initializeAdminPanel();
         $this->bootstrap->loadExtensionTables(TRUE);
     } else {
         $this->bootstrap->loadCachedTca();
     }
     $this->controller->checkAlternativeIdMethods();
     $this->controller->clear_preview();
     $this->controller->determineId();
     // Now, if there is a backend user logged in and he has NO access to this page,
     // then re-evaluate the id shown! _GP('ADMCMD_noBeUser') is placed here because
     // \TYPO3\CMS\Version\Hook\PreviewHook might need to know if a backend user is logged in.
     if ($this->controller->isBackendUserLoggedIn() && (!$GLOBALS['BE_USER']->extPageReadAccess($this->controller->page) || GeneralUtility::_GP('ADMCMD_noBeUser'))) {
         // Remove user
         unset($GLOBALS['BE_USER']);
         $this->controller->beUserLogin = FALSE;
         // Re-evaluate the page-id.
         $this->controller->checkAlternativeIdMethods();
         $this->controller->clear_preview();
         $this->controller->determineId();
     }
     $this->controller->makeCacheHash();
     $this->timeTracker->pull();
     // Admin Panel & Frontend editing
     if ($this->controller->isBackendUserLoggedIn()) {
         $GLOBALS['BE_USER']->initializeFrontendEdit();
         if ($GLOBALS['BE_USER']->adminPanel instanceof AdminPanelView) {
             $this->bootstrap->initializeLanguageObject()->initializeSpriteManager();
         }
         if ($GLOBALS['BE_USER']->frontendEdit instanceof FrontendEditingController) {
             $GLOBALS['BE_USER']->frontendEdit->initConfigOptions();
         }
     }
     // Starts the template
     $this->timeTracker->push('Start Template', '');
     $this->controller->initTemplate();
     $this->timeTracker->pull();
     // Get from cache
     $this->timeTracker->push('Get Page from cache', '');
     $this->controller->getFromCache();
     $this->timeTracker->pull();
     // Get config if not already gotten
     // After this, we should have a valid config-array ready
     $this->controller->getConfigArray();
     // Setting language and locale
     $this->timeTracker->push('Setting language and locale', '');
     $this->controller->settingLanguage();
     $this->controller->settingLocale();
     $this->timeTracker->pull();
     // Convert POST data to internal "renderCharset" if different from the metaCharset
     $this->controller->convPOSTCharset();
     // Check JumpUrl
     $this->controller->setExternalJumpUrl();
     $this->controller->handleDataSubmission();
     // Check for shortcut page and redirect
     $this->controller->checkPageForShortcutRedirect();
     $this->controller->checkPageForMountpointRedirect();
     // Generate page
//.........這裏部分代碼省略.........
開發者ID:plan2net,項目名稱:TYPO3.CMS,代碼行數:101,代碼來源:RequestHandler.php


注:本文中的TYPO3\CMS\Core\Core\Bootstrap::loadExtensionTables方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。