本文整理汇总了PHP中t3lib_extMgm::getCN方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::getCN方法的具体用法?PHP t3lib_extMgm::getCN怎么用?PHP t3lib_extMgm::getCN使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类t3lib_extMgm
的用法示例。
在下文中一共展示了t3lib_extMgm::getCN方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: die
<?php
if (!defined("TYPO3_MODE")) {
die("Access denied.");
}
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_vm19hnlinks_urls=1
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_vm19hnlinks_pi1 = < plugin.tx_vm19hnlinks_pi1.CSS_editor\n", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, "pi1/class.tx_vm19hnlinks_pi1.php", "_pi1", "list_type", 1);
t3lib_extMgm::addTypoScript($_EXTKEY, "setup", "\n\ttt_content.shortcut.20.0.conf.tx_vm19hnlinks_urls = < plugin." . t3lib_extMgm::getCN($_EXTKEY) . "_pi1\n\ttt_content.shortcut.20.0.conf.tx_vm19hnlinks_urls.CMD = singleView\n", 43);
示例2:
');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_dlcubenewsletters_presse_ids=1
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
tt_content.CSS_editor.ch.tx_dlcubenewsletters_pi1 = < plugin.tx_dlcubenewsletters_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_dlcubenewsletters_pi1.php', '_pi1', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_topnews_ids = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_topnews_ids.CMD = singleView
', 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
tt_content.CSS_editor.ch.tx_dlcubenewsletters_pi2 = < plugin.tx_dlcubenewsletters_pi2.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.tx_dlcubenewsletters_pi2.php', '_pi2', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_region_ids = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi2
tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_region_ids.CMD = singleView
', 43);
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
tt_content.CSS_editor.ch.tx_dlcubenewsletters_pi3 = < plugin.tx_dlcubenewsletters_pi3.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi3/class.tx_dlcubenewsletters_pi3.php', '_pi3', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_presse_ids = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi3
tt_content.shortcut.20.0.conf.tx_dlcubenewsletters_presse_ids.CMD = singleView
', 43);
示例3: die
<?php
# TYPO3 CVS ID: $Id: ext_localconf.php 944 2003-12-29 16:50:17Z typo3 $
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_newloginbox_pi1.php', '_pi1', 'list_type', 0);
// Extending TypoScript from static template uid=43
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
tt_content.CSS_editor.ch.tx_newloginbox_pi3 = < plugin.tx_newloginbox_pi3.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi3/class.tx_newloginbox_pi3.php', '_pi3', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.fe_users = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi3
tt_content.shortcut.20.0.conf.fe_users.CMD = singleView
', 43);
示例4: array
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/feeds/class.tx_dlf_feeds.php', '_feeds', 'list_type', FALSE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/listview/class.tx_dlf_listview.php', '_listview', 'list_type', FALSE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/metadata/class.tx_dlf_metadata.php', '_metadata', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/navigation/class.tx_dlf_navigation.php', '_navigation', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/oai/class.tx_dlf_oai.php', '_oai', 'list_type', FALSE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/pagegrid/class.tx_dlf_pagegrid.php', '_pagegrid', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/pageview/class.tx_dlf_pageview.php', '_pageview', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/search/class.tx_dlf_search.php', '_search', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/statistics/class.tx_dlf_statistics.php', '_statistics', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/toc/class.tx_dlf_toc.php', '_toc', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/toolbox/class.tx_dlf_toolbox.php', '_toolbox', 'list_type', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/validator/class.tx_dlf_validator.php', '_validator', 'list_type', FALSE);
// Register tools for toolbox plugin.
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/pdf/class.tx_dlf_toolsPdf.php', '_toolsPdf', '', TRUE);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/toolbox/tools/fulltext/class.tx_dlf_toolsFulltext.php', '_toolsFulltext', '', TRUE);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/plugins/toolbox/tools'][t3lib_extMgm::getCN($_EXTKEY) . '_toolsPdf'] = 'LLL:EXT:dlf/locallang.xml:tx_dlf_toolbox.toolsPdf';
// Register hooks.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_dlf_tcemain.php:tx_dlf_tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_dlf_tcemain.php:tx_dlf_tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['dlf/common/class.tx_dlf_document.php']['hookClass'][] = 'EXT:' . $_EXTKEY . '/hooks/class.tx_dlf_hacks.php:tx_dlf_hacks';
// Register command line scripts.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys'][$_EXTKEY] = array('EXT:' . $_EXTKEY . '/cli/class.tx_dlf_cli.php', '_CLI_dlf');
// Register AJAX eID handlers.
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_search_suggest'] = 'EXT:' . $_EXTKEY . '/plugins/search/class.tx_dlf_search_suggest.php';
$GLOBALS['TYPO3_CONF_VARS']['FE']['eID_include']['tx_dlf_fulltext_eid'] = 'EXT:' . $_EXTKEY . '/plugins/pageview/class.tx_dlf_fulltext_eid.php';
if (TYPO3_MODE === 'FE') {
/*
* docType user function to use in typoscript:
*
* STORAGEID: uid of dlf storage folder
* DOCTYPE: document type string to test
示例5: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_myquizpoll_question=1
');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_myquizpoll_category=1
');
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_myquizpoll_pi1.php', '_pi1', 'list_type', 0);
$TYPO3_CONF_VARS['FE']['eID_include']['myquizpoll_eID'] = 'EXT:myquizpoll/pi1/poll_eID.php';
$TYPO3_CONF_VARS['FE']['eID_include']['myquiz_eID'] = 'EXT:myquizpoll/pi1/quiz_eID.php';
$TYPO3_CONF_VARS['FE']['eID_include']['starrating'] = 'EXT:myquizpoll/pi1/class.tx_myquizpoll_eidstarrating.php';
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.tx_myquizpoll_question = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
tt_content.shortcut.20.0.conf.tx_myquizpoll_question.CMD = singleView
', 43);
示例6: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, 'editorcfg', '
tt_content.CSS_editor.ch.tx_ketroubletickets_pi1 = < plugin.tx_ketroubletickets_pi1.CSS_editor
', 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_ketroubletickets_pi1.php', '_pi1', 'list_type', 0);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi2/class.tx_ketroubletickets_pi2.php', '_pi2', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.tx_ketroubletickets_tickets = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
tt_content.shortcut.20.0.conf.tx_ketroubletickets_tickets.CMD = singleView
', 43);
t3lib_extMgm::addPageTSConfig('
# ***************************************************************************************
# CONFIGURATION of RTE in table "tx_ketroubletickets_tickets", field "description"
# ***************************************************************************************
RTE.config.tx_ketroubletickets_tickets.description {
hidePStyleItems = H1, H4, H5, H6
proc.exitHTMLparser_db=1
proc.exitHTMLparser_db {
keepNonMatchedTags=1
tags.font.allowedAttribs= color
tags.font.rmTagIfNoAttrib = 1
tags.font.nesting = global
}
}
');
示例7: loadViewHelper
protected function loadViewHelper($helperKey)
{
if (isset($this->loadedHelperFiles[strtolower($helperKey)])) {
return $this->loadedHelperFiles[strtolower($helperKey)]['class'];
}
foreach ($this->viewHelperIncludePath as $extensionKey => $viewHelperPath) {
$viewHelperRealPath = $viewHelperPath;
if (t3lib_div::isFirstPartOfStr($viewHelperPath, 'Classes/')) {
$viewHelperRealPath = substr($viewHelperPath, 8);
}
if (substr($viewHelperRealPath, -1) == '/') {
$viewHelperRealPath = substr($viewHelperRealPath, 0, -1);
}
$classNamePrefix = t3lib_extMgm::getCN($extensionKey);
$possibleFilename = Tx_Solr_Util::underscoredToUpperCamelCase($helperKey) . '.php';
$possibleClassName = $classNamePrefix . '_' . str_replace('/', '_', $viewHelperRealPath) . '_' . Tx_Solr_Util::underscoredToUpperCamelCase($helperKey);
$viewHelperIncludePath = t3lib_extMgm::extPath($extensionKey) . $viewHelperPath . $possibleFilename;
if (file_exists($viewHelperIncludePath)) {
include_once $viewHelperIncludePath;
$this->loadedHelperFiles[strtolower($helperKey)] = array('file' => $viewHelperIncludePath, 'class' => $possibleClassName);
return $possibleClassName;
}
}
// viewhelper could not be found
return FALSE;
}
示例8: extensionAction
/**
* Extension action, displays extension report
*
* @return void
*/
public function extensionAction()
{
$values = array();
// FIXME: It's unclear to me how to get this value programmatically
// There is a getArgumentPrefix method, but that only applies to widgets
$values['argumentPrefix'] = 'tx_smoothmigration_tools_smoothmigrationsmoothmigration';
// List of frontend extensions
$loadedExtensions = Tx_Smoothmigration_Utility_ExtensionUtility::getFrontendExtensions(FALSE);
$this->view->assign('loadedExtensions', $loadedExtensions);
$selectedExtension = '';
if ($this->request->hasArgument('extension')) {
$selectedExtension = $this->request->getArgument('extension');
}
// List of sites
$sites = Tx_Smoothmigration_Utility_DatabaseUtility::getSiteRoots();
$selectSites = array();
foreach ($sites as $siteUid => $siteData) {
$selectSites[$siteUid] = $siteUid . ': ' . $siteData['title'];
}
$values['sites'] = $selectSites;
$selectedSite = '';
if ($this->request->hasArgument('site')) {
$selectedSite = $this->request->getArgument('site');
$values['selectedSite'] = $selectedSite;
}
if ($selectedSite && $selectedExtension != 1) {
// Get TypoScript configuration for selected site
if (count($sites) && $selectedSite) {
$tmpl = t3lib_div::makeInstance('t3lib_tsparser_ext');
$tmpl->tt_track = 0;
$tmpl->init();
$tmpl->runThroughTemplates(t3lib_BEfunc::BEgetRootLine((int) $selectedSite, 'AND 1=1'), 0);
$tmpl->generateConfig();
}
// Fetch correct class names
$correctClassNames = array();
if ($selectedExtension) {
$correctClassNames[$selectedExtension] = t3lib_extMgm::getCN($selectedExtension);
} else {
$extensionKeys = Tx_Smoothmigration_Utility_ExtensionUtility::getLoadedExtensions();
foreach ($extensionKeys as $key) {
$correctClassNames[$key] = t3lib_extMgm::getCN($key);
}
}
$listTypes = array();
$values['plugins'] = array();
// For all the root plugin objects in the plugin array
foreach ($tmpl->setup['plugin.'] as $name => $_) {
$name = rtrim($name, '.');
// Store the matching extension key with the plugin name
foreach ($correctClassNames as $key => $className) {
if (strstr($name, $className)) {
$values['plugins'][$name] = $key;
$suffix = str_replace($className, '', $name);
$listTypes[] = $key . $suffix;
}
}
}
asort($values['plugins']);
$pluginNames = array_keys($values['plugins']);
// This catches Powermail which has it's own ctype which it calls powermail_pi1
$values['cTypes'] = array();
foreach ($pluginNames as $name) {
array_push($values['cTypes'], str_replace('tx_', '', $name));
}
// Fetch list types, initialize with legacy tt_news list_type: 9
$values['listTypes'] = array();
if ($selectedExtension === 'tt_news') {
$values['listTypes'] = array('9');
}
foreach ($tmpl->setup['tt_content.']['list.']['20.'] as $listType => $_) {
if (preg_match('/^[^.]+$/', $listType)) {
foreach ($values['plugins'] as $correctedClassName) {
if (preg_match('/^' . $correctedClassName . '/', $listType)) {
$values['listTypes'][] = $listType;
}
}
}
}
asort($values['listTypes']);
$values['pages'] = array();
if (count($values['listTypes']) || count($values['cTypes'])) {
$values['pages'] = Tx_Smoothmigration_Utility_DatabaseUtility::getPagesWithContentElements($values['cTypes'], $values['listTypes']);
}
$pages = array();
foreach ($values['pages'] as $page) {
$this->setInPageArray($pages, t3lib_BEfunc::BEgetRootLine($page['pageUid'], 'AND 1=1'), $page);
}
$lines = array();
$lines[] = '<tr class="t3-row-header">
<td nowrap>Page title</td>
<td nowrap>' . $GLOBALS['LANG']->getLL('isExt') . '</td>
</tr>';
$lines = array_merge($lines, $this->renderList($pages));
$values['table'] = '<table border="0" cellpadding="0" cellspacing="1" id="ts-overview">' . implode('', $lines) . '</table>';
//.........这里部分代码省略.........
示例9: array
options.saveDocNew.tx_seminars_foods=1
');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_seminars_target_groups=1
');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_seminars_categories=1
');
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_seminars_skills=1
');
// Adds our custom function to a hook in t3lib/class.t3lib_tcemain.php
// Used for post-validation of fields in back-end forms.
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:seminars/class.tx_seminars_tcemain.php:tx_seminars_tcemainprocdm';
t3lib_extMgm::addPItoST43($_EXTKEY, 'FrontEnd/DefaultController.php', '_pi1', 'list_type', 0);
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1.userFunc = tx_seminars_FrontEnd_DefaultController->main
', 43);
if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) >= 6002000) {
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.conf.tx_seminars_seminars = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
tt_content.shortcut.20.conf.tx_seminars_seminars.CMD = singleView
', 43);
} else {
t3lib_extMgm::addTypoScript($_EXTKEY, 'setup', '
tt_content.shortcut.20.0.conf.tx_seminars_seminars = < plugin.' . t3lib_extMgm::getCN($_EXTKEY) . '_pi1
tt_content.shortcut.20.0.conf.tx_seminars_seminars.CMD = singleView
', 43);
}
// registers the seminars command line interface
$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['seminars'] = array('EXT:seminars/cli/tx_seminars_cli.php', '_CLI_seminars');
示例10: die
<?php
if (!defined("TYPO3_MODE")) {
die("Access denied.");
}
t3lib_extMgm::addUserTSConfig('
options.saveDocNew.tx_veguestbook_entries=1
');
t3lib_extMgm::addPageTSConfig('
# ***************************************************************************************
# CONFIGURATION of RTE in table "tx_veguestbook_entries", field "entry"
# ***************************************************************************************
RTE.config.tx_veguestbook_entries.entry {
hidePStyleItems = H1, H4, H5, H6
proc.exitHTMLparser_db=1
proc.exitHTMLparser_db {
keepNonMatchedTags=1
tags.font.allowedAttribs= color
tags.font.rmTagIfNoAttrib = 1
tags.font.nesting = global
}
}
');
## Extending TypoScript from static template uid=43 to set up userdefined tag:
t3lib_extMgm::addTypoScript($_EXTKEY, "editorcfg", "\n\ttt_content.CSS_editor.ch.tx_veguestbook_pi1 = < plugin.tx_veguestbook_pi1.CSS_editor\n", 43);
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_veguestbook_pi1.php', '_pi1', 'list_type', 1);
t3lib_extMgm::addTypoScript($_EXTKEY, "setup", "\n\ttt_content.shortcut.20.0.conf.tx_veguestbook_entries = < plugin." . t3lib_extMgm::getCN($_EXTKEY) . "_pi1\n\ttt_content.shortcut.20.0.conf.tx_veguestbook_entries.CMD = singleView\n", 43);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['ve_guestbook_pi1'][] = 'EXT:ve_guestbook/class.tx_veguestbook_cms_layout.php:tx_veguestbook_cms_layout->getExtensionSummary';