本文整理汇总了PHP中HDNET\Autoloader\Loader::extTables方法的典型用法代码示例。如果您正苦于以下问题:PHP Loader::extTables方法的具体用法?PHP Loader::extTables怎么用?PHP Loader::extTables使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HDNET\Autoloader\Loader
的用法示例。
在下文中一共展示了Loader::extTables方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
/**
* General ext_tables file and also an example for your own extension
*
* @category Extension
* @package Autoloader
* @author Tim Lochmüller
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader', ['Hooks', 'Slots', 'StaticTyposcript', 'ExtensionId']);
$GLOBALS['TYPO3_CONF_VARS']['SYS']['lang']['writer'] = ['xlf' => 'HDNET\\Autoloader\\Localization\\Writer\\XliffWriter', 'xml' => 'HDNET\\Autoloader\\Localization\\Writer\\XmlWriter'];
示例2: array
<?php
/** @var string $_EXTKEY */
$loader = array('SmartObjects', 'ExtensionTypoScriptSetup', 'ContextSensitiveHelps', 'FlexForms', 'StaticTyposcript', 'ExtensionId');
\HDNET\Autoloader\Loader::extTables('HDNET', 'faq', $loader);
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Faq', 'FAQ');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'FaqTeaser', 'FAQ Teaser');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'FaqEnter', 'FAQ Eingabe');
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][$_EXTKEY]['0'] = 'LLL:EXT:faq/Resources/Private/Language/locallang.xml:sysfolder';
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][$_EXTKEY]['1'] = $_EXTKEY;
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-faq', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/QuestionFolder.png');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod {
wizards.newContentElement.wizardItems.plugins {
elements {
faq {
icon = EXT:faq/Resources/Public/Icons/Question.png
title = FAQ
description = Create FAQ Plugin to handle the FAQ output
tt_content_defValues {
CType = list
list_type = faq_faq
}
}
}
}
}
');
示例3: die
<?php
/**
* General ext_tables file and also an example for your own extension
*
* @category Extension
* @package AutoloaderSoap
* @author Tim Lochmüller
* @author Tito Duarte
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_json', ['JsonServer']);
示例4: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'focuspoint');
$icons = array('focuspoint' => \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('focuspoint') . 'ext_icon.png');
// Gives the $icon array to the sprite manager
\TYPO3\CMS\Backend\Sprite\SpriteManager::addSingleIcons($icons, 'focuspoint');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('focuspoint', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Modules/Wizards/Focuspoint/');
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['focuspoint_test'] = 'image,image_ratio';
示例5: die
<?php
/**
* General ext_tables file
*
* @author Tim Lochmüller
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('FRUIT', 'ink');
示例6: die
<?php
/**
* General ext_tables file and also an example for your own extension
*
* @category Extension
* @package Calendarize
* @author Tim Lochmüller
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'calendarize', \HDNET\Calendarize\Register::getDefaultAutoloader());
if (!(bool) \HDNET\Calendarize\Utility\ConfigurationUtility::get('disableDefaultEvent')) {
\HDNET\Calendarize\Register::extTables(\HDNET\Calendarize\Register::getDefaultCalendarizeConfiguration());
\TYPO3\CMS\Core\Category\CategoryRegistry::getInstance()->add('calendarize', 'tx_calendarize_domain_model_event');
}
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('calendarize', 'Calendar', \HDNET\Calendarize\Utility\TranslateUtility::get('pluginName'));
if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.0.0')) {
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['calendarize_calendar'] .= ',categories';
}
// module icon
$extensionIcon = \HDNET\Autoloader\Utility\IconUtility::getByExtensionKey('calendarize', true);
if (\TYPO3\CMS\Core\Utility\GeneralUtility::compat_version('7.0')) {
/** @var \TYPO3\CMS\Core\Imaging\IconRegistry $iconRegistry */
$iconRegistry = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Imaging\\IconRegistry');
$iconRegistry->registerIcon('apps-pagetree-folder-contains-calendarize', 'TYPO3\\CMS\\Core\\Imaging\\IconProvider\\BitmapIconProvider', ['source' => $extensionIcon]);
} else {
$extensionRelPath = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('calendarize');
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-calendar', str_replace('EXT:calendarize/', $extensionRelPath, $extensionIcon));
}
示例7: die
<?php
/**
* General ext_localconf file and also an example for your own extension
*
* @category Extension
* @package AutoloaderPlugin
* @author Tim Lochmüller
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_plugin', ['Plugins']);
示例8:
<?php
/** @var string $_EXTKEY */
\HDNET\Autoloader\Loader::extTables('HDNET', 'faq', \HDNET\Faq\Utility\ExtensionUtility::getAutoloaderConfiguration());
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'Faq', 'FAQ');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'FaqTeaser', 'FAQ Teaser');
\TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin($_EXTKEY, 'FaqEnter', 'FAQ Eingabe');
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][$_EXTKEY]['0'] = 'LLL:EXT:faq/Resources/Private/Language/locallang.xlf:sysfolder';
$GLOBALS['TCA']['pages']['columns']['module']['config']['items'][$_EXTKEY]['1'] = $_EXTKEY;
\TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-faq', \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/QuestionFolder.png');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('
mod {
wizards.newContentElement.wizardItems.plugins {
elements {
faq {
icon = EXT:faq/Resources/Public/Icons/Question.png
title = FAQ
description = Create FAQ Plugin to handle the FAQ output
tt_content_defValues {
CType = list
list_type = faq_faq
}
}
}
}
}
');
示例9: die
<?php
/**
* General ext_localconf file and also an example for your own extension
*
* @category Extension
* @package AutoloaderHooks
* @author Tim Lochmüller
*/
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
\HDNET\Autoloader\Loader::extTables('HDNET', 'autoloader_csh', ['SmartObjects', 'TcaFiles', 'ContextSensitiveHelps']);