![]() |
TYPO3
7.6
|
Static Public Member Functions | |
static | configurePlugin ($extensionName, $pluginName, array $controllerActions, array $nonCacheableControllerActions=array(), $pluginType=self::PLUGIN_TYPE_PLUGIN) |
static | registerPlugin ($extensionName, $pluginName, $pluginTitle, $pluginIconPathAndFilename=null) |
static | configureModule ($moduleSignature, $modulePath) |
static | registerModule ($extensionName, $mainModuleName= '', $subModuleName= '', $position= '', array $controllerActions=array(), array $moduleConfiguration=array()) |
static | registerTypeConverter ($typeConverterClassName) |
Public Attributes | |
const | PLUGIN_TYPE_PLUGIN = 'list_type' |
const | PLUGIN_TYPE_CONTENT_ELEMENT = 'CType' |
Static Protected Member Functions | |
static | checkVendorNameFormat ($vendorName, $extensionName) |
static | checkExtensionNameFormat ($extensionName) |
static | checkPluginNameFormat ($pluginName) |
Utilities to manage plugins and modules of an extension. Also useful to auto-generate the autoloader registry file ext_autoload.php.
Definition at line 21 of file ExtensionUtility.php.
|
staticprotected |
Check a given extension name for validity.
string | $extensionName | The name of the extension |
\InvalidArgumentException |
Definition at line 266 of file ExtensionUtility.php.
|
staticprotected |
Check a given plugin name for validity.
string | $pluginName | The name of the plugin |
\InvalidArgumentException |
Definition at line 280 of file ExtensionUtility.php.
|
staticprotected |
Check a given vendor name for CGL compliance. Log a deprecation message if it is not.
string | $vendorName | The vendor name to check |
string | $extensionName | The extension name that is affected |
Definition at line 252 of file ExtensionUtility.php.
|
static |
This method is called from ::checkMod and it replaces old conf.php.
string | $moduleSignature | The module name |
string | $modulePath | Absolute path to module (not used by Extbase currently) |
Definition at line 154 of file ExtensionUtility.php.
|
static |
Add auto-generated TypoScript to configure the Extbase Dispatcher.
When adding a frontend plugin you will have to add both an entry to the TCA definition of tt_content table AND to the TypoScript template which must initiate the rendering. Including the plugin code after "defaultContentRendering" adds the necessary TypoScript for calling the appropriate controller and action of your plugin. This means, it will also work for the extension "css_styled_content" FOR USE IN ext_localconf.php FILES Usage: 2
string | $extensionName | The extension name (in UpperCamelCase) or the extension key (in lower_underscore) |
string | $pluginName | must be a unique id for your plugin in UpperCamelCase (the string length of the extension key added to the length of the plugin name should be less than 32!) |
array | $controllerActions | is an array of allowed combinations of controller and action stored in an array (controller name as key and a comma separated list of action names as value, the first controller and its first action is chosen as default) |
array | $nonCacheableControllerActions | is an optional array of controller name and action names which should not be cached (array as defined in $controllerActions) |
string | $pluginType | either ::PLUGIN_TYPE_PLUGIN (default) or ::PLUGIN_TYPE_CONTENT_ELEMENT |
\InvalidArgumentException |
Definition at line 45 of file ExtensionUtility.php.
References $GLOBALS, and GeneralUtility\trimExplode().
|
static |
Registers an Extbase module (main or sub) to the backend interface. FOR USE IN ext_tables.php FILES
string | $extensionName | The extension name (in UpperCamelCase) or the extension key (in lower_underscore) |
string | $mainModuleName | The main module key. So $main would be an index in the $TBE_MODULES array and $sub could be an element in the lists there. If $subModuleName is not set a blank $extensionName module is created |
string | $subModuleName | The submodule key. |
string | $position | This can be used to set the position of the $sub module within the list of existing submodules for the main module. $position has this syntax: [cmd]:[submodule-key]. cmd can be "after", "before" or "top" (or blank which is default). If "after"/"before" then submodule will be inserted after/before the existing submodule with [submodule-key] if found. If not found, the bottom of list. If "top" the module is inserted in the top of the submodule list. |
array | $controllerActions | is an array of allowed combinations of controller and action stored in an array (controller name as key and a comma separated list of action names as value, the first controller and its first action is chosen as default) |
array | $moduleConfiguration | The configuration options of the module (icon, locallang.xlf file) |
\InvalidArgumentException |
Definition at line 173 of file ExtensionUtility.php.
References $GLOBALS, and GeneralUtility\trimExplode().
|
static |
Register an Extbase PlugIn into backend's list of plugins FOR USE IN ext_tables.php FILES
string | $extensionName | The extension name (in UpperCamelCase) or the extension key (in lower_underscore) |
string | $pluginName | must be a unique id for your plugin in UpperCamelCase (the string length of the extension key added to the length of the plugin name should be less than 32!) |
string | $pluginTitle | is a speaking title of the plugin that will be displayed in the drop down menu in the backend |
string | $pluginIconPathAndFilename | is a path to an icon file (relative to TYPO3_mainDir), that will be displayed in the drop down menu in the backend (optional) |
\InvalidArgumentException |
Definition at line 117 of file ExtensionUtility.php.
References $GLOBALS.
|
static |
Register a type converter by class name.
string | $typeConverterClassName |
Definition at line 236 of file ExtensionUtility.php.
References $GLOBALS.
const PLUGIN_TYPE_CONTENT_ELEMENT = 'CType' |
Definition at line 24 of file ExtensionUtility.php.
const PLUGIN_TYPE_PLUGIN = 'list_type' |
Definition at line 23 of file ExtensionUtility.php.