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
<?php
$extensionClassesPath = t3lib_extMgm::extPath('ter_fe2', 'Classes/');
$extensionClassesPath = t3lib_extMgm::extPath('ter_fe2', 'Classes/');
return array(
'tx_terfe2_controller_abstractcontroller' => $extensionClassesPath . 'Controller/AbstractController.php',
'tx_terfe2_controller_abstractterbasedcontroller' => $extensionClassesPath . 'Controller/AbstractTerBasedController.php',
'tx_terfe2_controller_authorcontroller' => $extensionClassesPath . 'Controller/AuthorController.php',
'tx_terfe2_controller_categorycontroller' => $extensionClassesPath . 'Controller/CategoryController.php',
'tx_terfe2_controller_extensioncontroller' => $extensionClassesPath . 'Controller/ExtensionController.php',
'tx_terfe2_controller_mediacontroller' => $extensionClassesPath . 'Controller/MediaController.php',
'tx_terfe2_controller_registerkeycontroller' => $extensionClassesPath . 'Controller/RegisterkeyController.php',
'tx_terfe2_controller_reviewcontroller' => $extensionClassesPath . 'Controller/ReviewController.php',
'tx_terfe2_controller_tagcontroller' => $extensionClassesPath . 'Controller/TagController.php',
'tx_terfe2_domain_model_abstractentity' => $extensionClassesPath . 'Domain/Model/AbstractEntity.php',
'tx_terfe2_domain_model_abstractvalueobject' => $extensionClassesPath . 'Domain/Model/AbstractValueObject.php',
'tx_terfe2_domain_model_author' => $extensionClassesPath . 'Domain/Model/Author.php',
'tx_terfe2_domain_model_category' => $extensionClassesPath . 'Domain/Model/Category.php',
'tx_terfe2_domain_model_experience' => $extensionClassesPath . 'Domain/Model/Experience.php',
'tx_terfe2_domain_model_extension' => $extensionClassesPath . 'Domain/Model/Extension.php',
'tx_terfe2_domain_model_extensionmanagercacheentry' => $extensionClassesPath . 'Domain/Model/ExtensionManagerCacheEntry.php',
'tx_terfe2_domain_model_media' => $extensionClassesPath . 'Domain/Model/Media.php',
'tx_terfe2_domain_model_relation' => $extensionClassesPath . 'Domain/Model/Relation.php',
'tx_terfe2_domain_model_search' => $extensionClassesPath . 'Domain/Model/Search.php',
'tx_terfe2_domain_model_tag' => $extensionClassesPath . 'Domain/Model/Tag.php',
'tx_terfe2_domain_model_version' => $extensionClassesPath . 'Domain/Model/Version.php',
'tx_terfe2_domain_repository_abstractrepository' => $extensionClassesPath . 'Domain/Repository/AbstractRepository.php',
'tx_terfe2_domain_repository_authorrepository' => $extensionClassesPath . 'Domain/Repository/AuthorRepository.php',
'tx_terfe2_domain_repository_categoryrepository' => $extensionClassesPath . 'Domain/Repository/CategoryRepository.php',
'tx_terfe2_domain_repository_extensionmanagercacheentryrepository' => $extensionClassesPath . 'Domain/Repository/ExtensionManagerCacheEntryRepository.php',
'tx_terfe2_domain_repository_extensionrepository' => $extensionClassesPath . 'Domain/Repository/ExtensionRepository.php',
'tx_terfe2_domain_repository_mediarepository' => $extensionClassesPath . 'Domain/Repository/MediaRepository.php',
'tx_terfe2_domain_repository_searchrepository' => $extensionClassesPath . 'Domain/Repository/SearchRepository.php',
'tx_terfe2_domain_repository_tagrepository' => $extensionClassesPath . 'Domain/Repository/TagRepository.php',
'tx_terfe2_domain_repository_versionrepository' => $extensionClassesPath . 'Domain/Repository/VersionRepository.php',
'tx_terfe2_provider_abstractprovider' => $extensionClassesPath . 'Provider/AbstractProvider.php',
'tx_terfe2_provider_mirrorprovider' => $extensionClassesPath . 'Provider/MirrorProvider.php',
'tx_terfe2_provider_fileprovider' => $extensionClassesPath . 'Provider/FileProvider.php',
'tx_terfe2_provider_providerinterface' => $extensionClassesPath . 'Provider/ProviderInterface.php',
'tx_terfe2_provider_providermanager' => $extensionClassesPath . 'Provider/ProviderManager.php',
'tx_terfe2_provider_soapprovider' => $extensionClassesPath . 'Provider/SoapProvider.php',
'tx_terfe2_object_objectbuilder' => $extensionClassesPath . 'Object/ObjectBuilder.php',
'tx_terfe2_persistence_abstractpersistence' => $extensionClassesPath . 'Persistence/AbstractPersistence.php',
'tx_terfe2_persistence_persistenceinterface' => $extensionClassesPath . 'Persistence/PersistenceInterface.php',
'tx_terfe2_persistence_registry' => $extensionClassesPath . 'Persistence/Registry.php',
'tx_terfe2_persistence_session' => $extensionClassesPath . 'Persistence/Session.php',
'tx_terfe2_service_documentation' => $extensionClassesPath . 'Service/Documentation.php',
'tx_terfe2_service_image' => $extensionClassesPath . 'Service/Image.php',
'tx_terfe2_service_mirror' => $extensionClassesPath . 'Service/Mirror.php',
'tx_terfe2_service_soap' => $extensionClassesPath . 'Service/Soap.php',
'tx_terfe2_service_ter' => $extensionClassesPath . 'Service/Ter.php',
'tx_terfe2_task_abstracttask' => $extensionClassesPath . 'Task/AbstractTask.php',
'tx_terfe2_task_abstractadditionalfieldprovider' => $extensionClassesPath . 'Task/AbstractAdditionalFieldProvider.php',
'tx_terfe2_task_createextensionfilestask' => $extensionClassesPath . 'Task/CreateExtensionFilesTask.php',
'tx_terfe2_task_createextensionfilestaskadditionalfieldprovider' => $extensionClassesPath . 'Task/CreateExtensionFilesTaskAdditionalFieldProvider.php',
'tx_terfe2_task_updatedetailstask' => $extensionClassesPath . 'Task/UpdateDetailsTask.php',
'tx_terfe2_task_updatedetailstaskadditionalfieldprovider' => $extensionClassesPath . 'Task/UpdateDetailsTaskAdditionalFieldProvider.php',
'tx_terfe2_task_updateextensionlisttask' => $extensionClassesPath . 'Task/UpdateExtensionListTask.php',
'tx_terfe2_task_updateextensionlisttaskadditionalfieldprovider' => $extensionClassesPath . 'Task/UpdateExtensionListTaskAdditionalFieldProvider.php',
'tx_terfe2_task_searchindextask' => $extensionClassesPath . 'Task/SearchIndexTask.php',
'tx_terfe2_task_searchindextaskadditionalfieldprovider' => $extensionClassesPath . 'Task/SearchIndexTaskAdditionalFieldProvider.php',
'tx_terfe2_utility_archive' => $extensionClassesPath . 'Utility/Archive.php',
'tx_terfe2_utility_array' => $extensionClassesPath . 'Utility/Array.php',
'tx_terfe2_utility_datetime' => $extensionClassesPath . 'Utility/Datetime.php',
'tx_terfe2_utility_file' => $extensionClassesPath . 'Utility/File.php',
'tx_terfe2_utility_log' => $extensionClassesPath . 'Utility/Log.php',
'tx_terfe2_utility_typoscript' => $extensionClassesPath . 'Utility/TypoScript.php',
'tx_terfe2_utility_version' => $extensionClassesPath . 'Utility/Version.php',
'tx_terfe2_view_extension_listjson' => $extensionClassesPath . 'View/Extension/ListJson.php',
'tx_terfe2_view_extension_listlatestjson' => $extensionClassesPath . 'View/Extension/ListLatestJson.php',
'tx_terfe2_viewhelpers_cdataviewhelper' => $extensionClassesPath . 'ViewHelpers/CdataViewHelper.php',
'tx_terfe2_viewhelpers_chartviewhelper' => $extensionClassesPath . 'ViewHelpers/ChartViewHelper.php',
'tx_terfe2_viewhelpers_cropviewhelper' => $extensionClassesPath . 'ViewHelpers/CropViewHelper.php',
'tx_terfe2_viewhelpers_datetimeviewhelper' => $extensionClassesPath . 'ViewHelpers/DateTimeViewHelper.php',
'tx_terfe2_viewhelpers_documentationlinkviewhelper' => $extensionClassesPath . 'ViewHelpers/DocumentationLinkViewHelper.php',
'tx_terfe2_viewhelpers_extensioniconviewhelper' => $extensionClassesPath . 'ViewHelpers/ExtensionIconViewHelper.php',
'tx_terfe2_viewhelpers_extensionimageviewhelper' => $extensionClassesPath . 'ViewHelpers/ExtensionImageViewHelper.php',
'tx_terfe2_viewhelpers_filesizeviewhelper' => $extensionClassesPath . 'ViewHelpers/FilesizeViewHelper.php',
'tx_terfe2_viewhelpers_formatviewhelper' => $extensionClassesPath . 'ViewHelpers/FormatViewHelper.php',
'tx_terfe2_viewhelpers_rawviewhelper' => $extensionClassesPath . 'ViewHelpers/RawViewHelper.php',
);
return array(
'tx_terfe2_controller_abstractcontroller' => $extensionClassesPath . 'Controller/AbstractController.php',
'tx_terfe2_controller_abstractterbasedcontroller' => $extensionClassesPath . 'Controller/AbstractTerBasedController.php',
'tx_terfe2_controller_authorcontroller' => $extensionClassesPath . 'Controller/AuthorController.php',
'tx_terfe2_controller_categorycontroller' => $extensionClassesPath . 'Controller/CategoryController.php',
'tx_terfe2_controller_extensioncontroller' => $extensionClassesPath . 'Controller/ExtensionController.php',
'tx_terfe2_controller_mediacontroller' => $extensionClassesPath . 'Controller/MediaController.php',
'tx_terfe2_controller_registerkeycontroller' => $extensionClassesPath . 'Controller/RegisterkeyController.php',
'tx_terfe2_controller_reviewcontroller' => $extensionClassesPath . 'Controller/ReviewController.php',
'tx_terfe2_controller_tagcontroller' => $extensionClassesPath . 'Controller/TagController.php',
'tx_terfe2_domain_model_abstractentity' => $extensionClassesPath . 'Domain/Model/AbstractEntity.php',
'tx_terfe2_domain_model_abstractvalueobject' => $extensionClassesPath . 'Domain/Model/AbstractValueObject.php',
'tx_terfe2_domain_model_author' => $extensionClassesPath . 'Domain/Model/Author.php',
'tx_terfe2_domain_model_category' => $extensionClassesPath . 'Domain/Model/Category.php',
'tx_terfe2_domain_model_experience' => $extensionClassesPath . 'Domain/Model/Experience.php',
'tx_terfe2_domain_model_extension' => $extensionClassesPath . 'Domain/Model/Extension.php',
'tx_terfe2_domain_model_extensionmanagercacheentry' => $extensionClassesPath . 'Domain/Model/ExtensionManagerCacheEntry.php',
'tx_terfe2_domain_model_media' => $extensionClassesPath . 'Domain/Model/Media.php',
'tx_terfe2_domain_model_relation' => $extensionClassesPath . 'Domain/Model/Relation.php',
'tx_terfe2_domain_model_search' => $extensionClassesPath . 'Domain/Model/Search.php',
'tx_terfe2_domain_model_tag' => $extensionClassesPath . 'Domain/Model/Tag.php',
'tx_terfe2_domain_model_version' => $extensionClassesPath . 'Domain/Model/Version.php',
'tx_terfe2_domain_repository_abstractrepository' => $extensionClassesPath . 'Domain/Repository/AbstractRepository.php',
'tx_terfe2_domain_repository_authorrepository' => $extensionClassesPath . 'Domain/Repository/AuthorRepository.php',
'tx_terfe2_domain_repository_categoryrepository' => $extensionClassesPath . 'Domain/Repository/CategoryRepository.php',
'tx_terfe2_domain_repository_extensionmanagercacheentryrepository' => $extensionClassesPath . 'Domain/Repository/ExtensionManagerCacheEntryRepository.php',
'tx_terfe2_domain_repository_extensionrepository' => $extensionClassesPath . 'Domain/Repository/ExtensionRepository.php',
'tx_terfe2_domain_repository_mediarepository' => $extensionClassesPath . 'Domain/Repository/MediaRepository.php',
'tx_terfe2_domain_repository_searchrepository' => $extensionClassesPath . 'Domain/Repository/SearchRepository.php',
'tx_terfe2_domain_repository_tagrepository' => $extensionClassesPath . 'Domain/Repository/TagRepository.php',
'tx_terfe2_domain_repository_versionrepository' => $extensionClassesPath . 'Domain/Repository/VersionRepository.php',
'tx_terfe2_provider_abstractprovider' => $extensionClassesPath . 'Provider/AbstractProvider.php',
'tx_terfe2_provider_mirrorprovider' => $extensionClassesPath . 'Provider/MirrorProvider.php',
'tx_terfe2_provider_fileprovider' => $extensionClassesPath . 'Provider/FileProvider.php',
'tx_terfe2_provider_providerinterface' => $extensionClassesPath . 'Provider/ProviderInterface.php',
'tx_terfe2_provider_providermanager' => $extensionClassesPath . 'Provider/ProviderManager.php',
'tx_terfe2_provider_soapprovider' => $extensionClassesPath . 'Provider/SoapProvider.php',
'tx_terfe2_object_objectbuilder' => $extensionClassesPath . 'Object/ObjectBuilder.php',
'tx_terfe2_persistence_abstractpersistence' => $extensionClassesPath . 'Persistence/AbstractPersistence.php',
'tx_terfe2_persistence_persistenceinterface' => $extensionClassesPath . 'Persistence/PersistenceInterface.php',
'tx_terfe2_persistence_registry' => $extensionClassesPath . 'Persistence/Registry.php',
'tx_terfe2_persistence_session' => $extensionClassesPath . 'Persistence/Session.php',
'tx_terfe2_service_documentation' => $extensionClassesPath . 'Service/Documentation.php',
'tx_terfe2_service_image' => $extensionClassesPath . 'Service/Image.php',
'tx_terfe2_service_mirror' => $extensionClassesPath . 'Service/Mirror.php',
'tx_terfe2_service_soap' => $extensionClassesPath . 'Service/Soap.php',
'tx_terfe2_service_ter' => $extensionClassesPath . 'Service/Ter.php',
'tx_terfe2_task_abstracttask' => $extensionClassesPath . 'Task/AbstractTask.php',
'tx_terfe2_task_abstractadditionalfieldprovider' => $extensionClassesPath . 'Task/AbstractAdditionalFieldProvider.php',
'tx_terfe2_task_createextensionfilestask' => $extensionClassesPath . 'Task/CreateExtensionFilesTask.php',
'tx_terfe2_task_createextensionfilestaskadditionalfieldprovider' => $extensionClassesPath . 'Task/CreateExtensionFilesTaskAdditionalFieldProvider.php',
'tx_terfe2_task_updatedetailstask' => $extensionClassesPath . 'Task/UpdateDetailsTask.php',
'tx_terfe2_task_updatedetailstaskadditionalfieldprovider' => $extensionClassesPath . 'Task/UpdateDetailsTaskAdditionalFieldProvider.php',
'tx_terfe2_task_updateextensionlisttask' => $extensionClassesPath . 'Task/UpdateExtensionListTask.php',
'tx_terfe2_task_updateextensionlisttaskadditionalfieldprovider' => $extensionClassesPath . 'Task/UpdateExtensionListTaskAdditionalFieldProvider.php',
'tx_terfe2_task_searchindextask' => $extensionClassesPath . 'Task/SearchIndexTask.php',
'tx_terfe2_task_searchindextaskadditionalfieldprovider' => $extensionClassesPath . 'Task/SearchIndexTaskAdditionalFieldProvider.php',
'tx_terfe2_utility_archive' => $extensionClassesPath . 'Utility/Archive.php',
'tx_terfe2_utility_array' => $extensionClassesPath . 'Utility/Array.php',
'tx_terfe2_utility_datetime' => $extensionClassesPath . 'Utility/Datetime.php',
'tx_terfe2_utility_file' => $extensionClassesPath . 'Utility/File.php',
'tx_terfe2_utility_log' => $extensionClassesPath . 'Utility/Log.php',
'tx_terfe2_utility_typoscript' => $extensionClassesPath . 'Utility/TypoScript.php',
'tx_terfe2_utility_version' => $extensionClassesPath . 'Utility/Version.php',
'tx_terfe2_view_extension_listjson' => $extensionClassesPath . 'View/Extension/ListJson.php',
'tx_terfe2_view_extension_listlatestjson' => $extensionClassesPath . 'View/Extension/ListLatestJson.php',
'tx_terfe2_viewhelpers_cdataviewhelper' => $extensionClassesPath . 'ViewHelpers/CdataViewHelper.php',
'tx_terfe2_viewhelpers_chartviewhelper' => $extensionClassesPath . 'ViewHelpers/ChartViewHelper.php',
'tx_terfe2_viewhelpers_cropviewhelper' => $extensionClassesPath . 'ViewHelpers/CropViewHelper.php',
'tx_terfe2_viewhelpers_datetimeviewhelper' => $extensionClassesPath . 'ViewHelpers/DateTimeViewHelper.php',
'tx_terfe2_viewhelpers_documentationlinkviewhelper' => $extensionClassesPath . 'ViewHelpers/DocumentationLinkViewHelper.php',
'tx_terfe2_viewhelpers_extensioniconviewhelper' => $extensionClassesPath . 'ViewHelpers/ExtensionIconViewHelper.php',
'tx_terfe2_viewhelpers_extensionimageviewhelper' => $extensionClassesPath . 'ViewHelpers/ExtensionImageViewHelper.php',
'tx_terfe2_viewhelpers_filesizeviewhelper' => $extensionClassesPath . 'ViewHelpers/FilesizeViewHelper.php',
'tx_terfe2_viewhelpers_formatviewhelper' => $extensionClassesPath . 'ViewHelpers/FormatViewHelper.php',
'tx_terfe2_viewhelpers_rawviewhelper' => $extensionClassesPath . 'ViewHelpers/RawViewHelper.php',
);
?>
\ No newline at end of file
<?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