Commit be9be683 authored by flyguide's avatar flyguide

fix indentation

git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/terfe/branches/ter_fe2@64106 735d13b6-9817-0410-8766-e36946ffe9aa
parent adf5fcc3
This diff is collapsed.
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
// Make plugin available in frontend
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Pi1',
array(
'Extension' => 'index, search, show, new, create, edit, update, delete, download, list, listLatest',
'Category' => 'list, new, create, edit, update, delete, show',
'Tag' => 'list, new, create, edit, update, delete, show',
'Author' => 'list, edit, update, show',
'Media' => 'list, new, create, edit, update, delete, show',
// 'Registerkey' => 'index, create, manage, update, edit, transfer, delete',
'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, salvage',
'Review' => 'update',
),
array(
'Extension' => 'search, create, update, delete, download',
'Category' => 'create, update, delete',
'Tag' => 'create, delete',
'Author' => 'update',
'Media' => 'create, delete',
// 'Registerkey' => 'index, create, manage, update, edit, transfer, delete',
'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, salvage',
'Review' => 'update',
)
);
// Make plugin available in frontend
Tx_Extbase_Utility_Extension::configurePlugin(
$_EXTKEY,
'Pi1',
array(
'Extension' => 'index, search, show, new, create, edit, update, delete, download, list, listLatest',
'Category' => 'list, new, create, edit, update, delete, show',
'Tag' => 'list, new, create, edit, update, delete, show',
'Author' => 'list, edit, update, show',
'Media' => 'list, new, create, edit, update, delete, show',
# 'Registerkey' => 'index, create, manage, update, edit, transfer, delete',
'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, salvage',
'Review' => 'update',
),
array(
'Extension' => 'search, create, update, delete, download',
'Category' => 'create, update, delete',
'Tag' => 'create, delete',
'Author' => 'update',
'Media' => 'create, delete',
# 'Registerkey' => 'index, create, manage, update, edit, transfer, delete',
'Registerkey' => 'index, admin, deleteExtensionVersion, create, manage, transfer, delete, salvage',
'Review' => 'update',
)
);
// Register extension providers
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders'])) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders'] = array();
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders']['mirrors'] = array(
'class' => 'Tx_TerFe2_Provider_MirrorProvider',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_provider_mirrorprovider.name',
'configuration' => array(
'repositoryId' => 1,
'fileCachePath' => 'typo3temp/tx_terfe2/files/',
),
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders']['file'] = array(
'class' => 'Tx_TerFe2_Provider_FileProvider',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_provider_fileprovider.name',
'configuration' => array(
'extensionRootPath' => 'fileadmin/ter/',
),
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders']['soap'] = array(
'class' => 'Tx_TerFe2_Provider_SoapProvider',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_provider_soapprovider.name',
'configuration' => array(
'wsdlUrl' => '',
'username' => '',
'password' => '',
'getExtensionsFunc' => 'getExtensions',
'getFileUrlFunc' => 'getFileUrl',
'getFileNameFunc' => 'getFileName',
'getVersionDetailsFunc' => 'getVersionDetails',
),
);
// Register extension providers
if (!isset($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders'])) {
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders'] = array();
}
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders']['mirrors'] = array(
'class' => 'Tx_TerFe2_Provider_MirrorProvider',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_provider_mirrorprovider.name',
'configuration' => array(
'repositoryId' => 1,
'fileCachePath' => 'typo3temp/tx_terfe2/files/',
),
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders']['file'] = array(
'class' => 'Tx_TerFe2_Provider_FileProvider',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_provider_fileprovider.name',
'configuration' => array(
'extensionRootPath' => 'fileadmin/ter/',
),
);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS'][$_EXTKEY]['extensionProviders']['soap'] = array(
'class' => 'Tx_TerFe2_Provider_SoapProvider',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_provider_soapprovider.name',
'configuration' => array(
'wsdlUrl' => '',
'username' => '',
'password' => '',
'getExtensionsFunc' => 'getExtensions',
'getFileUrlFunc' => 'getFileUrl',
'getFileNameFunc' => 'getFileName',
'getVersionDetailsFunc' => 'getVersionDetails',
),
);
// Register create zip archives task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_CreateExtensionFilesTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_createextensionfilestask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_createextensionfilestask.description',
'additionalFields' => 'tx_terfe2_task_createextensionfilestaskadditionalfieldprovider',
);
// Register create zip archives task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_CreateExtensionFilesTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_createextensionfilestask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_createextensionfilestask.description',
'additionalFields' => 'tx_terfe2_task_createextensionfilestaskadditionalfieldprovider',
);
// Register extension list update task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_UpdateExtensionListTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updateextensionlisttask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updateextensionlisttask.description',
'additionalFields' => 'tx_terfe2_task_updateextensionlisttaskadditionalfieldprovider',
);
// Register extension list update task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_UpdateExtensionListTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updateextensionlisttask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updateextensionlisttask.description',
'additionalFields' => 'tx_terfe2_task_updateextensionlisttaskadditionalfieldprovider',
);
// Register update downloads task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_UpdateDetailsTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updatedetailstask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updatedetailstask.description',
'additionalFields' => 'tx_terfe2_task_updatedetailstaskadditionalfieldprovider',
);
// Register update downloads task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_UpdateDetailsTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updatedetailstask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_updatedetailstask.description',
'additionalFields' => 'tx_terfe2_task_updatedetailstaskadditionalfieldprovider',
);
// Register search index task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_SearchIndexTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_searchindextask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_searchindextask.description',
'additionalFields' => 'tx_terfe2_task_searchindextaskadditionalfieldprovider',
);
// Register search index task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_TerFe2_Task_SearchIndexTask'] = array(
'extension' => $_EXTKEY,
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_searchindextask.name',
'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_task_searchindextask.description',
'additionalFields' => 'tx_terfe2_task_searchindextaskadditionalfieldprovider',
);
?>
\ No newline at end of file
<?php
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
if (!defined ('TYPO3_MODE')) {
die ('Access denied.');
}
// Add plugin to list
Tx_Extbase_Utility_Extension::registerPlugin(
$_EXTKEY,
'Pi1',
'TER Frontend Index'
);
// Add plugin to list
Tx_Extbase_Utility_Extension::registerPlugin(
$_EXTKEY,
'Pi1',
'TER Frontend Index'
);
// Add static TypoScript files
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Default/', 'TER Frontend - Default Configuration');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Rss/', 'TER Frontend - RSS Output');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Json/', 'TER Frontend - JSON Output');
// Add static TypoScript files
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Default/', 'TER Frontend - Default Configuration');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Rss/', 'TER Frontend - RSS Output');
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript/Json/', 'TER Frontend - JSON Output');
// Add flexform to field list of the Backend form
$extIdent = strtolower(t3lib_div::underscoredToUpperCamelCase($_EXTKEY)) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$extIdent] = 'layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extIdent] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($extIdent, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
// Add flexform to field list of the Backend form
$extIdent = strtolower(t3lib_div::underscoredToUpperCamelCase($_EXTKEY)) . '_pi1';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist'][$extIdent] = 'layout,select_key,recursive';
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist'][$extIdent] = 'pi_flexform';
t3lib_extMgm::addPiFlexFormValue($extIdent, 'FILE:EXT:' . $_EXTKEY . '/Configuration/FlexForms/flexform_list.xml');
// Domain models and their label / search fields
$models = array(
'extension' => array('ext_key', 'ext_key'),
'category' => array('title', 'title,description'),
'tag' => array('title', 'title'),
'version' => array('title', 'title,description,state,em_category'),
'media' => array('title', 'title,type,language,source,description'),
'experience' => array('date_time', 'comment'),
'relation' => array('relation_key', 'relation_type,relation_key'),
'author' => array('name', 'name,email,username'),
);
// Domain models and their label / search fields
$models = array(
'extension' => array('ext_key', 'ext_key'),
'category' => array('title', 'title,description'),
'tag' => array('title', 'title'),
'version' => array('title', 'title,description,state,em_category'),
'media' => array('title', 'title,type,language,source,description'),
'experience' => array('date_time', 'comment'),
'relation' => array('relation_key', 'relation_type,relation_key'),
'author' => array('name', 'name,email,username'),
);
// Add entities and value objects
foreach ($models as $modelName => $modelConfiguration) {
// Add help text to the Backend form
t3lib_extMgm::addLLrefForTCAdescr(
'tx_terfe2_domain_model_' . $modelName,
'EXT:ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_' . $modelName . '.xml'
);
// Allow datasets on standard pages
t3lib_extMgm::allowTableOnStandardPages('tx_terfe2_domain_model_' . $modelName);
// Add entities and value objects
foreach ($models as $modelName => $modelConfiguration) {
// Add help text to the Backend form
t3lib_extMgm::addLLrefForTCAdescr(
'tx_terfe2_domain_model_' . $modelName,
'EXT:ter_fe2/Resources/Private/Language/locallang_csh_tx_terfe2_domain_model_' . $modelName . '.xml'
);
// Add table configuration
$GLOBALS['TCA']['tx_terfe2_domain_model_' . $modelName] = array (
'ctrl' => array (
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_' . $modelName,
'label' => $modelConfiguration[0],
'searchFields' => $modelConfiguration[1],
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/' . ucfirst($modelName) . '.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/' . $modelName . '.gif',
),
);
}
// Allow datasets on standard pages
t3lib_extMgm::allowTableOnStandardPages('tx_terfe2_domain_model_' . $modelName);
// Add table configuration for the search index table
$GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array (
// Add table configuration
$GLOBALS['TCA']['tx_terfe2_domain_model_' . $modelName] = array (
'ctrl' => array (
'hideTable' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Search.php',
'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_terfe2_domain_model_' . $modelName,
'label' => $modelConfiguration[0],
'searchFields' => $modelConfiguration[1],
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'versioningWS' => 2,
'versioning_followPages' => TRUE,
'origUid' => 't3_origuid',
'languageField' => 'sys_language_uid',
'transOrigPointerField' => 'l18n_parent',
'transOrigDiffSourceField' => 'l18n_diffsource',
'delete' => 'deleted',
'enablecolumns' => array(
'disabled' => 'hidden'
),
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/' . ucfirst($modelName) . '.php',
'iconfile' => t3lib_extMgm::extRelPath($_EXTKEY) . 'Resources/Public/Icons/' . $modelName . '.gif',
),
);
}
// Add plugin to new content element wizard
t3lib_extMgm::addPageTSConfig("
mod.wizards.newContentElement.wizardItems.special {\n
elements." . $extIdent . " {\n
icon = " . t3lib_extMgm::extRelPath($_EXTKEY) . "Resources/Public/Images/Wizard.gif\n
title = LLL:EXT:" . $_EXTKEY . "/Resources/Private/Language/locallang_db.xml:newContentElement.wizardItem.title\n
description = LLL:EXT:" . $_EXTKEY . "/Resources/Private/Language/locallang_db.xml:newContentElement.wizardItem.description\n\n
tt_content_defValues {\n
CType = list\n
list_type = " . $extIdent . "\n
}\n
}\n\n
show := addToList(" . $extIdent . ")\n
}
");
// Add table configuration for the search index table
$GLOBALS['TCA']['tx_terfe2_domain_model_search'] = array (
'ctrl' => array (
'hideTable' => TRUE,
'tstamp' => 'tstamp',
'crdate' => 'crdate',
'dynamicConfigFile' => t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/TCA/Search.php',
),
);
// Add plugin to new content element wizard
t3lib_extMgm::addPageTSConfig("
mod.wizards.newContentElement.wizardItems.special {\n
elements." . $extIdent . " {\n
icon = " . t3lib_extMgm::extRelPath($_EXTKEY) . "Resources/Public/Images/Wizard.gif\n
title = LLL:EXT:" . $_EXTKEY . "/Resources/Private/Language/locallang_db.xml:newContentElement.wizardItem.title\n
description = LLL:EXT:" . $_EXTKEY . "/Resources/Private/Language/locallang_db.xml:newContentElement.wizardItem.description\n\n
tt_content_defValues {\n
CType = list\n
list_type = " . $extIdent . "\n
}\n
}\n\n
show := addToList(" . $extIdent . ")\n
}
");
?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment