[TYPO3-core] RFC #11105: Feature: Add a method to register an Extbase plugin
Jochen Rau
j.rau at web.de
Sat May 16 16:05:51 CEST 2009
This is an SVN patch request.
Type: New feature
Bugtracker references:
http://bugs.typo3.org/view.php?id=11105
Branches:
trunk
Problem:
The common methods to register a plugin are not suitable for plugins
based on Extbase.
Solution:
I propose to have a method to register a new Extbase plugin at one
central point.
Notes:
This method should be invoked in ext_tables.php. Below you find an
example taken from the BlogExample.
t3lib_extMgm::addExtbasePlugin(
$_EXTKEY, // The key of the extension in lower_underscore
'Pi1', // A unique name of the plugin in UpperCamelCase
'Blog Example', // A title shown in the backend dropdown field
array( // An array holding allowed controller-action-combinations
'Blog' => 'index,show,new,create,delete,deleteAll,edit',
'Post' => 'index,show,new,create,delete,edit,update',
'Comment' => 'create',
),
array( // An array of non-cachable controller-action-combinations
'Blog' => 'delete,deleteAll,edit,update,setup,populate',
'Post' => 'show,delete,edit,update',
'Comment' => 'create',
)
);
The method generates the necessary TypoScript code to invoke the Extbase
Dispatcher. There are also several Unit-Tests covering the code.
You find the patch attached.
Regards
Jochen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Feature_#11105_v1.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090516/a7cd62da/attachment-0001.txt
More information about the TYPO3-team-core
mailing list