Esempio n. 1
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Display', array('Podcast' => 'index,show'), array('Podcast' => ''));
require t3lib_extMgm::extPath($_EXTKEY) . 'Configuration/RealURL/default.php';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass']['podcast'] = 'EXT:podcast/Classes/Utilities/Backend/EpisodePostProcessor.php:Tx_Podcast_Utilities_EpisodePostProcessor';
Esempio n. 2
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Selector' => 'list'), array('Selector' => ''));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi2', array('Form' => 'list,sendmail'), array('Form' => 'list,sendmail'));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi3', array('Link' => 'list'), array('Link' => 'list'));
Esempio n. 3
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Events', array('Course' => 'list,show', 'Event' => 'list, show, new, create, edit, update, delete', 'Person' => 'list, show, new, create, edit, update, delete', 'Location' => 'list, show, new, create, edit, update, delete', 'Reservation' => 'list, show, new, create, edit, update, delete', 'Categories' => 'list'), array('Course' => 'list,show', 'Event' => 'list, show, create, update, delete', 'Person' => 'create, update, delete', 'Location' => 'create, update, delete', 'Reservation' => 'create, update, delete', 'Categories' => ''));
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, '', array('Address' => 'list, show', 'StaticCountry' => 'list, show'), array('Address' => '', 'StaticCountry' => ''));
Esempio n. 5
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('EventIndex' => 'dispatch', 'Event' => 'dispatch', 'Category' => 'show'), array());
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi2', array('EventAdministration' => 'list,new,create,edit,update,delete'), array('EventAdministration' => 'list,new,create,edit,update,delete'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_CzSimpleCal_Scheduler_Index'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:tx_czsimplecal_scheduler_index.label', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_mod.xml:tx_czsimplecal_scheduler_index.description', 'additionalFields' => 'tx_czsimplecal_scheduler_index');
// add default pageTSConfig
t3lib_extMgm::addPageTSConfig(file_get_contents(t3lib_extMgm::extPath('cz_simple_cal') . 'Configuration/TSconfig/default.txt'));
Esempio n. 6
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Subscriptionform', array('Member' => 'subscribe'), array('Member' => 'subscribe'));
// EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is
// overwritten with the defaults of the extension builder
// add a hook to sr_feuser_register
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['sr_feuser_register']['tx_srfeuserregister_pi1']['registrationProcess'][] = 'EXT:hrinewsletter/Classes/Hook/SrFeuserRegister.php:Tx_Hrinewsletter_Hook_SrFeuserRegister';
if (TYPO3_MODE === 'FE') {
    /* @var $renderer t3lib_PageRenderer */
    $renderer = t3lib_div::makeInstance('t3lib_PageRenderer');
    // $renderer->addCssFile(t3lib_extMgm::siteRelPath($_EXTKEY) .
    // 'Resources/Public/Css/seo.css');
    $renderer->addCssFile(t3lib_extMgm::siteRelPath($_EXTKEY) . 'Resources/Public/Css/hrinewsletter.css');
}
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Sitemap
 */
require_once t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider.php');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/Pages.php'), 'Tx_GoogleServices_Service_SitemapProvider_Pages');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/News.php'), 'Tx_GoogleServices_Service_SitemapProvider_News');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/Sitemap.php'), 'Tx_GoogleServices_Service_SitemapProvider_Sitemap');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/LanguagePages.php'), 'Tx_GoogleServices_Service_SitemapProvider_LanguagePages');
Tx_GoogleServices_Service_SitemapProvider::addProvider(t3lib_extMgm::extPath('google_services', 'Classes/Service/SitemapProvider/FalImages.php'), 'Tx_GoogleServices_Service_SitemapProvider_FalImages');
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'piSitemap', array('Sitemap' => 'index'), array('Sitemap' => 'index'));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'piDocument', array('Document' => 'index'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info']['googleservices_pisitemap'][] = t3lib_extMgm::extPath('google_services', 'Classes/Hooks/CmsLayout.php') . ':Tx_GoogleServices_Hooks_CmsLayout->renderSitemapPlugin';
 */
Tx_Extbase_Utility_Extension::configurePlugin(
	$_EXTKEY,
	'Pi1',
	array(
		'Forms' => 'form, create, confirmation, optinConfirm'
	),
	array(
		'Forms' => $uncachedFormActions
	)
);
Tx_Extbase_Utility_Extension::configurePlugin(
	$_EXTKEY,
	'Pi2',
	array(
		'Output' => 'list, show, edit, update, export, rss'
	),
	array(
		'Output' => 'list, edit, update, export, rss'
	)
);

/**
 * Hooking for PluginInfo
 */
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$_EXTKEY . '_pi1'][$_EXTKEY] =
	'EXT:' . $_EXTKEY . '/Classes/Utility/PluginInfo.php:Tx_Powermail_Utility_PluginInfo->getInfo';

