当前位置: 首页>>代码示例>>PHP>>正文


PHP t3lib_extMgm::insertModuleFunction方法代码示例

本文整理汇总了PHP中t3lib_extMgm::insertModuleFunction方法的典型用法代码示例。如果您正苦于以下问题:PHP t3lib_extMgm::insertModuleFunction方法的具体用法?PHP t3lib_extMgm::insertModuleFunction怎么用?PHP t3lib_extMgm::insertModuleFunction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在t3lib_extMgm的用法示例。


在下文中一共展示了t3lib_extMgm::insertModuleFunction方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_wizardsortpages_webfunc_2', t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_wizardsortpages_webfunc_2.php', 'LLL:EXT:wizard_sortpages/locallang.php:wiz_sort', 'wiz');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_sortpages/locallang_csh.xml');
}
开发者ID:zsolt-molnar,项目名称:TYPO3-4.5-trunk,代码行数:9,代码来源:ext_tables.php

示例2: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    //	t3lib_extMgm::addModule('tools','txrealurlM1','',t3lib_extMgm::extPath($_EXTKEY).'mod1/');
    // Add Web>Info module:
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_realurl_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_realurl_modfunc1.php', 'LLL:EXT:realurl/locallang_db.xml:moduleFunction.tx_realurl_modfunc1', 'function', 'online');
}
if (version_compare(TYPO3_branch, '6.1', '<')) {
    t3lib_div::loadTCA('pages');
}
$TCA['pages']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment', 'displayCond' => 'FIELD:tx_realurl_exclude:!=:1', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')), 'tx_realurl_pathoverride' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_path_override', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_exclude' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_exclude', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))), 'tx_realurl_nocache' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_nocache', 'exclude' => 1, 'config' => array('type' => 'check', 'items' => array(array('', '')))));
$TCA['pages']['ctrl']['requestUpdate'] .= ',tx_realurl_exclude';
$TCA['pages']['palettes']['137'] = array('showitem' => 'tx_realurl_pathoverride');
if (t3lib_div::compat_version('4.3')) {
    t3lib_extMgm::addFieldsToPalette('pages', '3', 'tx_realurl_nocache', 'after:cache_timeout');
}
if (t3lib_div::compat_version('4.2')) {
    // For 4.2 or new add fields to advanced page only
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1', 'after:nav_title');
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '4,199,254', 'after:title');
} else {
    // Put it for standard page
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '2', 'after:nav_title');
    t3lib_extMgm::addToAllTCAtypes('pages', 'tx_realurl_pathsegment;;137;;,tx_realurl_exclude', '1,5,4,199,254', 'after:title');
}
t3lib_extMgm::addLLrefForTCAdescr('pages', 'EXT:realurl/locallang_csh.xml');
$TCA['pages_language_overlay']['columns'] += array('tx_realurl_pathsegment' => array('label' => 'LLL:EXT:realurl/locallang_db.xml:pages.tx_realurl_pathsegment', 'exclude' => 1, 'config' => array('type' => 'input', 'max' => 255, 'eval' => 'trim,nospace,lower')));
t3lib_extMgm::addToAllTCAtypes('pages_language_overlay', 'tx_realurl_pathsegment', '', 'after:nav_title');
开发者ID:woehrlag,项目名称:new.woehrl.de,代码行数:31,代码来源:ext_tables.php

