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


PHP Core::addStaticTypoScript方法代碼示例

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


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

示例1: leavesRecordsWhichAreNotRootsUntouched

 /**
  * @test
  */
 public function leavesRecordsWhichAreNotRootsUntouched()
 {
     Core::addStaticTypoScript(self::FIXTURE_TYPOSCRIPT_DIR);
     $function = 'FluidTYPO3\\Flux\\Backend\\TypoScriptTemplate->preprocessIncludeStaticTypoScriptSources';
     $template = $this->objectManager->get('TYPO3\\CMS\\Core\\TypoScript\\TemplateService');
     $parameters = array('row' => Records::$sysTemplateRoot);
     $parameters['row']['root'] = 0;
     GeneralUtility::callUserFunction($function, $parameters, $template);
     $this->assertNotContains(self::FIXTURE_TYPOSCRIPT_DIR, $parameters['row']['include_static_file']);
     $this->assertSame(Records::$sysTemplateRoot['include_static_file'], $parameters['row']['include_static_file']);
 }
開發者ID:JostBaron,項目名稱:flux,代碼行數:14,代碼來源:TypoScriptTemplateTest.php

示例2: leavesRecordsWhichAreNotRootsUntouched

 /**
  * @test
  */
 public function leavesRecordsWhichAreNotRootsUntouched()
 {
     \FluidTYPO3\Flux\Core::addStaticTypoScript(self::FIXTURE_TYPOSCRIPT_DIR);
     $function = $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tstemplate.php']['includeStaticTypoScriptSources']['flux'];
     $template = $this->objectManager->get('t3lib_TStemplate');
     $parameters = array('row' => \FluidTYPO3\Flux\Tests\Fixtures\Data\Records::$sysTemplateRoot);
     $parameters['row']['root'] = 0;
     GeneralUtility::callUserFunction($function, $parameters, $template);
     $this->assertNotContains(self::FIXTURE_TYPOSCRIPT_DIR, $parameters['row']['include_static_file']);
     $this->assertSame(\FluidTYPO3\Flux\Tests\Fixtures\Data\Records::$sysTemplateRoot['include_static_file'], $parameters['row']['include_static_file']);
 }
開發者ID:chrmue01,項目名稱:typo3-starter-kit,代碼行數:14,代碼來源:TypoScriptTemplateTest.php

示例3: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
\FluidTYPO3\Flux\Core::unregisterConfigurationProvider('Tx_Fed_Provider_Configuration_PageConfigurationProvider');
\FluidTYPO3\Flux\Core::registerConfigurationProvider('FluidTYPO3\\Fluidpages\\Provider\\PageProvider');
\FluidTYPO3\Flux\Core::addStaticTypoScript('EXT:fluidpages/Configuration/TypoScript/');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin($_EXTKEY, 'Page', array('Page' => 'render,error'), array(), \TYPO3\CMS\Extbase\Utility\ExtensionUtility::PLUGIN_TYPE_PLUGIN);
$GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] .= ($GLOBALS['TYPO3_CONF_VARS']['FE']['addRootLineFields'] == '' ? '' : ',') . 'tx_fed_page_controller_action,tx_fed_page_controller_action_sub,tx_fed_page_flexform,tx_fed_page_flexform_sub,';
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\View\\BackendLayoutView'] = array('className' => 'FluidTYPO3\\Fluidpages\\Override\\Backend\\View\\BackendLayoutView');
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Backend\\View\\PageLayoutView'] = array('className' => 'FluidTYPO3\\Fluidpages\\Override\\Backend\\View\\PageLayoutView');
開發者ID:chrmue01,項目名稱:typo3-starter-kit,代碼行數:12,代碼來源:ext_localconf.php

示例4: canAddAndRetrieveGlobalTypoScriptCollections

 /**
  * @test
  */
 public function canAddAndRetrieveGlobalTypoScriptCollections()
 {
     Core::addStaticTypoScript(array(self::FIXTURE_TYPOSCRIPT_DIR));
     $registered = Core::getStaticTypoScript();
     $this->assertContains(self::FIXTURE_TYPOSCRIPT_DIR, $registered);
 }
開發者ID:samuweiss,項目名稱:TYPO3-Site,代碼行數:9,代碼來源:CoreTest.php

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$tevConf = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['tev']);
// Automatically include TypoScript dependencies
if (!$tevConf['disable_typoscript_autoload']) {
    \FluidTYPO3\Flux\Core::addStaticTypoScript('EXT:css_styled_content/static/');
    \FluidTYPO3\Flux\Core::addStaticTypoScript('EXT:tev/Configuration/TypoScript');
}
// Hook into RealURL config generation
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/realurl/class.tx_realurl_autoconfgen.php']['extensionConfiguration']['tev'] = 'Tev\\Tev\\Hook\\RealUrlAutoConfigurationHook->updateConfig';
// Use xclass to override core Query Parser with patch
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser'] = ['className' => 'Tev\\Tev\\Extbase\\Persistence\\Generic\\Storage\\Typo3DbQueryParser'];
// Configure mail logger
$GLOBALS['TYPO3_CONF_VARS']['LOG']['tevmail']['writerConfiguration'] = [\TYPO3\CMS\Core\Log\LogLevel::DEBUG => ['Tev\\Typo3Utils\\Log\\Writer\\FileWriter' => ['logFile' => $tevConf['mail_logfile_path'] ?: 'typo3temp/logs/tev_mail.log']]];
開發者ID:3ev,項目名稱:tev,代碼行數:17,代碼來源:ext_localconf.php

示例6:

<?php

\FluidTYPO3\Flux\Core::addStaticTypoScript('EXT:theme_foundation_apps/Configuration/TypoScript/');
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['Tx_ThemeFoundationApps_LoadTemplate'] = 'EXT:' . $_EXTKEY . '/Resources/Private/Scripts/eid.php';
開發者ID:smichaelsen,項目名稱:typo3-theme-foundation-apps,代碼行數:4,代碼來源:ext_localconf.php


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