Project

General

Profile

Actions

Feature #20102

closed

Add Core API function to Extension Management: getEMConfArray($key)

Added by Daniel Krupke over 15 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2009-02-27
Due date:
% Done:

0%

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

Description

There should be an easy and short way to get the EM_CONF Array for a specific extension key.

This one shoud be placed into t3lib/class.t3lib_extmgm.php (Core API).

Examples for defining such a function:
t3lib_extmgm::getEMConfArray($extkey) // you get full EM_CONF Array for extension: $extkey

t3lib_extmgm::getEMConfArray($extkey, $key) // you get value for $key in EM_CONF Array for extension: $extkey
(a problem with this one: keys can be nested in EM_CONF)

Examples of usage:
1)
$version = t3lib_extmgm::getEMConfArray('realurl', 'version');

2)
$realurl_emconf = t3lib_extmgm::getEMConfArray('realurl');
$version = $realurl_emconf['version'];

(issue imported from #M10563)


Files

10563_v1.diff (3.75 KB) 10563_v1.diff Administrator Admin, 2009-03-02 12:27
Actions

Also available in: Atom PDF