/** * Return RTE * * @param string $name Field name * @param string $namePrefix Name prefix (tx_ext_pi1[object]) * @param boolean $isLast Is last flag (generate JavaScript only for the last RTE) * @param string $value Any value * @param string $width Width * @param string $height height * @return string Generated RTE content */ public function render($name, $namePrefix, $isLast = 1, $value = '', $width = '400px', $height = '300px') { require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('rtehtmlarea') . 'pi2/class.tx_rtehtmlarea_pi2.php'; require_once PATH_site . 'typo3conf/ext/t3devapi/Classes/class.tx_t3devapi_fertehtmlarea.php'; if ($this->viewHelperVariableContainer->exists('Tx_T3devapi_ViewHelpers_RteViewHelper', 'rte')) { $rteObject = $this->viewHelperVariableContainer->get('Tx_T3devapi_ViewHelpers_RteViewHelper', 'rte'); } else { $rteObject = array(); $rteObject['counter'] = 1; $rteObject['onsubmit'] = ''; } $rte = new tx_t3devapi_fertehtmlarea(); $rte->setField($name); $rte->setPA(array('itemFormElName' => $namePrefix . '[' . $name . ']', 'itemFormElValue' => $value)); $this->registerFieldNameForFormTokenGeneration($namePrefix . '[' . $name . ']'); $this->registerFieldNameForFormTokenGeneration($namePrefix . '[_TRANSFORM_' . $name . ']'); $rte->setRTEcounter($rteObject['counter']); $rte->setWidth($width); $rte->setHeight($height); $markerArray = $rte->drawRTE(); $rteObject['counter']++; $rteObject['onsubmit'] .= $markerArray['###ADDITIONALJS_SUBMIT###']; if ($isLast == 1) { $rteObject['onsubmit'] = '<script type="text/javascript">function rteMove(){' . $rteObject['onsubmit'] . '}</script>'; //t3lib_div::debug($markerArray['###ADDITIONALJS_PRE###'] . $markerArray['###FORM_RTE_ENTRY###'] . $markerArray['###ADDITIONALJS_POST###'] . $rteObject['onsubmit'],'*'); return $markerArray['###ADDITIONALJS_PRE###'] . $markerArray['###FORM_RTE_ENTRY###'] . $markerArray['###ADDITIONALJS_POST###'] . $rteObject['onsubmit']; } else { $this->viewHelperVariableContainer->addOrUpdate('Tx_T3devapi_ViewHelpers_RteViewHelper', 'rte', $rteObject); return $markerArray['###ADDITIONALJS_PRE###'] . $markerArray['###FORM_RTE_ENTRY###'] . $markerArray['###ADDITIONALJS_POST###']; } }
/** * Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { $llFile = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'pi2/locallang.xml'; $xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); $LOCAL_LANG = $xmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang); return $LOCAL_LANG; }
/** * Reads the [extDir]/locallang.xml and returns the \$LOCAL_LANG array found in that file. * * @return The array with language labels */ function includeLocalLang() { if (TYPO3_VERSION_INTEGER < 6002000) { $llFile = t3lib_extMgm::extPath('ke_search') . 'pi2/locallang.xml'; } else { $llFile = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'pi2/locallang.xml'; } if (TYPO3_VERSION_INTEGER >= 4006000) { if (TYPO3_VERSION_INTEGER >= 7000000) { $xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Localization\\Parser\\LocallangXmlParser'); } else { if (TYPO3_VERSION_INTEGER >= 6002000) { $xmlParser = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_l10n_parser_Llxml'); } else { $xmlParser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml'); } } $LOCAL_LANG = $xmlParser->getParsedData($llFile, $GLOBALS['LANG']->lang); } else { $LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang); } return $LOCAL_LANG; }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } // register cli-script if (TYPO3_MODE == 'BE') { $TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/cli/class.cli_kesearch.php', '_CLI_kesearch'); } // include filterlist class and pageTSconfig.txt and add plugin include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . '/Classes/Backend/class.user_filterlist.php'; TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPageTSConfig('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:ke_search/pageTSconfig.txt">'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi1/class.tx_kesearch_pi1.php', '_pi1', 'list_type', 0); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi2/class.tx_kesearch_pi2.php', '_pi2', 'list_type', 0); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPItoST43($_EXTKEY, 'pi3/class.tx_kesearch_pi3.php', '_pi3', 'list_type', 0); // use hooks for generation of sortdate values $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerAdditionalFields'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyPagesIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyYACIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyContentIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['modifyTemplaVoilaIndexEntry'][] = 'EXT:ke_search/Classes/hooks/class.user_kesearchhooks.php:user_kesearch_sortdate'; // add scheduler task $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_kesearch_indexertask'] = array('extension' => $_EXTKEY, 'title' => 'Indexing process for ke_search', 'description' => 'This task updates the ke_search index');
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ /** * generates a tree from tt_news categories. * * $Id$ * * @author Rupert Germann <*****@*****.**> * @package TYPO3 * @subpackage tt_news */ require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_news') . 'lib/class.tx_ttnews_div.php'; /** * extend class t3lib_treeview to change function wrapTitle(). * */ class tx_ttnews_categorytree extends \TYPO3\CMS\Backend\Tree\View\AbstractTreeView { var $categoryCountCache = array(); var $cacheHit = false; var $expandable; /** * Will create and return the HTML code for a browsable tree * Is based on the mounts found in the internal array ->MOUNTS (set in the constructor) * * @param [type] $groupByPages: ... * @return string HTML code for the browsable tree
<?php if (TYPO3_VERSION_INTEGER >= 6002000) { $extensionPath = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search'); } else { $extensionPath = t3lib_extMgm::extPath('ke_search'); } return array('tx_kesearch_pi1' => $extensionPath . 'pi1/class.tx_kesearch_pi1.php', 'tx_kesearch_indexertask' => $extensionPath . 'Classes/Scheduler/class.tx_kesearch_indexertask.php', 'tx_kesearch_indexer' => $extensionPath . 'Classes/indexer/class.tx_kesearch_indexer.php', 'tx_kesearch_indexer_types' => $extensionPath . 'Classes/indexer/class.tx_kesearch_indexer_types.php', 'tx_kesearch_indexer_types_file' => $extensionPath . 'Classes/indexer/types/class.tx_kesearch_indexer_types_file.php', 'tx_kesearch_indexer_types_page' => $extensionPath . 'Classes/indexer/types/class.tx_kesearch_indexer_types_page.php', 'tx_kesearch_indexer_types_templavoila' => $extensionPath . 'Classes/indexer/types/class.tx_kesearch_indexer_types_templavoila.php', 'tx_kesearch_indexer_filetypes' => $extensionPath . 'Classes/indexer/filetypes/interface.tx_kesearch_indexer_filetypes.php', 'tx_kesearch_indexer_filetypes_pdf' => $extensionPath . 'Classes/indexer/filetypes/class.tx_kesearch_indexer_filetypes_pdf.php', 'tx_kesearch_indexer_filetypes_ppt' => $extensionPath . 'Classes/indexer/filetypes/class.tx_kesearch_indexer_filetypes_ppt.php', 'tx_kesearch_indexer_filetypes_doc' => $extensionPath . 'Classes/indexer/filetypes/class.tx_kesearch_indexer_filetypes_doc.php', 'tx_kesearch_indexer_filetypes_xls' => $extensionPath . 'Classes/indexer/filetypes/class.tx_kesearch_indexer_filetypes_xls.php', 'tx_kesearch_lib' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib.php', 'tx_kesearch_lib_div' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib_div.php', 'tx_kesearch_lib_fileinfo' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib_fileinfo.php', 'tx_kesearch_lib_searchphrase' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib_searchphrase.php', 'tx_kesearch_lib_searchresult' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib_searchresult.php', 'tx_kesearch_lib_sorting' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib_sorting.php', 'tx_kesearch_lib_filters_textlinks' => $extensionPath . 'Classes/lib/filters/class.tx_kesearch_lib_filters_textlinks.php', 'tx_kesearch_helper' => $extensionPath . 'Classes/lib/class.tx_kesearch_lib_helper.php', 'tx_kesearch_db' => $extensionPath . 'Classes/lib/class.tx_kesearch_db.php', 'tx_kesearch_filters' => $extensionPath . 'Classes/lib/class.tx_kesearch_filters.php');
<?php $extensionPath = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('coreapi'); $extensionClassesPath = $extensionPath . 'Classes/'; return array('Etobi\\CoreAPI\\Command\\BackendApiCommandController' => $extensionClassesPath . 'Command/BackendApiCommandController.php', 'Etobi\\CoreAPI\\Command\\DatabaseApiCommandController' => $extensionClassesPath . 'Command/DatabaseApiCommandController.php', 'Etobi\\CoreAPI\\Command\\SiteApiCommandController' => $extensionClassesPath . 'Command/SiteApiCommandController.php', 'Etobi\\CoreAPI\\Command\\CacheApiCommandController' => $extensionClassesPath . 'Command/CacheApiCommandController.php', 'Etobi\\CoreAPI\\Command\\ExtensionApiCommandController' => $extensionClassesPath . 'Command/ExtensionApiCommandController.php', 'Etobi\\CoreAPI\\Service\\CacheApiService' => $extensionClassesPath . 'Service/CacheApiService.php', 'Etobi\\CoreAPI\\Service\\SiteApiService' => $extensionClassesPath . 'Service/SiteApiService.php', 'Etobi\\CoreAPI\\Service\\DatabaseApiService' => $extensionClassesPath . 'Service/DatabaseApiService.php', 'Etobi\\CoreAPI\\Service\\DatabaseComparator' => $extensionClassesPath . 'Service/DatabaseComparator.php', 'Etobi\\CoreAPI\\Service\\DatabaseCompareDry' => $extensionClassesPath . 'Service/DatabaseCompareDry.php', 'Etobi\\CoreAPI\\Service\\DatabaseCompareReal' => $extensionClassesPath . 'Service/DatabaseCompareReal.php', 'Etobi\\CoreAPI\\Service\\ExtensionApiService' => $extensionClassesPath . 'Service/ExtensionApiService.php');
<?php // Static class loading require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_miscellaneous.php'; // first require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_pibase.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_tagbuilder.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_befunc.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_calendar.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_config.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_database.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_export.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_fluid.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_html.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_profiler.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_templating.php'; require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('t3devapi') . 'Classes/class.tx_t3devapi_validate.php';
/** * get a limitted amount of search results for a requested page * * @return array Array containing a limitted (one page) amount of search results */ public function getSearchResultBySphinx() { require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search_premium') . 'class.user_kesearchpremium.php'; $this->user_kesearchpremium = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('user_kesearchpremium'); // set ordering $this->user_kesearchpremium->setSorting($this->getOrdering()); // set limit $limit = $this->getLimit(); $this->user_kesearchpremium->setLimit($limit[0], $limit[1], intval($this->pObj->extConfPremium['sphinxLimit'])); // generate query $queryForSphinx = ''; if ($this->pObj->wordsAgainst) { $queryForSphinx .= ' @(title,content) ' . $this->escapeString($this->pObj->wordsAgainst); } if (count($this->pObj->tagsAgainst)) { foreach ($this->pObj->tagsAgainst as $value) { // in normal case only checkbox mode has spaces $queryForSphinx .= ' @tags ' . str_replace('" "', '" | "', trim($value)); } } // add language $queryForSphinx .= ' @language _language_-1 | _language_' . $GLOBALS['TSFE']->sys_language_uid; // add fe_groups to query $queryForSphinx .= ' @fe_group _group_NULL | _group_0'; if (!empty($GLOBALS['TSFE']->gr_list)) { $feGroups = TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $GLOBALS['TSFE']->gr_list, 1); foreach ($feGroups as $key => $group) { $intval_positive_group = TYPO3\CMS\Core\Utility\MathUtility::convertToPositiveInteger($group); if ($intval_positive_group) { $feGroups[$key] = '_group_' . $group; } else { unset($feGroups[$key]); } } if (is_array($feGroups) && count($feGroups)) { $queryForSphinx .= ' | ' . implode(' | ', $feGroups); } } // restrict to storage page (in MySQL: $where .= ' AND pid in (' . . ') ';) $startingPoints = TYPO3\CMS\Core\Utility\GeneralUtility::trimExplode(',', $this->pObj->startingPoints); $queryForSphinx .= ' @pid '; $first = true; foreach ($startingPoints as $startingPoint) { if (!$first) { $queryForSphinx .= ' | '; } else { $first = false; } $queryForSphinx .= ' _pid_' . $startingPoint; } // hook for appending additional where clause to sphinx query if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['appendWhereToSphinx'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['appendWhereToSphinx'] as $_classRef) { $_procObj =& TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef); $queryForSphinx = $_procObj->appendWhereToSphinx($queryForSphinx, $this->user_kesearchpremium, $this); } } $rows = $this->user_kesearchpremium->getSearchResults($queryForSphinx); // get number of records $this->numberOfResults = $this->user_kesearchpremium->getTotalFound(); return $rows; }
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_txttnewsM1', 'EXT:tt_news/csh/locallang_csh_mod_newsadmin.xml'); // adds processing for extra "codes" that have been added to the "what to display" selector in the content element by other extensions include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'lib/class.tx_ttnews_itemsProcFunc.php'; // class that uses hooks in class.t3lib_tcemain.php (processDatamapClass and processCmdmapClass) // to prevent not allowed "commands" (copy,delete,...) for a certain BE usergroup include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'lib/class.tx_ttnews_tcemain.php'; $tempColumns = array('tt_news_categorymounts' => array('exclude' => 1, 'l10n_mode' => 'exclude', 'label' => 'LLL:EXT:tt_news/Resources/Private/Language/locallang_tca.xml:tt_news.categorymounts', 'config' => array('type' => 'select', 'renderType' => 'selectTree', 'foreign_table' => 'tt_news_cat', 'foreign_table_where' => ' ORDER BY tt_news_cat.title ASC', 'size' => 10, 'autoSizeMax' => 50, 'minitems' => 0, 'maxitems' => 500, 'renderMode' => 'tree', 'treeConfig' => array('expandAll' => true, 'parentField' => 'parent_category', 'appearance' => array('showHeader' => TRUE, 'width' => 400))))); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_groups', $tempColumns); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_groups', 'tt_news_categorymounts;;;;1-1-1'); // show the category selection only in non-admin be_users records $tempColumns['tt_news_categorymounts']['displayCond'] = 'FIELD:admin:=:0'; // $tempColumns['tt_news_cmounts_usesubcats']['displayCond'] = 'FIELD:admin:=:0'; TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('be_users', $tempColumns); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('be_users', 'tt_news_categorymounts;;;;1-1-1'); if (TYPO3_MODE == 'BE') { if ($confArr['showBackEndModule']) { TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'txttnewsM1', '', TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'mod1/'); $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_ttnewscatmanager_cm1'); } $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['fList'] = 'uid,title,author,category,datetime,archivedate,tstamp'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables'][$_EXTKEY][0]['icon'] = TRUE; // register contextmenu for the tt_news category manager // Adds a tt_news wizard icon to the content element wizard. $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_ttnews_wizicon'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'pi/class.tx_ttnews_wizicon.php'; // add folder icon \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-news', TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'res/gfx/ext_icon_ttnews_folder.gif'); // register HTML template for the tt_news BackEnd Module $GLOBALS['TBE_STYLES']['htmlTemplates']['mod_ttnews_admin.html'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath('tt_news') . 'mod1/mod_ttnews_admin.html'; } TYPO3\CMS\Core\Utility\ExtensionManagementUtility::loadNewTcaColumnsConfigFiles(); #
<?php // DO NOT CHANGE THIS FILE! It is automatically generated by extdeveval::buildAutoloadRegistry. // This file was generated on 2013-06-03 22:51 $extensionPath = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_news'); return array('tx_ttnews' => $extensionPath . 'pi/class.tx_ttnews.php', 'tx_ttnews_cache' => $extensionPath . 'lib/class.tx_ttnews_cache.php', 'tx_ttnews_categorytree' => $extensionPath . 'lib/class.tx_ttnews_categorytree.php', 'tx_ttnews_catmenu' => $extensionPath . 'lib/class.tx_ttnews_catmenu.php', 'tx_ttnews_cms_layout' => $extensionPath . 'lib/class.tx_ttnews_cms_layout.php', 'tx_ttnews_div' => $extensionPath . 'lib/class.tx_ttnews_div.php', 'tx_ttnews_fetreeview' => $extensionPath . 'lib/class.tx_ttnews_catmenu.php', 'tx_ttnews_helpers' => $extensionPath . 'lib/class.tx_ttnews_helpers.php', 'tx_ttnews_itemsprocfunc' => $extensionPath . 'lib/class.tx_ttnews_itemsProcFunc.php', 'tx_ttnews_module1' => $extensionPath . 'mod1/index.php', 'tx_ttnews_realurl' => $extensionPath . 'lib/class.tx_ttnews_realurl.php', 'tx_ttnews_recordlist' => $extensionPath . 'lib/class.tx_ttnews_recordlist.php', 'tx_ttnews_tcemain' => $extensionPath . 'lib/class.tx_ttnews_tcemain.php', 'tx_ttnews_tcemain_cmdmap' => $extensionPath . 'lib/class.tx_ttnews_tcemain.php', 'tx_ttnews_templateeval' => $extensionPath . 'lib/class.tx_ttnews_templateeval.php', 'tx_ttnews_tsparserext' => $extensionPath . 'lib/class.tx_ttnews_tsparserext.php', 'tx_ttnews_typo3ajax' => $extensionPath . 'lib/class.tx_ttnews_typo3ajax.php', 'tx_ttnews_wizicon' => $extensionPath . 'pi/class.tx_ttnews_wizicon.php', 'tx_ttnewscatmanager_cm1' => $extensionPath . 'cm1/class.tx_ttnewscatmanager_cm1.php');
// this hook is used to prevent saving of news or category records which have categories assigned that are not allowed for the current BE user. // The list of allowed categories can be set with 'tt_news_cat.allowedItems' in user/group TSconfig. // This check will be disabled until 'options.useListOfAllowedItems' (user/group TSconfig) is set to a value. $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['tt_news'] = 'EXT:tt_news/lib/class.tx_ttnews_tcemain.php:tx_ttnews_tcemain'; // this hook is used to prevent saving of a news record that has non-allowed categories assigned when a command is executed (modify,copy,move,delete...). // it checks if the record has an editlock. If true, nothing will not be saved. $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass']['tt_news'] = 'EXT:tt_news/lib/class.tx_ttnews_tcemain.php:tx_ttnews_tcemain_cmdmap'; $confArr = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['tt_news']); // Page module hook $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['9']['tt_news'] = 'EXT:tt_news/lib/class.tx_ttnews_cms_layout.php:tx_ttnews_cms_layout->getExtensionSummary'; // Fix for template file name created with older versions $TYPO3_CONF_VARS['SC_OPTIONS']['tce']['formevals']['tx_ttnews_templateeval'] = 'EXT:tt_news/lib/class.tx_ttnews_templateeval.php'; // register Ajax scripts $TYPO3_CONF_VARS['FE']['eID_include']['tt_news'] = 'EXT:tt_news/pi/fe_index.php'; $TYPO3_CONF_VARS['BE']['AJAX']['txttnewsM1::expandCollapse'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_news') . 'mod1/index.php:tx_ttnews_module1->ajaxExpandCollapse'; $TYPO3_CONF_VARS['BE']['AJAX']['txttnewsM1::loadList'] = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_news') . 'mod1/index.php:tx_ttnews_module1->ajaxLoadList'; if (!is_array($GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tt_news_cache'])) { $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations']['tt_news_cache'] = array('backend' => 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', 'frontend' => 'TYPO3\\CMS\\Core\\Cache\\Frontend\\VariableFrontend'); } // register news cache table for "clear all caches" if ($confArr['cachingMode'] == 'normal') { $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearAllCache_additionalTables']['tt_news_cache'] = 'tt_news_cache'; } // in order to make "direct Preview links" for tt_news work again in TYPO3 >= 6, unset pageNotFoundOnCHashError if a BE_USER is logged in // todo: check if still needed $configuredCookieName = trim($GLOBALS['TYPO3_CONF_VARS']['BE']['cookieName']); if (empty($configuredCookieName)) { $configuredCookieName = 'be_typo_user'; } if ($_COOKIE[$configuredCookieName]) { $GLOBALS['TYPO3_CONF_VARS']['FE']['pageNotFoundOnCHashError'] = 0;
/** * Obtains current extension version (for use with compatVersion) * * @return string Extension version (for example, '2.5.1') */ function getCurrentVersion() { $_EXTKEY = $this->pObj->extKey; // require_once fails if the plugin is executed multiple times require TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY, 'ext_emconf.php'); return isset($EM_CONF[$_EXTKEY]['version']) ? $EM_CONF[$_EXTKEY]['version'] : null; }
TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM3', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM3.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM4', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM4.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM5', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM5.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_txdirectmailM1_txdirectmailM6', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_txdirectmailM6.xml'); //old TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('_MOD_web_txdirectmailM', 'EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_csh_web_txdirectmail.xml'); if (TYPO3_MODE == 'BE') { // add module before 'Help' if (!isset($TBE_MODULES['txdirectmailM1'])) { $temp_TBE_MODULES = array(); foreach ($TBE_MODULES as $key => $val) { if ($key == 'help') { $temp_TBE_MODULES['txdirectmailM1'] = ''; $temp_TBE_MODULES[$key] = $val; } else { $temp_TBE_MODULES[$key] = $val; } } $TBE_MODULES = $temp_TBE_MODULES; } TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', '', '', $extPath . 'mod1/'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM2', 'bottom', $extPath . 'mod2/'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM3', 'bottom', $extPath . 'mod3/'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM4', 'bottom', $extPath . 'mod4/'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM5', 'bottom', $extPath . 'mod5/'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('txdirectmailM1', 'txdirectmailM6', 'bottom', $extPath . 'mod6/'); } \TYPO3\CMS\Backend\Sprite\SpriteManager::addTcaTypeIcon('pages', 'contains-dmail', TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'res/gfx/ext_icon_dmail_folder.gif'); if (VersionNumberUtility::convertVersionNumberToInteger(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::getExtensionVersion('tt_address')) <= VersionNumberUtility::convertVersionNumberToInteger('2.3.5')) { include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . "Configuration/TCA/Overrides/tt_address.php"; }
function startIndexing($verbose = true, $extConf, $mode = '') { // write starting timestamp into registry // this is a helper to delete all records which are older than starting timestamp in registry // this also prevents starting the indexer twice if ($this->registry->get('tx_kesearch', 'startTimeOfIndexer') === null) { $this->registry->set('tx_kesearch', 'startTimeOfIndexer', time()); } else { // check lock time $lockTime = $this->registry->get('tx_kesearch', 'startTimeOfIndexer'); $compareTime = time() - 60 * 60 * 12; if ($lockTime < $compareTime) { // lock is older than 12 hours - remove $this->registry->removeAllByNamespace('tx_kesearch'); $this->registry->set('tx_kesearch', 'startTimeOfIndexer', time()); } else { return 'You can\'t start the indexer twice. Please wait while first indexer process is currently running'; } } // set indexing start time $this->startTime = time(); // get configurations $configurations = $this->getConfigurations(); // number of records that should be written to the database in one action $this->amountOfRecordsToSaveInMem = 500; // register additional fields which should be written to DB if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerAdditionalFields'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['registerAdditionalFields'] as $_classRef) { if (TYPO3_VERSION_INTEGER >= 7000000) { $_procObj =& TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef); } else { $_procObj =& t3lib_div::getUserObj($_classRef); } $_procObj->registerAdditionalFields($this->additionalFields); } } // set some prepare statements $this->prepareStatements(); foreach ($configurations as $indexerConfig) { $this->indexerConfig = $indexerConfig; // run default indexers shipped with ke_search if (in_array($this->indexerConfig['type'], $this->defaultIndexerTypes)) { if (TYPO3_VERSION_INTEGER < 6002000) { $path = t3lib_extMgm::extPath('ke_search') . 'Classes/indexer/types/class.tx_kesearch_indexer_types_' . $this->indexerConfig['type'] . '.php'; } else { $path = TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'Classes/indexer/types/class.tx_kesearch_indexer_types_' . $this->indexerConfig['type'] . '.php'; } if (is_file($path)) { require_once $path; if (TYPO3_VERSION_INTEGER >= 6002000) { $searchObj = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('tx_kesearch_indexer_types_' . $this->indexerConfig['type'], $this); } else { $searchObj = t3lib_div::makeInstance('tx_kesearch_indexer_types_' . $this->indexerConfig['type'], $this); } $content .= $searchObj->startIndexing(); } else { $content = '<div class="error"> Could not find file ' . $path . '</div>' . "\n"; } } // hook for custom indexer if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['customIndexer'])) { foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['ke_search']['customIndexer'] as $_classRef) { if (TYPO3_VERSION_INTEGER >= 7000000) { $_procObj =& TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj($_classRef); } else { $_procObj =& t3lib_div::getUserObj($_classRef); } $content .= $_procObj->customIndexer($indexerConfig, $this); } } // In most cases there are some records waiting in ram to be written to db $this->storeTempRecordsToIndex('both'); } // process index cleanup $content .= $this->cleanUpIndex(); // count index records $count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows('*', 'tx_kesearch_index'); $content .= '<p><b>Index contains ' . $count . ' entries.</b></p>'; // clean up process after indezing to free memory $this->cleanUpProcessAfterIndexing(); // print indexing errors if (sizeof($this->indexingErrors)) { $content .= "\n\n" . '<br /><br /><br /><b>INDEXING ERRORS (' . sizeof($this->indexingErrors) . ')<br /><br />' . CHR(10); foreach ($this->indexingErrors as $error) { $content .= $error . '<br />' . CHR(10); } } // create plaintext report $plaintextReport = $this->createPlaintextReport($content); // send notification in CLI mode if ($mode == 'CLI') { // send finishNotification if (TYPO3_VERSION_INTEGER >= 7000000) { $isValidEmail = TYPO3\CMS\Core\Utility\GeneralUtility::validEmail($extConf['notificationRecipient']); } else { $isValidEmail = t3lib_div::validEmail($extConf['notificationRecipient']); } if ($extConf['finishNotification'] && $isValidEmail) { // send the notification message // use swiftmailer in 4.5 and above if (TYPO3_VERSION_INTEGER >= 4005000) { if (TYPO3_VERSION_INTEGER >= 7000000) { $mail = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Mail\\MailMessage'); } else { if (TYPO3_VERSION_INTEGER >= 6002000) { $mail = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('t3lib_mail_Message'); } else { $mail = t3lib_div::makeInstance('t3lib_mail_Message'); } } $mail->setFrom(array($extConf['notificationSender'])); $mail->setTo(array($extConf['notificationRecipient'])); $mail->setSubject($extConf['notificationSubject']); $mail->setBody($plaintextReport); $mail->send(); } else { mail($extConf['notificationRecipient'], $subject, $plaintextReport); } } } // log report to sys_log $GLOBALS['BE_USER']->simplelog($plaintextReport, 'ke_search'); // verbose or quiet output? as set in function call! if ($verbose) { return $content; } }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('blypo') . '/vendor/autoload.php'; /* Declarating the Blade Template cObj */ $TYPO3_CONF_VARS['SC_OPTIONS']['tslib/class.tslib_content.php']['cObjTypeAndClass'][AuM\Blypo\ObjectRender\BladePageObjectRender::CONTENT_OBJECT_NAME] = array(AuM\Blypo\ObjectRender\BladePageObjectRender::CONTENT_OBJECT_NAME, 'AuM\\Blypo\\ObjectRender\\BladePageObjectRender'); // Clear Cache Hook $TYPO3_CONF_VARS['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc']['blypo_views'] = 'AuM\\Blypo\\Hooks\\ClearCache->clear'; $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['blypo']['defaultViewHelpers']['b'] = '\\AuM\\Blypo\\ViewHelper'; //if this function returns true, the templates will not be cached and freshly compiled, replace it with whatever suits you $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['blypo']['sideStepCaching'] = function () { return isset($_GET['no_cache']) && (int) $_GET['no_cache'] === 1; };
<?php defined('TYPO3_MODE') or die; /** @noinspection PhpUndefinedVariableInspection */ $extensionConfiguration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf'][$_EXTKEY]); if (TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('realurl') && (!isset($extensionConfiguration['setRealurlConfigByDefault']) || $extensionConfiguration['setRealurlConfigByDefault'] == 1)) { /** @noinspection PhpIncludeInspection */ require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/Realurl/realurl_conf.php'; } \TYPO3\CMS\Extbase\Utility\ExtensionUtility::configurePlugin('Evoweb.' . $_EXTKEY, 'Form', array('FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage', 'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage', 'FeuserPassword' => 'form, save'), array('FeuserCreate' => 'form, preview, proxy, save, confirm, accept, decline, refuse, removeImage', 'FeuserEdit' => 'form, preview, proxy, save, confirm, accept, removeImage', 'FeuserPassword' => 'form, save')); $TYPO3_CONF_VARS['FE']['eID_include']['sf_register'] = 'EXT:sf_register/Classes/Api/Ajax.php'; define('SFREGISTERCACHEIDENTIFIER', 'cache_' . $_EXTKEY . '_extending'); // Register cache sf_register $GLOBALS['TYPO3_CONF_VARS']['SYS']['caching']['cacheConfigurations'][SFREGISTERCACHEIDENTIFIER] = array('frontend' => \TYPO3\CMS\Core\Cache\Frontend\PhpFrontend::class, 'backend' => \TYPO3\CMS\Core\Cache\Backend\FileBackend::class, 'options' => array()); \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerTypeConverter(\Evoweb\SfRegister\Property\TypeConverter\FrontendUserConverter::class); if (TYPO3_MODE === 'FE' && !(TYPO3_REQUESTTYPE & TYPO3_REQUESTTYPE_INSTALL)) { /** * Signal slot dispatcher * * @var \TYPO3\CMS\Extbase\SignalSlot\Dispatcher $signalSlotDispatcher */ $signalSlotDispatcher = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Extbase\SignalSlot\Dispatcher::class); $signalSlotDispatcher->connect(\Evoweb\SfRegister\Controller\FeuserController::class, 'initializeAction', \Evoweb\SfRegister\Signal\FeuserControllerSignal::class, 'initializeAction'); }
* * The GNU General Public License can be found at * http://www.gnu.org/copyleft/gpl.html. * * This script is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * This copyright notice MUST APPEAR in all copies of the script! ***************************************************************/ if (!defined('TYPO3_cliMode')) { die('You cannot run this script directly!'); } // Include basis cli class require_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('ke_search') . 'Classes/indexer/class.tx_kesearch_indexer.php'; class tx_kesearch_cli extends t3lib_cli { /** * Constructor */ function tx_kesearch_cli() { // Running parent class constructor parent::__construct(); // Setting help texts: $this->cli_help['name'] = 'ke_search Command Line Interface'; $this->cli_help['synopsis'] = '###OPTIONS###'; $this->cli_help['description'] = 'Start indexer for ke_search as CLI script'; $this->cli_help['examples'] = '.../cli_dispatch.phpsh ke_search startIndexing'; $this->cli_help['author'] = 'Andreas Kiefer, (c) 2010-2011';
// help file TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_kesearch_filters', 'EXT:ke_search/locallang_csh.xml'); // Show FlexForm field in plugin configuration $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi2'] = 'pi_flexform'; $TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi3'] = 'pi_flexform'; // Configure FlexForm field TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:ke_search/pi1/flexform_pi1.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi2', 'FILE:EXT:ke_search/pi2/flexform_pi2.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($_EXTKEY . '_pi3', 'FILE:EXT:ke_search/pi3/flexform_pi3.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTCAcolumns('pages', $tempColumns); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addToAllTCAtypes('pages', 'tx_kesearch_tags;;;;1-1-1'); if (TYPO3_MODE == 'BE') { TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath('web_txkesearchM1', $extPath . 'mod1/'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('web', 'txkesearchM1', '', $extPath . 'mod1/'); } $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key'; $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi2'] = 'layout,select_key'; $TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi3'] = 'layout,select_key'; TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:ke_search/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', $extRelPath . 'ext_icon.gif'), 'list_type'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:ke_search/locallang_db.xml:tt_content.list_type_pi2', $_EXTKEY . '_pi2', $extRelPath . 'ext_icon.gif'), 'list_type'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPlugin(array('LLL:EXT:ke_search/locallang_db.xml:tt_content.list_type_pi3', $_EXTKEY . '_pi3', $extRelPath . 'ext_icon.gif'), 'list_type'); // class for displaying the category tree for tt_news in BE forms. if (TYPO3\CMS\Core\Utility\ExtensionManagementUtility::isLoaded('tt_news')) { include_once TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('tt_news') . 'lib/class.tx_ttnews_TCAform_selectTree.php'; } if (TYPO3_MODE == 'BE') { $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_kesearch_pi1_wizicon'] = $extPath . 'pi1/class.tx_kesearch_pi1_wizicon.php'; $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_kesearch_pi2_wizicon'] = $extPath . 'pi2/class.tx_kesearch_pi2_wizicon.php'; $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_kesearch_pi3_wizicon'] = $extPath . 'pi3/class.tx_kesearch_pi3_wizicon.php'; }
/** * Loads a template file and generate the content * * @param array $context datas to send * @return string */ public function fluidView($context = array()) { $renderer = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Fluid_View_TemplateView'); $controllerContext = TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Extbase_MVC_Controller_ControllerContext'); $controllerContext->setRequest(TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('Tx_Extbase_MVC_Web_Request')); $renderer->setControllerContext($controllerContext); $renderer->setPartialRootPath(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . "res/partials/"); $renderer->setTemplateRootPath(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . "res/templates/"); $renderer->setLayoutRootPath(TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($this->extKey) . "res/layouts"); $renderer->setTemplatePathAndFilename($this->template); foreach ($context as $key => $value) { $renderer->assign($key, $value); } return $renderer->render(); }
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } \TYPO3\CMS\Extbase\Utility\ExtensionUtility::registerPlugin('Winkel.' . $_EXTKEY, 'Pi1', 'Winkel TradeShow'); $pluginSignature = str_replace('_', '', $_EXTKEY) . '_' . pi1; $TCA['tt_content']['types']['list']['subtypes_addlist'][$pluginSignature] = 'pi_flexform'; TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addPiFlexFormValue($pluginSignature, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_' . pi1 . '.xml'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Winkel Trade Show'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addLLrefForTCAdescr('tx_winkeltradeshow_domain_model_tradeshow', 'EXT:winkel_tradeshow/Resources/Private/Language/locallang_csh_tx_winkeltradeshow_domain_model_tradeshow.xlf'); TYPO3\CMS\Core\Utility\ExtensionManagementUtility::allowTableOnStandardPages('tx_winkeltradeshow_domain_model_tradeshow'); $TCA['tx_winkeltradeshow_domain_model_tradeshow'] = array('ctrl' => array('title' => 'LLL:EXT:winkel_tradeshow/Resources/Private/Language/locallang_db.xlf:tx_winkeltradeshow_domain_model_tradeshow', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'dividers2tabs' => TRUE, 'sortby' => 'sorting', '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' => 'title,start_trade_show,end_trade_show,continent_trade_show,country_trade_show,city_trade_show,logo_trade_show,address_trade_show,url_trade_show,contact_trade_show,description_trade_show,google_coordinates,', 'dynamicConfigFile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'Configuration/TCA/TradeShow.php', 'iconfile' => TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extRelPath($_EXTKEY) . 'Resources/Public/Icons/tx_winkeltradeshow_domain_model_tradeshow.gif'));