/**
 * Hooking for first fill of marker field in backend
 */
$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] =
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('NewYearsHeader' => 'index'), array('NewYearsHeader' => 'index'));
Esempio n. 10
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array(), array());
if (TYPO3_MODE === 'FE') {
    /* @var $renderer t3lib_PageRenderer */
    $renderer = t3lib_div::makeInstance('t3lib_PageRenderer');
    // $renderer->addCssFile(t3lib_extMgm::siteRelPath($_EXTKEY) . 'Resources/Public/Css/seo.css');
    // append as last:
    $renderer->addHeaderData('<link rel="stylesheet" type="text/css" href="typo3conf/ext/hriyaml/Resources/Public/Css/mobile.css" media="all" />');
}
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Extension manager configuration
require_once t3lib_extMgm::extPath('news') . 'Classes/Utility/EmConfiguration.php';
$configuration = Tx_News_Utility_EmConfiguration::getSettings();
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('News' => 'list,detail,dateMenu,searchForm,searchResult', 'Category' => 'list', 'Tag' => 'list'), array('News' => 'searchForm,searchResult'));
// Page module hook
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['cms/layout/class.tx_cms_layout.php']['list_type_Info'][$_EXTKEY . '_pi1'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Hooks/CmsLayout.php:Tx_News_Hooks_CmsLayout->getExtensionSummary';
// Preview of news records
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Hooks/Tcemain.php:Tx_News_Hooks_Tcemain';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['clearCachePostProc'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Cache/ClassCacheBuilder.php:Tx_News_Cache_ClassCacheBuilder->build';
// Tceforms: Rendering of fields
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getSingleFieldClass'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Hooks/Tceforms.php:Tx_News_Hooks_Tceforms';
// Modify flexform values
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_befunc.php']['getFlexFormDSClass'][$_EXTKEY] = 'EXT:' . $_EXTKEY . '/Classes/Hooks/T3libBefunc.php:Tx_News_Hooks_T3libBefunc';
/* ===========================================================================
	Custom cache, done with the caching framework
=========================================================================== */
$cachingTableName = 'news_categorycache';
if (!is_array($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName])) {
    $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName] = array();
}
// Define string frontend as default frontend, this must be set with TYPO3 4.5 and below
// and overrides the default variable frontend of 4.6
if (!isset($TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['frontend'])) {
    $TYPO3_CONF_VARS['SYS']['caching']['cacheConfigurations'][$cachingTableName]['frontend'] = 't3lib_cache_frontend_StringFrontend';
}
if (Tx_News_Utility_Compatibility::convertVersionNumberToInteger(TYPO3_version) < '4006000') {
Esempio n. 12
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Theanswer', array('Answer' => 'show'), array('Answer' => ''));
Esempio n. 13
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Flatmgrpay', array('Booking' => 'new, create, confirm, scan'), array('Booking' => 'new, create, confirm, scan'));
if (t3lib_extMgm::isLoaded('paymentlib', true)) {
    require_once t3lib_extMgm::extPath('paymentlib') . 'lib/class.tx_paymentlib_providerfactory.php';
}
if (TYPO3_MODE === 'FE') {
    /* @var $renderer t3lib_PageRenderer */
    $renderer = t3lib_div::makeInstance('t3lib_PageRenderer');
    $renderer->addJsFile(t3lib_extMgm::siteRelPath($_EXTKEY) . 'Resources/Public/Js/flatmgrpay.js');
    // append as last:
    // $renderer->addHeaderData('<link rel="stylesheet" type="text/css" href="typo3conf/ext/hriyaml/Resources/Public/Css/mobile.css" media="all" />')
}
Esempio n. 14
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Profile', array('User' => 'show,edit,update,editPassword,updatePassword,closeAccount,disable,activateAccount,changePassword,doChangePassword'), array('User' => 'show,edit,update,editPassword,updatePassword,closeAccount,disable,activateAccount,changePassword,doChangePassword'));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Widget', array('User' => 'info,login,authenticate,logout,new,create,forgotPassword,resetPassword'), array('User' => 'info,login,authenticate,logout,new,create,forgotPassword,resetPassword'));
$TYPO3_CONF_VARS['FE']['addRootLineFields'] .= ',tx_ajaxlogin_sectionreload';
$TYPO3_CONF_VARS['EXTCONF']['ajaxlogin']['redirectUrl_postProcess'] = array();
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Configure the Plugin to call the
 * right combination of Controller and Action according to
 * the user input (default settings, FlexForm, URL etc.)
 */
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Agency' => 'index,show,edit,list,update', 'Reference' => 'index,filter,show,new,search,create,preview,remove,delete,edit,update,deactivate,reactivate,categories,sort'), array('Agency' => '', 'Reference' => 'create,filter'));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi2', array('Agency' => 'enterCode,verifyCode,new,create,enterInformation,updateNewAgency,enterApprovalData,sendApprovalData'), array('Agency' => 'enterCode,verifyCode,new,create,enterInformation,updateNewAgency,enterApprovalData,sendApprovalData'));
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi3', array('Reference' => 'slider'), array());
/**
 * Scheduler Cron Job
 */
