EmConfUtility

Utility for dealing with ext_emconf

Internal

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<string|int, mixed>|false
Returns the $EM_CONF array from an extensions ext_emconf.php file
fixEmConf()  : array<string|int, mixed>
Fix the em conf - Converts old / ter em_conf format to new format
stringToDependency()  : array<string|int, mixed>
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<string|int, mixed> $emConf) : string
Parameters
$extensionKey : string
$emConf : array<string|int, mixed>
Return values
string

includeEmConf()

Returns the $EM_CONF array from an extensions ext_emconf.php file

public includeEmConf(string $extensionKey, string $absolutePath) : array<string|int, mixed>|false
Parameters
$extensionKey : string

the extension name

$absolutePath : string

path to the ext_emconf.php

Return values
array<string|int, mixed>|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<string|int, mixed> $emConf) : array<string|int, mixed>
Parameters
$emConf : array<string|int, mixed>
Return values
array<string|int, mixed>

stringToDependency()

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<string|int, mixed> $dependency) : array<string|int, mixed>

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<string|int, mixed>

Either a string or an array listing dependencies.

Return values
array<string|int, mixed>

A simple dependency list for display


        
On this page

Search results