Project

General

Profile

Actions

Feature #20436

closed

Add a method to register an Extbase plugin

Added by Jochen Rau over 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Must have
Assignee:
Category:
-
Target version:
-
Start date:
2009-05-16
Due date:
% Done:

0%

Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:

Description

I propose to have a method to register a new Extbase plugin at one central point.

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 (blog_example)
'Pi1', // A unique name of the plugin in UpperCamelCase
'Blog Example', // A title shown in the backend dropdown field
array( // An array holding the controller-action-combinations that are accessible
'Blog' => 'index,show,new,create,delete,deleteAll,edit,update,populate', // The first controller and its first action will be taken as default
'Post' => 'index,show,new,create,delete,edit,update',
'Comment' => 'create',
),
array( // An array of non-cachable controller-action-combinations (they must already be enabled)
'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 several Unit-Tests covering the code.
(issue imported from #M11105)


Files

Feature_#11105_v1.patch (15.2 KB) Feature_#11105_v1.patch Administrator Admin, 2009-05-16 14:39

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Feature #20441: Add Extbase and Fluid as a System ExtensionClosedSebastian Kurfuerst2009-05-17

Actions
Actions #1

Updated by Jochen Rau over 15 years ago

As a result of the discussion in the core list Extbase itself registers its plugins now:

/** * A minimalistic configuration
*/
Tx_Extbase_Utility_Plugin::registerPlugin('BlogExample', 'Pi1', 'A Blog Example', array('Blog' => 'index,show,edit'));

Actions

Also available in: Atom PDF