$TYPO3_CONF_VARS['SC_OPTIONS']['scheduler']['tasks']['Tx_Typo3Agencies_Scheduler_UpdateMemberships'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:membershipUpdater.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:membershipUpdater.description');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tceforms.php']['getMainFieldsClass'][] = 'Tx_Typo3Agencies_Hooks_BackendForms';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'Tx_Typo3Agencies_Hooks_DataHandler';
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['t3o_membership']['importMemberTaksHooks'][] = 'Tx_Typo3Agencies_Hooks_DataHandler';
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['agency'] = array('EXT:typo3_agencies/Resources/Private/Cli/AgencyCommand.phpsh', '_CLI_lowlevel');
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Configure the Plugin to call the
 * right combination of Controller and Action according to
 * the user input (default settings, FlexForm, URL etc.)
 */
Tx_Extbase_Utility_Extension::configurePlugin('in2facebook', 'Pi1', array('Opengraph' => 'show'), array('Opengraph' => ''));
Esempio n. 17
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/***************
 * Make plugin available in frontend
 */
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Slider' => 'jslidernews, flexslider, nivoslider'));
Esempio n. 18
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Configure the Plugin to call the
 * right combination of Controller and Action according to
 * the user input (default settings, FlexForm, URL etc.)
 */
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Images' => 'list'), array());
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'List', array('Member' => 'list'), array('Member' => 'list'));
// Import members
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_T3oMembership_Task_ImportMembersTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_t3omembership_task_importmemberstask.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang_db.xml:tx_t3omembership_task_importmemberstask.description', 'additionalFields' => 'tx_t3omembership_task_importmembers_additionalfieldprovider');
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'List', array('Banner' => 'index, list, show'), array('Banner' => 'show'));
// Register extension list update task
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_Randombanners_Task_SendingMonthlyMailsTask'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:tx_randombanners_task_sendingmonthlymailstask.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Resources/Private/Language/locallang.xml:tx_randombanners_task_sendingmonthlymailstask.description', 'additionalFields' => '');
$TYPO3_CONF_VARS['FE']['eID_include']['randombanners'] = 'EXT:randombanners/Classes/Ajax/RandomBannersAjax.php';
Esempio n. 21
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('CountdownCE' => 'index'), array('CountdownCE' => 'index'));
Esempio n. 22
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('SpamReport' => 'new,create,thanks', 'Spammer' => 'list,show,confirm,delete'), array('SpamReport' => 'new,create,confirm,delete'));
Esempio n. 23
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
t3lib_extMgm::addStaticFile($_EXTKEY, 'Configuration/TypoScript', 'Fligh Weather Station');
Tx_Extbase_Utility_Extension::registerPlugin($_EXTKEY, 'pi1', 'Weather Display');
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'pi1', array('FWS' => 'index'), array('FWS' => 'index'));
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
// Includes typoscript files
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptSetup('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:newsletter/Configuration/TypoScript/setup.txt">');
\TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addTypoScriptConstants('<INCLUDE_TYPOSCRIPT: source="FILE:EXT:newsletter/Configuration/TypoScript/constants.txt">');
// Register keys for CLI
$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['newsletter_spool_create'] = array('EXT:newsletter/cli/spool_create.php', '_CLI_newsletter');
$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['newsletter_spool_run'] = array('EXT:newsletter/cli/spool_run.php', '_CLI_newsletter');
$TYPO3_CONF_VARS['SC_OPTIONS']['GLOBAL']['cliKeys']['newsletter_bounce'] = array('EXT:newsletter/cli/bounce.php', '_CLI_newsletter');
/**
 * Configure FE plugin element "TABLE"
 */
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'p', array('Email' => 'show, opened', 'Link' => 'clicked', 'RecipientList' => 'unsubscribe, export'), array('Email' => 'show, opened, unsubscribe', 'Link' => 'clicked', 'RecipientList' => 'export'));
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_Newsletter_Task_SendEmails'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:newsletter/Resources/Private/Language/locallang.xml:task_send_emails_title', 'description' => 'LLL:EXT:newsletter/Resources/Private/Language/locallang.xml:task_send_emails_description');
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Tx_Newsletter_Task_FetchBounces'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:newsletter/Resources/Private/Language/locallang.xml:task_fetch_bounces_title', 'description' => 'LLL:EXT:newsletter/Resources/Private/Language/locallang.xml:task_fetch_bounces_description');
Esempio n. 25
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY] = unserialize($_EXTCONF);
/**
 * Configure the Plugin to call the
 * right combination of Controller and Action according to
 * the user input (default settings, FlexForm, URL etc.)
 */
if ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF'][$_EXTKEY]['registerSinglePlugin']) {
    // fully fletged blog
    Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Blog' => 'index,new,create,delete,deleteAll,edit,update,populate', 'Post' => 'index,show,new,create,delete,edit,update', 'Comment' => 'create,delete'), array('Blog' => 'create,delete,deleteAll,update,populate', 'Post' => 'create,delete,update', 'Comment' => 'create,delete'));
} else {
    // Blog plugins
    Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'BlogList', array('Blog' => 'index'));
    // Post plugins
    Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'PostList', array('Post' => 'index'));
    Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'PostSingle', array('Post' => 'show', 'Comment' => 'create'), array('Comment' => 'create'));
    // admin plugins
    Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'BlogAdmin', array('Blog' => 'new,create,delete,deleteAll,edit,update,populate', 'Post' => 'new,create,delete,edit,update', 'Comment' => 'delete'), array('Blog' => 'create,delete,deleteAll,update,populate', 'Post' => 'create,delete,update', 'Comment' => 'delete'));
}
Esempio n. 26
0
 /**
  * @test
  * @see Tx_Extbase_Utility_Extension::registerPlugin
  */
 public function configurePluginWorksForMultipleControllerActionsWithNonCacheableActionAsDefault()
 {
     $GLOBALS['TYPO3_CONF_VARS']['FE']['defaultTypoScript_setup.'] = array();
     Tx_Extbase_Utility_Extension::configurePlugin('MyExtension', 'Pi1', array('FirstController' => 'index,show,new,create,delete,edit,update', 'SecondController' => 'index,show,delete', 'ThirdController' => 'create'), array('FirstController' => 'index,new,create,edit,update', 'SecondController' => 'delete', 'ThirdController' => 'create'));
     $expectedResult = array('controllers' => array('FirstController' => array('actions' => array('index', 'show', 'new', 'create', 'delete', 'edit', 'update'), 'nonCacheableActions' => array('index', 'new', 'create', 'edit', 'update')), 'SecondController' => array('actions' => array('index', 'show', 'delete'), 'nonCacheableActions' => array('delete')), 'ThirdController' => array('actions' => array('create'), 'nonCacheableActions' => array('create'))), 'pluginType' => 'list_type');
     $this->assertEquals($expectedResult, $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['extbase']['extensions']['MyExtension']['plugins']['Pi1']);
 }
Esempio n. 27
0
<?php

