EmConfUtility
Utility for dealing with ext_emconf
This class is a specific ExtensionManager implementation and is not part of the Public TYPO3 API.
Table of Contents
Methods
- constructEmConf() : string
- Generates the content for the ext_emconf.php file
- includeEmConf() : array|false
- Returns the $EM_CONF array from an extensions ext_emconf.php file
- fixEmConf() : array
- Fix the em conf - Converts old / ter em_conf format to new format
- stringToDependency() : array
- Checks whether the passed dependency is TER-style (string)or TER2-style (array)and returns a single string for displaying the dependencies.
Methods
constructEmConf()
Generates the content for the ext_emconf.php file
public
constructEmConf(string $extensionKey, array $emConf) : string
Parameters
- $extensionKey : string
- $emConf : array
Return values
stringincludeEmConf()
Returns the $EM_CONF array from an extensions ext_emconf.php file
public
includeEmConf(string $extensionKey, string $absolutePath) : array|false
Parameters
- $extensionKey : string
-
the extension name
- $absolutePath : string
-
path to the ext_emconf.php
Return values
array|false —EMconf array values or false if no ext_emconf.php found.
fixEmConf()
Fix the em conf - Converts old / ter em_conf format to new format
protected
fixEmConf(array $emConf) : array
Parameters
- $emConf : array
Return values
arraystringToDependency()
Checks whether the passed dependency is TER-style (string)or TER2-style (array)and returns a single string for displaying the dependencies.
protected
stringToDependency(string|array $dependency) : array
It leaves out all version numbers and the "php" and "typo3" dependencies, as they are implicit and of no interest without the version number.
Parameters
- $dependency : string|array
-
Either a string or an array listing dependencies.
Return values
array —A simple dependency list for display