本文整理汇总了PHP中FluidTYPO3\Flux\Core::registerProviderExtensionKey方法的典型用法代码示例。如果您正苦于以下问题:PHP Core::registerProviderExtensionKey方法的具体用法?PHP Core::registerProviderExtensionKey怎么用?PHP Core::registerProviderExtensionKey使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类FluidTYPO3\Flux\Core
的用法示例。
在下文中一共展示了Core::registerProviderExtensionKey方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: testGetContentConfiguration
public function testGetContentConfiguration()
{
Core::registerProviderExtensionKey('FluidTYPO3.Fluidcontent', 'Content');
$service = $this->getMock('FluidTYPO3\\Fluidcontent\\Service\\ConfigurationService', array('dummy'), array(), '', FALSE);
$service->injectConfigurationManager(GeneralUtility::makeInstance('TYPO3\\CMS\\Extbase\\Object\\ObjectManager')->get('TYPO3\\CMS\\Extbase\\Configuration\\ConfigurationManagerInterface'));
$result = $service->getContentConfiguration();
$this->assertEquals(array('FluidTYPO3.Fluidcontent' => array('templateRootPaths' => array(10 => 'EXT:fluidcontent/Resources/Private/Templates/'), 'partialRootPaths' => array(10 => 'EXT:fluidcontent/Resources/Private/Partials/'), 'layoutRootPaths' => array(10 => 'EXT:fluidcontent/Resources/Private/Layouts/'))), $result);
}
示例2: canRegisterProviderExtensionKey
/**
* @test
*/
public function canRegisterProviderExtensionKey()
{
$fakeExtensionKey = 'flux';
$fakeControllerName = 'Flux';
Core::registerProviderExtensionKey($fakeExtensionKey, $fakeControllerName);
$registered = Core::getRegisteredProviderExtensionKeys($fakeControllerName);
$this->assertContains($fakeExtensionKey, $registered);
}
示例3: testRegisterModuleBasedOnFluxForm
/**
* @dataProvider getRegisterModuleBasedOnFluxFormTestValues
* @param string $extension
* @param Form $form
* @param boolean $expectsException
*/
public function testRegisterModuleBasedOnFluxForm($extension, Form $form, $expectsException)
{
$instance = new ConfigurationService();
Core::registerProviderExtensionKey($extension, 'Backend');
if (TRUE === $expectsException) {
$this->setExpectedException('RuntimeException');
}
$GLOBALS['TBE_MODULES'] = array('fake' => array());
$instance->registerModuleBasedOnFluxForm($extension, $form);
if (FALSE === $expectsException) {
$this->assertNotEmpty($GLOBALS['TBE_MODULES']);
}
unset($GLOBALS['TBE_MODULES']);
}
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Hands and Feet');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Kostercx.Handsandfeet', 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Kostercx.Handsandfeet', 'Content');
示例5: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Gloggi Abteilungen');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Bm.' . $_EXTKEY, 'Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Bm.' . $_EXTKEY, 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Bm.' . $_EXTKEY, 'Backend');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_gloggiabteilungen_domain_model_abteilung', 'EXT:gloggiabteilungen/Resources/Private/Language/locallang_csh_tx_gloggiabteilungen_domain_model_abteilung.xlf');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_gloggiabteilungen_domain_model_abteilung');
$GLOBALS['TCA']['tx_gloggiabteilungen_domain_model_abteilung'] = array('ctrl' => array('title' => 'Gloggi Abteilung', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'versioningWS' => 2, 'versioning_followPages' => TRUE, 'origUid' => 't3_origuid', 'languageField' => 'sys_language_uid', 'transOrigPointerField' => 'l10n_parent', 'transOrigDiffSourceField' => 'l10n_diffsource', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'searchFields' => 'name,abkuerzung,logo,einzugsgebiet,koordinaten,beschreib,internet,email,', 'dynamicConfigFile' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/Abteilung.php', 'iconfile' => 'EXT:gloggiabteilungen/Resources/Public/Icons/ext_icon.png'));
示例6:
<?php
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('AppZap.ThemeFoundationApps', 'Page');
示例7: die
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'MOOX Core');
if ('BE' === TYPO3_MODE) {
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'constants', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/TypoScript/constants.txt">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScript($_EXTKEY, 'setup', '<INCLUDE_TYPOSCRIPT: source="FILE:EXT:moox_core/Configuration/TypoScript/setup.txt">');
}
\FluidTYPO3\Flux\Core::registerConfigurationProvider('DCNGmbH\\MooxCore\\Provider\\CoreContentProvider');
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['moox_core']['setup'] = unserialize($_EXTCONF);
if (FALSE === (bool) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['moox_core']['setup']['disablePageTemplates']) {
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('DCNGmbH.MooxCore', 'Page');
}
if (FALSE === (bool) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['moox_core']['setup']['disableContentTemplates']) {
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('DCNGmbH.MooxCore', 'Content');
}
// Add fields for individual id / class for content elements
$tempColumns = array('tx_mooxcore_hide_desktop' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_desktop', 'config' => array('type' => 'check')), 'tx_mooxcore_hide_laptop' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_laptop', 'config' => array('type' => 'check')), 'tx_mooxcore_hide_tablet' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_tablet', 'config' => array('type' => 'check')), 'tx_mooxcore_hide_phone' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_phone', 'config' => array('type' => 'check')), 'tx_mooxcore_hide_print' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_print', 'config' => array('type' => 'check')), 'tx_mooxcore_hide_barrierfree' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_barrierfree', 'config' => array('type' => 'check')), 'tx_mooxcore_hide_oldbrowser' => array('exclude' => 1, 'label' => 'LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_hide_oldbrowser', 'config' => array('type' => 'check')));
//\TYPO3\CMS\Core\Utility\GeneralUtility::loadTCA('tt_content');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('tt_content', $tempColumns, 1);
// create palette
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('tt_content', ',--div--;LLL:EXT:moox_core/locallang_db.xml:tt_content.tx_mooxcore_extended_visibility,tx_mooxcore_hide_desktop,tx_mooxcore_hide_laptop,tx_mooxcore_hide_tablet,tx_mooxcore_hide_phone,tx_mooxcore_hide_print,tx_mooxcore_hide_barrierfree,tx_mooxcore_hide_oldbrowser', '', '');
/* ===========================================================================
Register BE-Module for Administration
=========================================================================== */
if (TYPO3_MODE === 'BE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) {
/***************
* Register Main Module
*/
$mainModuleName = "moox";
示例8: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fluid Content Elements: intertain');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('FluidTYPO3.FluidcontentIntertain', 'Content');
示例9: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidbootstraptheme']['setup'] = unserialize($_EXTCONF);
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Bootstrap Theme');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Settings', 'Bootstrap Theme Settings');
if (FALSE === (bool) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidbootstraptheme']['setup']['disablePageTemplates']) {
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('FluidBT.Fluidbootstraptheme', 'Page');
}
if (FALSE === (bool) $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['fluidbootstraptheme']['setup']['disableContentTemplates']) {
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('FluidBT.Fluidbootstraptheme', 'Content');
}
示例10: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Hunting Developer Package');
// register to BE that hd_sitepackage has its own custom template(s)
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('HuntingDeveloper.HdSitepackage', 'Page');
// register to BE that hd_sitepackage has its own custom content element(s)
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('HuntingDeveloper.HdSitepackage', 'Content');
// register plugin for searching movie
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Pi1', 'LLL:EXT:hd_sitepackage/Resources/Private/Language/locallang_be.xml:tx_hdsitepackage.pi1.title');
/**
* Include Flexform
*/
$pluginSignature = str_replace('_', '', $_EXTKEY) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$pluginSignature] = 'layout,select_key';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform';
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForm/flexform_db.xml');
// WizIcon for Pi1
$TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_hdsitepackage_wizicon'] = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'class.tx_hdsitepackage_wizicon.php';
// Hide tables
$GLOBALS['TCA']['tx_news_domain_model_tag']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['backend_layout']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['sys_domain']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['sys_news']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['sys_note']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['sys_collection']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['sys_file_collection']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['sys_file_storage']['ctrl']['hideTable'] = TRUE;
$GLOBALS['TCA']['tx_rtehtmlarea_acronym']['ctrl']['hideTable'] = TRUE;
示例11: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Wondrous Hubs');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Vendor.WondrousHubs', 'Content');
示例12: array
}
}
*/
/* ===========================================================================
Register BE-Module for Administration
=========================================================================== */
if ($configuration->getShowAdministrationModule()) {
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerModule($packageKey, 'moox', 'tx_mooxnews_m2', '', array('Administration' => 'index,newNews,deleteNews,cloneNews,deleteTranslation,toggleNewsState,toggleTranslationState,newCategory,newTag,newTarget,newsPidListing,moveToFolder,multiple'), array('access' => 'user,group', 'icon' => 'EXT:' . $packageKey . '/ext_icon.gif', 'labels' => 'LLL:EXT:' . $packageKey . '/Resources/Private/Language/locallang_modadministration.xlf'));
}
/* ===========================================================================
Ajax call to save tags
=========================================================================== */
$GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['News::createTag'] = 'typo3conf/ext/moox_news/Classes/Hooks/SuggestReceiverCall.php:Tx_MooxNews_Hooks_SuggestReceiverCall->createTag';
$GLOBALS['TYPO3_CONF_VARS']['BE']['AJAX']['News::createTarget'] = 'typo3conf/ext/moox_news/Classes/Hooks/SuggestReceiverCall.php:Tx_MooxNews_Hooks_SuggestReceiverCall->createTarget';
}
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('DCNGmbH.MooxNews', 'Page');
/* ===========================================================================
Default configuration
=========================================================================== */
$GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['orderByCategory'] = 'uid,title,tstamp,sorting';
$GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['orderByNews'] = 'tstamp,datetime,crdate,title' . ($configuration->getManualSorting() ? ',sorting' : '');
$GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['orderByTag'] = 'tstamp,crdate,title';
$GLOBALS['TYPO3_CONF_VARS']['EXT']['moox_news']['switchableControllerActions']['list'] = $configuration->getRemoveListActionFromFlexforms();
};
$boot($_EXTKEY);
unset($boot);
/***************
* Icon in page tree
*/
$TCA['pages']['columns']['module']['config']['items'][] = array('MOOX-News', 'mxnews', 'EXT:moox_news/ext_icon.gif');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-mxnews', '../typo3conf/ext/moox_news/ext_icon.gif');
示例13: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addToAllTCAtypes('tt_content', 'subheader', '', 'after:header');
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'FluidFoundationTheme - Foundation 5 based Pages and Content');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Smedjadotcom.Fluidfoundationtheme', 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Smedjadotcom.Fluidfoundationtheme', 'Content');
示例14: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Urs.Siteprovider', 'Page');
\FluidTYPO3\Flux\Core::registerProviderExtensionKey('Urs.Siteprovider', 'Content');
示例15: testGetPageConfigurationWithoutExtensionNameReadsRegisteredProviders
/**
* @return void
*/
public function testGetPageConfigurationWithoutExtensionNameReadsRegisteredProviders()
{
/** @var ConfigurationService|\PHPUnit_Framework_MockObject_MockObject $instance */
$instance = $this->getMock('FluidTYPO3\\Fluidpages\\Service\\ConfigurationService', array('getViewConfigurationForExtensionName'));
Core::registerProviderExtensionKey('foo', 'Page');
Core::registerProviderExtensionKey('bar', 'Page');
$instance->expects($this->exactly(2))->method('getViewConfigurationForExtensionName');
$result = $instance->getPageConfiguration();
$this->assertCount(2, $result);
}