////////////////////////////////////////////////////
//
// INDEX
//
// Plugins
// SC_OPTIONS
if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin('Netzmacher.' . $_EXTKEY, 'Pi1', array('Immo24' => 'plugin, submit'), array('Immo24' => 'plugin, submit'));
////////////////////////////////////////////////////
//
// Plugins: Extending TypoScript from static template uid=43 to set up userdefined tag
$cached = false;
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/marketplaces/ebay/dev/GetCategories/class.tx_deal_piMarketplacesEbaySamplesPhpGetCategories.php', '_piMarketplacesEbaySamplesPhpGetCategories', 'list_type', $cached);
t3lib_extMgm::addPItoST43($_EXTKEY, 'plugins/marketplaces/ebay/dev/GettingStarted_PHP_XML_XML/class.tx_deal_piMarketplacesEbaySamplesPhpGettingstarted.php', '_piMarketplacesEbaySamplesPhpGettingstarted', 'list_type', $cached);
// Plugins: Extending TypoScript from static template uid=43 to set up userdefined tag
////////////////////////////////////////////////////
//
// SC_OPTIONS
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:deal/lib/tcemainprocdm/class.tx_deal_tcemainprocdmbeforestart.php:tx_deal_tcemainprocdmbeforestart';
//$GLOBALS ['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'][] = 'EXT:deal/lib/tcemainprocdm/class.tx_deal_tcemainprocdmfieldarray.php:tx_deal_tcemainprocdmfieldarray';
//$GLOBALS[ 'TYPO3_CONF_VARS' ][ 'SC_OPTIONS' ][ 'scheduler' ][ 'tasks' ][ 'Netzmacher\\Deal\\Scheduler\\Immo24CleanupExecute' ] = array(
//  'extension' => $_EXTKEY,
//  'title' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.export.name',
//  'description' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.cleanup.description',
//  'additionalFields' => 'Netzmacher\\Deal\\Scheduler\\Immo24CleanupFieldProvider'
//);
$GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['tasks']['Netzmacher\\Deal\\Scheduler\\Immo24TaskExecute'] = array('extension' => $_EXTKEY, 'title' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.export.name', 'description' => 'LLL:EXT:' . $_EXTKEY . '/Classes/Scheduler/locallang.xlf:immo24.export.description', 'additionalFields' => 'Netzmacher\\Deal\\Scheduler\\Immo24TaskFieldProvider');
   /**
    * @test
    * @see Tx_Extbase_Utility_Extension::registerPlugin
    */
   public function configurePluginWorksForMultipleControllerActionsWithNonCachableActionAsDefaultAndOnlyNonCachableActions()
   {
       global $TYPO3_CONF_VARS;
       $TYPO3_CONF_VARS['FE']['defaultTypoScript_setup.'] = array();
       Tx_Extbase_Utility_Extension::configurePlugin('MyExtension', 'Pi1', array('FirstController' => 'index,show,new,create,delete,edit,update', 'SecondController' => 'index,show,delete', 'ThirdController' => 'create'), array('FirstController' => 'index,show,new,create,delete,edit,update', 'SecondController' => 'index,show,delete', 'ThirdController' => 'create'));
       $staticTypoScript = $TYPO3_CONF_VARS['FE']['defaultTypoScript_setup.']['43'];
       $this->assertContains('
t_content.list.20.myextension_pi1 = USER_INT
t_content.list.20.myextension_pi1 {', $staticTypoScript);
       $this->assertNotContains('GP', $staticTypoScript);
   }
Esempio n. 29
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
/**
 * Configure the Plugin to call the
 * right combination of Controller and Action according to
 * the user input (default settings, FlexForm, URL etc.)
 */
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Pi1', array('Post' => 'showLatest,showList,showArchiv,showRss,showSingle,new,create,edit,update,delete', 'Comment' => 'create,edit,update', 'File' => 'new,create,edit,update', 'Category' => 'new,create,edit,update', 'Link' => 'new,create,edit,update'), array('Post' => 'showLatest,showList,showArchiv,showRss,showSingle,new,create,edit,update,delete', 'Comment' => 'create,edit,update', 'File' => 'new,create,edit,update', 'Category' => 'new,create,edit,update', 'Link' => 'new,create,edit,update'));
/**
 * Registration of ajax-methodes
 */
// deleteCategoryByUid
$TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::deleteCategoryByUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->deleteCategoryByUid';
// updateCategoryByUid
$TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::updateCategoryByUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->updateCategoryByUid';
// getCategoryByUid
$TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::getCategoryByUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->getCategoryByUid';
// getCategoriesByForeignUid
$TYPO3_CONF_VARS['BE']['AJAX']['Tx_KiddogNews_Controller_AjaxController::getCategoriesByForeignUid'] = 'EXT:kiddog_news/Classes/Controller/AjaxController.php:Tx_KiddogNews_Controller_AjaxController->getCategoriesByForeignUid';
Esempio n. 30
0
<?php

if (!defined('TYPO3_MODE')) {
    die('Access denied.');
}
Tx_Extbase_Utility_Extension::configurePlugin($_EXTKEY, 'Iframe', array('Iframe' => 'show'), array('Iframe' => 'show'));