示例3: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    $tempSetup = unserialize($_EXTCONF);
    if ($tempSetup['add_media_file_indexing']) {
        t3lib_extMgm::insertModuleFunction('txdamM1_file', 'tx_damindex_index', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc_index/class.tx_damindex_index.php', 'LLL:EXT:dam_index/modfunc_index/locallang.xml:tx_damindex_index.title');
    }
    if ($tempSetup['add_media_indexing']) {
        t3lib_extMgm::addModule('txdamM1', 'index', 'before:tools', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
        t3lib_extMgm::insertModuleFunction('txdamM1_index', 'tx_damindex_index', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc_index/class.tx_damindex_index.php', 'LLL:EXT:dam_index/modfunc_index/locallang.xml:tx_damindex_index.title');
    }
}
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:15,代码来源:ext_tables.php

示例4: die

<?php

# TYPO3 SVN ID: $Id: ext_tables.php 10211 2011-01-21 14:55:53Z flyguide $
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::addModule('web', 'layout', 'top', t3lib_extMgm::extPath($_EXTKEY) . 'layout/');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_layout', 'EXT:cms/locallang_csh_weblayout.xml');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_info', 'EXT:cms/locallang_csh_webinfo.xml');
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_cms_webinfo_page', t3lib_extMgm::extPath($_EXTKEY) . 'web_info/class.tx_cms_webinfo.php', 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_page');
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_cms_webinfo_lang', t3lib_extMgm::extPath($_EXTKEY) . 'web_info/class.tx_cms_webinfo_lang.php', 'LLL:EXT:cms/locallang_tca.xml:mod_tx_cms_webinfo_lang');
}
// Add allowed records to pages:
t3lib_extMgm::allowTableOnStandardPages('pages_language_overlay,tt_content,sys_template,sys_domain,backend_layout');
// ******************************************************************
// This is the standard TypoScript content table, tt_content
// ******************************************************************
$TCA['tt_content'] = array('ctrl' => array('label' => 'header', 'label_alt' => 'subheader,bodytext', 'sortby' => 'sorting', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'title' => 'LLL:EXT:cms/locallang_tca.xml:tt_content', 'delete' => 'deleted', 'versioningWS' => 2, 'versioning_followPages' => true, 'origUid' => 't3_origuid', 'type' => 'CType', 'hideAtCopy' => true, 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'copyAfterDuplFields' => 'colPos,sys_language_uid', 'useColumnsForDefaultValues' => 'colPos,sys_language_uid', 'shadowColumnsForNewPlaceholders' => 'colPos', 'transOrigPointerField' => 'l18n_parent', 'transOrigDiffSourceField' => 'l18n_diffsource', 'languageField' => 'sys_language_uid', 'enablecolumns' => array('disabled' => 'hidden', 'starttime' => 'starttime', 'endtime' => 'endtime', 'fe_group' => 'fe_group'), 'typeicon_column' => 'CType', 'typeicon_classes' => array('header' => 'mimetypes-x-content-header', 'textpic' => 'mimetypes-x-content-text-picture', 'image' => 'mimetypes-x-content-image', 'bullets' => 'mimetypes-x-content-list-bullets', 'table' => 'mimetypes-x-content-table', 'splash' => 'mimetypes-x-content-splash', 'uploads' => 'mimetypes-x-content-list-files', 'multimedia' => 'mimetypes-x-content-multimedia', 'media' => 'mimetypes-x-content-multimedia', 'menu' => 'mimetypes-x-content-menu', 'list' => 'mimetypes-x-content-plugin', 'mailform' => 'mimetypes-x-content-form', 'search' => 'mimetypes-x-content-form-search', 'login' => 'mimetypes-x-content-login', 'shortcut' => 'mimetypes-x-content-link', 'script' => 'mimetypes-x-content-script', 'div' => 'mimetypes-x-content-divider', 'html' => 'mimetypes-x-content-html', 'text' => 'mimetypes-x-content-text', 'default' => 'mimetypes-x-content-text'), 'typeicons' => array('header' => 'tt_content_header.gif', 'textpic' => 'tt_content_textpic.gif', 'image' => 'tt_content_image.gif', 'bullets' => 'tt_content_bullets.gif', 'table' => 'tt_content_table.gif', 'splash' => 'tt_content_news.gif', 'uploads' => 'tt_content_uploads.gif', 'multimedia' => 'tt_content_mm.gif', 'media' => 'tt_content_mm.gif', 'menu' => 'tt_content_menu.gif', 'list' => 'tt_content_list.gif', 'mailform' => 'tt_content_form.gif', 'search' => 'tt_content_search.gif', 'login' => 'tt_content_login.gif', 'shortcut' => 'tt_content_shortcut.gif', 'script' => 'tt_content_script.gif', 'div' => 'tt_content_div.gif', 'html' => 'tt_content_html.gif'), 'thumbnail' => 'image', 'requestUpdate' => 'list_type,rte_enabled', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_tt_content.php', 'dividers2tabs' => 1));
// ******************************************************************
// fe_users
// ******************************************************************
$TCA['fe_users'] = array('ctrl' => array('label' => 'username', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'fe_cruser_id' => 'fe_cruser_id', 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_users', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'disable', 'starttime' => 'starttime', 'endtime' => 'endtime'), 'typeicon_classes' => array('default' => 'status-user-frontend'), 'useColumnsForDefaultValues' => 'usergroup,lockToDomain,disable,starttime,endtime', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php', 'dividers2tabs' => 1), 'feInterface' => array('fe_admin_fieldList' => 'username,password,usergroup,name,address,telephone,fax,email,title,zip,city,country,www,company'));
// ******************************************************************
// fe_groups
// ******************************************************************
$TCA['fe_groups'] = array('ctrl' => array('label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'delete' => 'deleted', 'prependAtCopy' => 'LLL:EXT:lang/locallang_general.xml:LGL.prependAtCopy', 'enablecolumns' => array('disabled' => 'hidden'), 'title' => 'LLL:EXT:cms/locallang_tca.xml:fe_groups', 'typeicon_classes' => array('default' => 'status-user-group-frontend'), 'useColumnsForDefaultValues' => 'lockToDomain', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php', 'dividers2tabs' => 1));
// ******************************************************************
// sys_domain
// ******************************************************************
$TCA['sys_domain'] = array('ctrl' => array('label' => 'domainName', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'title' => 'LLL:EXT:cms/locallang_tca.xml:sys_domain', 'iconfile' => 'domain.gif', 'enablecolumns' => array('disabled' => 'hidden'), 'typeicon_classes' => array('default' => 'mimetypes-x-content-domain'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tbl_cms.php'));
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:31,代码来源:ext_tables.php

示例5: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // module
    t3lib_extMgm::addModulePath('tools_txsolradminM1', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
    t3lib_extMgm::addModule('tools', 'txsolradminM1', '', t3lib_extMgm::extPath($_EXTKEY) . 'mod1/');
    // module info
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_solradmin_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_solradmin_modfunc1.php', 'Solr Admin');
}
$tasks = array('sitecheck', 'post');
foreach ($tasks as $task) {
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['tx_' . $_EXTKEY . '_' . $task] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/mod1/locallang.xml:task.' . $task . '.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/mod1/locallang.xml:task.' . $task . '.description', 'additionalFields' => 'tx_' . $_EXTKEY . '_' . $task . '_fields');
}
开发者ID:Apen,项目名称:solradmin,代码行数:16,代码来源:ext_tables.php

示例6: str_replace

}
t3lib_div::loadTCA("pages_language_overlay");
t3lib_extMgm::addTCAcolumns("pages_language_overlay", $tempColumnsPages, 1);
if (version_compare(TYPO3_version, '4.5', '<')) {
    t3lib_extMgm::addToAllTCAtypes("pages_language_overlay", "tx_languagevisibility_visibility;;;;1-1-1", '', 'after:l18n_cfg');
    t3lib_extMgm::addToAllTCAtypes("pages_language_overlay", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname", '', 'before:l18n_cfg');
} else {
    t3lib_extMgm::addToAllTCAtypes("pages_language_overlay", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1", '', '');
}
t3lib_div::loadTCA("tt_news");
t3lib_extMgm::addTCAcolumns("tt_news", $tempColumnsElements, 1);
t3lib_extMgm::addToAllTCAtypes("tt_news", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1");
t3lib_div::loadTCA("tt_content");
t3lib_extMgm::addTCAcolumns("tt_content", $tempColumnsElements, 1);
if (version_compare(TYPO3_version, '4.5', '<')) {
    t3lib_extMgm::addToAllTCAtypes('tt_content', "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1,sys_language_uid,l18n_parent", '', 'before:sys_language_uid');
    $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem'] = str_replace('sys_language_uid,', '', $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem']);
    $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem'] = str_replace('l18n_parent,', '', $GLOBALS['TCA']['tt_content']['palettes']['4']['showitem']);
} else {
    t3lib_extMgm::addToAllTCAtypes("tt_content", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_visibility;;;;1-1-1,sys_language_uid,l18n_parent", '', 'before:--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.extended');
    $GLOBALS['TCA']['tt_content']['palettes']['general']['showitem'] = str_replace('sys_language_uid;LLL:EXT:cms/locallang_ttc.xml:sys_language_uid_formlabel', '', $GLOBALS['TCA']['tt_content']['palettes']['general']['showitem']);
}
$GLOBALS['TCA']['tt_content']['ctrl']['dividers2tabs'] = TRUE;
$tempColumns = array("tx_languagevisibility_allow_movecutdelete_foroverlays" => array("exclude" => 1, "label" => "LLL:EXT:languagevisibility/locallang_db.xml:be_groups.allow_movecutdelete_foroverlays:", "config" => array("type" => "check")));
t3lib_div::loadTCA("be_groups");
t3lib_extMgm::addTCAcolumns("be_groups", $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes("be_groups", "--div--;LLL:EXT:languagevisibility/locallang_db.xml:tabname,tx_languagevisibility_allow_movecutdelete_foroverlays;;;;1-1-1");
if (TYPO3_MODE == "BE") {
    t3lib_extMgm::insertModuleFunction("web_info", "tx_languagevisibility_modfunc1", t3lib_extMgm::extPath($_EXTKEY) . "modfunc1/class.tx_languagevisibility_modfunc1.php", "LLL:EXT:languagevisibility/locallang_db.xml:moduleFunction.tx_languagevisibility_modfunc1");
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['configuration'][] = 'tx_languagevisibility_reports_ConfigurationStatus';
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:31,代码来源:ext_tables.php

示例7: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
if (TYPO3_MODE == 'BE') {
    // add info module function
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_crawler_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_crawler_modfunc1.php', 'LLL:EXT:crawler/locallang_db.php:moduleFunction.tx_crawler_modfunc1');
    // add context menu item
    $GLOBALS['TBE_MODULES_EXT']['xMOD_alt_clickmenu']['extendCMclasses'][] = array('name' => 'tx_crawler_contextMenu', 'path' => t3lib_extMgm::extPath($_EXTKEY) . 'class.tx_crawler_contextMenu.php');
}
t3lib_extMgm::allowTableOnStandardPages('tx_crawler_configuration');
$TCA["tx_crawler_configuration"] = array("ctrl" => array('title' => 'LLL:EXT:crawler/locallang_db.xml:tx_crawler_configuration', 'label' => 'name', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => "ORDER BY crdate", 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_crawler_configuration.gif'), "feInterface" => array("fe_admin_fieldList" => "hidden, name, processing_instruction_filter, processing_instruction_parameters_ts, configuration, base_url, sys_domain_base_url, pidsonly, begroups,fegroups, sys_workspace_uid, realurl, chash, exclude"));
if (version_compare(TYPO3_version, '4.5.0', '<=')) {
    t3lib_div::loadTCA("tx_crawler_configuration");
    $TCA['tx_crawler_configuration']['columns']['sys_workspace_uid']['config']['items'][1] = array('LLL:EXT:lang/locallang_misc.xml:shortcut_offlineWS', -1);
}
开发者ID:bia-nca,项目名称:crawler,代码行数:17,代码来源:ext_tables.php

示例8: array

$TCA['tx_templavoila_datastructure'] = array('ctrl' => array('title' => 'LLL:EXT:templavoila/locallang_db.xml:tx_templavoila_datastructure', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_ds.gif', 'selicon_field' => 'previewicon', 'selicon_field_path' => 'uploads/tx_templavoila', 'versioningWS' => TRUE, 'origUid' => 't3_origuid', 'shadowColumnsForNewPlaceholders' => 'scope,title'));
t3lib_extMgm::allowTableOnStandardPages('tx_templavoila_datastructure');
t3lib_extMgm::allowTableOnStandardPages('tx_templavoila_tmplobj');
// Adding access list to be_groups
t3lib_div::loadTCA('be_groups');
$tempColumns = array('tx_templavoila_access' => array('label' => 'LLL:EXT:templavoila/locallang_db.xml:be_groups.tx_templavoila_access', 'config' => array('type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_templavoila_datastructure,tx_templavoila_tmplobj', 'prepend_tname' => 1, 'size' => 5, 'autoSizeMax' => 15, 'multiple' => 1, 'minitems' => 0, 'maxitems' => 1000, 'show_thumbs' => 1)));
t3lib_extMgm::addTCAcolumns('be_groups', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('be_groups', 'tx_templavoila_access;;;;1-1-1', '1');
// Adding the new content element, "Flexible Content":
t3lib_div::loadTCA('tt_content');
$tempColumns = array('tx_templavoila_ds' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_ds', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_datastructure', 'foreign_table_where' => 'AND tx_templavoila_datastructure.pid=###STORAGE_PID### AND tx_templavoila_datastructure.scope IN (2) ORDER BY tx_templavoila_datastructure.sorting', 'allowNonIdValues' => 1, 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->main_scope2', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_to' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_to', 'displayCond' => 'FIELD:tx_templavoila_ds:REQ:true', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_tmplobj', 'foreign_table_where' => 'AND tx_templavoila_tmplobj.pid=###STORAGE_PID### AND tx_templavoila_tmplobj.datastructure=\'###REC_FIELD_tx_templavoila_ds###\' AND tx_templavoila_tmplobj.parent=0 ORDER BY tx_templavoila_tmplobj.sorting', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_flex' => array('l10n_cat' => 'text', 'exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_flex', 'displayCond' => 'FIELD:tx_templavoila_ds:REQ:true', 'config' => array('type' => 'flex', 'ds_pointerField' => 'tx_templavoila_ds', 'ds_tableField' => 'tx_templavoila_datastructure:dataprot')), 'tx_templavoila_pito' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:tt_content.tx_templavoila_pito', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->pi_templates', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)));
t3lib_extMgm::addTCAcolumns('tt_content', $tempColumns, 1);
$TCA['tt_content']['types'][$_EXTKEY . '_pi1']['showitem'] = 'CType;;4;button;1-1-1, header;;3;;2-2-2,tx_templavoila_ds,tx_templavoila_to,tx_templavoila_flex;;;;2-2-2, hidden;;1;;3-3-3';
t3lib_extMgm::addPlugin(array('LLL:EXT:templavoila/locallang_db.xml:tt_content.CType_pi1', $_EXTKEY . '_pi1'), 'CType');
if ($TCA['tt_content']['ctrl']['requestUpdate'] != '') {
    $TCA['tt_content']['ctrl']['requestUpdate'] .= ',';
}
$TCA['tt_content']['ctrl']['requestUpdate'] .= 'tx_templavoila_ds';
// For pages:
$tempColumns = array('tx_templavoila_ds' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_ds', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_datastructure', 'foreign_table_where' => 'AND tx_templavoila_datastructure.pid=###STORAGE_PID### AND tx_templavoila_datastructure.scope IN (1) ORDER BY tx_templavoila_datastructure.sorting', 'allowNonIdValues' => 1, 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->main_scope1', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'suppress_icons' => 'IF_VALUE_FALSE')), 'tx_templavoila_to' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_to', 'displayCond' => 'FIELD:tx_templavoila_ds:REQ:true', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_tmplobj', 'foreign_table_where' => 'AND tx_templavoila_tmplobj.pid=###STORAGE_PID### AND tx_templavoila_tmplobj.datastructure=\'###REC_FIELD_tx_templavoila_ds###\' AND tx_templavoila_tmplobj.parent=0 ORDER BY tx_templavoila_tmplobj.sorting', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_next_ds' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_next_ds', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_datastructure', 'foreign_table_where' => 'AND tx_templavoila_datastructure.pid=###STORAGE_PID### AND tx_templavoila_datastructure.scope IN (1) ORDER BY tx_templavoila_datastructure.sorting', 'allowNonIdValues' => 1, 'itemsProcFunc' => 'tx_templavoila_handleStaticdatastructures->main_scope1', 'size' => 1, 'minitems' => 0, 'maxitems' => 1, 'suppress_icons' => 'IF_VALUE_FALSE')), 'tx_templavoila_next_to' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_next_to', 'displayCond' => 'FIELD:tx_templavoila_next_ds:REQ:true', 'config' => array('type' => 'select', 'items' => array(array('', 0)), 'foreign_table' => 'tx_templavoila_tmplobj', 'foreign_table_where' => 'AND tx_templavoila_tmplobj.pid=###STORAGE_PID### AND tx_templavoila_tmplobj.datastructure=\'###REC_FIELD_tx_templavoila_next_ds###\' AND tx_templavoila_tmplobj.parent=0 ORDER BY tx_templavoila_tmplobj.sorting', 'size' => 1, 'minitems' => 0, 'maxitems' => 1)), 'tx_templavoila_flex' => array('exclude' => 1, 'label' => 'LLL:EXT:templavoila/locallang_db.xml:pages.tx_templavoila_flex', 'config' => array('type' => 'flex', 'ds_pointerField' => 'tx_templavoila_ds', 'ds_pointerField_searchParent' => 'pid', 'ds_pointerField_searchParent_subField' => 'tx_templavoila_next_ds', 'ds_tableField' => 'tx_templavoila_datastructure:dataprot')));
t3lib_extMgm::addTCAcolumns('pages', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_templavoila_ds;;;;1-1-1,tx_templavoila_to,tx_templavoila_next_ds,tx_templavoila_next_to,tx_templavoila_flex;;;;1-1-1');
if ($TCA['pages']['ctrl']['requestUpdate'] != '') {
    $TCA['pages']['ctrl']['requestUpdate'] .= ',';
}
$TCA['pages']['ctrl']['requestUpdate'] .= 'tx_templavoila_ds,tx_templavoila_next_ds';
// Configure the referencing wizard to be used in the web_func module:
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_templavoila_referenceElementsWizard', t3lib_extMgm::extPath($_EXTKEY) . 'func_wizards/class.tx_templavoila_referenceelementswizard.php', 'LLL:EXT:templavoila/locallang.xml:wiz_refElements', 'wiz');
    t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func', 'EXT:wizard_crpages/locallang_csh.xml');
}
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:31,代码来源:ext_tables.php

示例9: die

<?php

if (!defined("TYPO3_MODE")) {
    die("Access denied.");
}
if (TYPO3_MODE == "BE") {
    // TYPO3 CMS >= 6.0
    if (class_exists('\\TYPO3\\CMS\\Core\\Utility\\ExtensionManagementUtility')) {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModule('tools', 'txkickstarter', '', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/');
    } else {
        t3lib_extMgm::insertModuleFunction("tools_em", "tx_kickstarter_modfunc1", t3lib_extMgm::extPath($_EXTKEY) . "modfunc1/class.tx_kickstarter_modfunc1.php", "LLL:EXT:kickstarter/locallang_db.xml:moduleFunction.tx_kickstarter_modfunc1");
        t3lib_extMgm::insertModuleFunction("tools_em", "tx_kickstarter_modfunc2", t3lib_extMgm::extPath($_EXTKEY) . "modfunc1/class.tx_kickstarter_modfunc1.php", "LLL:EXT:kickstarter/locallang_db.xml:moduleFunction.tx_kickstarter_modfunc2", 'singleDetails');
    }
}
开发者ID:jaguerra,项目名称:TYPO3-Kickstarter,代码行数:14,代码来源:ext_tables.php

示例10: register_editor

 /**
  * Register a class which renders a "editor".
  * A editor is something that modifies a file. This can be a text editor or a module to crop an image.
  *
  * @param	string		$idName This is the ID of the editor. Chars allowed only: [a-zA-z]
  * @param	string		$class Function/Method reference, '[file-reference":"]["&"]class'. See t3lib_div::callUserFunction().
  * @param	string		$position can be used to set the position of a new item within the list of existing items. $position has this syntax: [cmd]:[item-key]. cmd can be "after", "before" or "top" (or "bottom"/blank which is default). If "after"/"before" then submodule will be inserted after/before the existing item with [item-key] if found. If not found, the bottom of list. If "top" the item is inserted in the top of the item list.
  * @return	void
  */
 function register_editor($idName, $classRef, $position = '')
 {
     tx_dam::_addItem($idName, $classRef, $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['dam']['editorClasses'], $position);
     // an editor is also and module function so we register it here
     if (strstr($classRef, ':')) {
         list($file, $class) = t3lib_div::revExplode(':', $classRef, 2);
         $requireFile = t3lib_div::getFileAbsFileName($file);
     } else {
         $class = $classRef;
     }
     // Check for persistent object token, "&"
     if (substr($class, 0, 1) == '&') {
         $class = substr($class, 1);
     }
     // register module function
     t3lib_extMgm::insertModuleFunction('txdamM1_edit', $class, $requireFile, 'LLL:EXT:dam/mod_edit/locallang.xml:tx_dam_edit.title');
 }
开发者ID:NaveedWebdeveloper,项目名称:Test,代码行数:26,代码来源:class.tx_dam.php

示例11: isset

	unset($TCA['pages']['columns']['tx_templavoila_next_to']['displayCond']);
}

	// Configure the referencing wizard to be used in the web_func module:
if (TYPO3_MODE=='BE')	{
	t3lib_extMgm::insertModuleFunction(
		'web_func',
		'tx_templavoila_referenceElementsWizard',
		t3lib_extMgm::extPath($_EXTKEY).'func_wizards/class.tx_templavoila_referenceelementswizard.php',
		'LLL:EXT:templavoila/locallang.xml:wiz_refElements',
		'wiz'
	);
	t3lib_extMgm::insertModuleFunction(
		'web_func',
		'tx_templavoila_renameFieldInPageFlexWizard',
		t3lib_extMgm::extPath($_EXTKEY).'func_wizards/class.tx_templavoila_renamefieldinpageflexwizard.php',
		'LLL:EXT:templavoila/locallang.xml:wiz_renameFieldsInPage',
		'wiz'
	);
	t3lib_extMgm::addLLrefForTCAdescr('_MOD_web_func','EXT:wizard_crpages/locallang_csh.xml');
}
	// complex condition to make sure the icons are available during frontend editing...
if (TYPO3_MODE == 'BE' ||
	(TYPO3_MODE == 'FE' && isset($GLOBALS['BE_USER']) && method_exists($GLOBALS['BE_USER'], 'isFrontendEditingActive')  && $GLOBALS['BE_USER']->isFrontendEditingActive())
) {
	$icons = array(
		'paste' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_pasteafter.gif',
		'pasteSubRef' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_pastesubref.gif',
		'makelocalcopy' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/makelocalcopy.gif',
		'clip_ref' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_ref.gif',
		'clip_ref-release' => t3lib_extMgm::extRelPath('templavoila') . 'mod1/clip_ref_h.gif',
开发者ID:rafu1987,项目名称:t3bootstrap-project,代码行数:31,代码来源:ext_tables.php

示例12: die

<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Adding Web>Info module for SEO management
if (TYPO3_MODE == 'BE') {
    t3lib_extMgm::insertModuleFunction('web_info', 'tx_seobasics_modfunc1', t3lib_extMgm::extPath($_EXTKEY) . 'modfunc1/class.tx_seobasics_modfunc1.php', 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:moduleFunction.tx_seobasics_modfunc1', 'function', 'online');
}
// Adding title tag field to pages TCA
$tmpCol = array('tx_seo_titletag' => array('exclude' => 1, 'label' => 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:pages.titletag', 'config' => array('type' => 'input', 'size' => '70', 'max' => '255', 'eval' => 'trim')), 'tx_seo_canonicaltag' => array('exclude' => 1, 'label' => 'LLL:EXT:seo_basics/Resources/Private/Language/db.xml:pages.canonicaltag', 'config' => array('type' => 'input', 'size' => '70', 'max' => '255', 'eval' => 'trim')));
t3lib_extMgm::addTCAcolumns('pages', $tmpCol, 1);
t3lib_extMgm::addTCAcolumns('pages_language_overlay', $tmpCol, 1);
t3lib_extMgm::addToAllTCAtypes('pages', 'tx_seo_titletag;;;;, tx_seo_canonicaltag', 1, 'before:keywords');
t3lib_extMgm::addToAllTCAtypes('pages_language_overlay', 'tx_seo_titletag, tx_seo_canonicaltag, nav_title, tx_realurl_pathsegment;;;;', "4,5", 'after:subtitle');
$TCA['pages_language_overlay']['interface']['showRecordFieldList'] .= ',tx_seo_titletag, tx_seo_canonicaltag';
// Adding a static template TypoScript configuration from static/
t3lib_extMgm::addStaticFile($_EXTKEY, 'static', 'Metatags and XML Sitemap');
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:18,代码来源:ext_tables.php

示例13: array

t3lib_div::loadTCA('fe_groups');
t3lib_extMgm::addTCAcolumns('fe_groups', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('fe_groups', 'tx_odsosm_marker;;;;1-1-1');
t3lib_div::loadTCA('tt_address_group');
t3lib_extMgm::addTCAcolumns('tt_address_group', $tempColumns, 1);
t3lib_extMgm::addToAllTCAtypes('tt_address_group', 'tx_odsosm_marker;;;;1-1-1');
/* --------------------------------------------------
	New tables
-------------------------------------------------- */
$TCA['tx_odsosm_geocache'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_geocache', 'label' => 'zip', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => '', 'default_sortby' => 'ORDER BY zip', 'delete' => 'deleted', 'rootLevel' => 1, 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_geocache.png'));
$TCA['tx_odsosm_layer'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_layer', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'sortby' => 'sorting', 'delete' => 'deleted', 'rootLevel' => 1, 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_layer.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_marker');
$TCA['tx_odsosm_marker'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_marker', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_marker.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_track');
t3lib_extMgm::addToInsertRecords('tx_odsosm_track');
$TCA['tx_odsosm_track'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_track', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_track.png'));
t3lib_extMgm::allowTableOnStandardPages('tx_odsosm_vector');
t3lib_extMgm::addToInsertRecords('tx_odsosm_vector');
$TCA['tx_odsosm_vector'] = array('ctrl' => array('title' => 'LLL:EXT:ods_osm/locallang_db.xml:tx_odsosm_vector', 'label' => 'title', 'tstamp' => 'tstamp', 'crdate' => 'crdate', 'cruser_id' => 'cruser_id', 'default_sortby' => 'ORDER BY title', 'delete' => 'deleted', 'enablecolumns' => array('disabled' => 'hidden'), 'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'tca.php', 'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'icon_tx_odsosm_vector.png'));
/* --------------------------------------------------
	Plugin
-------------------------------------------------- */
t3lib_div::loadTCA('tt_content');
t3lib_extMgm::addPlugin(array('LLL:EXT:ods_osm/locallang_db.xml:tt_content.list_type_pi1', $_EXTKEY . '_pi1', t3lib_extMgm::extRelPath($_EXTKEY) . 'ext_icon.gif'), 'list_type');
t3lib_extMgm::addPiFlexFormValue($_EXTKEY . '_pi1', 'FILE:EXT:' . $_EXTKEY . '/pi1/flexform.xml');
$TCA['tt_content']['types']['list']['subtypes_addlist'][$_EXTKEY . '_pi1'] = 'pi_flexform';
$TCA['tt_content']['types']['list']['subtypes_excludelist'][$_EXTKEY . '_pi1'] = 'layout,select_key,pages,recursive';
if (TYPO3_MODE == 'BE') {
    $TBE_MODULES_EXT['xMOD_db_new_content_el']['addElClasses']['tx_odsosm_pi1_wizicon'] = t3lib_extMgm::extPath($_EXTKEY) . 'pi1/class.tx_odsosm_pi1_wizicon.php';
    t3lib_extMgm::insertModuleFunction('web_func', 'tx_odsosm_geocodeWizard', t3lib_extMgm::extPath($_EXTKEY) . 'func_wizards/class.tx_odsosm_geocodeWizard.php', 'LLL:EXT:ods_osm/locallang.xml:wiz_geocode', 'wiz');
}
开发者ID:fabianlipp,项目名称:ods_osm,代码行数:31,代码来源:ext_tables.php

示例14: array

        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexQueue', array('index,initializeIndexQueue'));
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexMaintenance', array('index,cleanUpIndex,emptyIndex,reloadIndexConfiguration'));
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'IndexFields', array('index'));
        ApacheSolrForTypo3\Solr\Backend\SolrModule\AdministrationModuleManager::registerModule('ApacheSolrForTypo3.' . $_EXTKEY, 'Synonyms', array('index,addSynonyms,deleteSynonyms'));
    } else {
        t3lib_extMgm::addModulePath('tools_txsolrMAdmin', t3lib_extMgm::extPath($_EXTKEY) . 'ModAdmin/');
        t3lib_extMgm::addModule('tools', 'txsolrMAdmin', '', t3lib_extMgm::extPath($_EXTKEY) . 'ModAdmin/');
    }
    // registering reports
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_reports']['status']['providers']['solr'] = array('Tx_Solr_Report_SchemaStatus', 'Tx_Solr_Report_SolrconfigStatus', 'Tx_Solr_Report_SolrConfigurationStatus', 'Tx_Solr_Report_SolrStatus', 'Tx_Solr_Report_SolrVersionStatus', 'Tx_Solr_Report_AccessFilterPluginInstalledStatus', 'Tx_Solr_Report_AllowUrlFOpenStatus', 'Tx_Solr_Report_FilterVarStatus');
    if (t3lib_utility_VersionNumber::convertVersionNumberToInteger(TYPO3_version) < 6000000) {
        // registering the index report with the reports module
        $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['reports']['tx_solr']['index'] = array('title' => 'LLL:EXT:solr/Resources/Private/Language/ModuleReports.xml:index_title', 'description' => 'LLL:EXT:solr/Resources/Private/Language/ModuleReports.xml:index_description', 'report' => 'Tx_Solr_Report_IndexReport', 'icon' => 'EXT:solr/Report/tx_solr_report.gif');
    }
    // Index Inspector
    t3lib_extMgm::insertModuleFunction('web_info', 'Tx_Solr_ModIndex_IndexInspector', $GLOBALS['PATH_solr'] . 'ModIndex/IndexInspector.php', 'LLL:EXT:solr/Resources/Private/Language/Backend.xml:module_indexinspector');
    // register Clear Cache Menu hook
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['additionalBackendItems']['cacheActions']['clearSolrConnectionCache'] = '&Tx_Solr_ConnectionManager';
    // register Clear Cache Menu ajax call
    $TYPO3_CONF_VARS['BE']['AJAX']['solr::clearSolrConnectionCache'] = 'Tx_Solr_ConnectionManager->updateConnections';
    // hooking into TCE Main to monitor record updates that may require reindexing by the index queue
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = 'Tx_Solr_IndexQueue_RecordMonitor';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'Tx_Solr_IndexQueue_RecordMonitor';
    // hooking into TCE Main to monitor record updates that may require deleting documents from the index
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'][] = '&Tx_Solr_GarbageCollector';
    $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = '&Tx_Solr_GarbageCollector';
}
# ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- # ----- #
// register click menu item to initialize the Solr connections for a single site
// visible for admin users only
t3lib_extMgm::addUserTSConfig('
开发者ID:raimundlandig,项目名称:winkel.de-DEV,代码行数:31,代码来源:ext_tables.php


注:本文中的t3lib_extMgm::insertModuleFunction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。