[TYPO3-core] RFC: #11438: Add a registry to t3lib

Ingo Renner ingo at typo3.org
Sun Aug 9 14:51:21 CEST 2009


Hi *,

This is an SVN patch request.

Type: feature

Bugtracker references:
http://bugs.typo3.org/view.php?id=11438

Branches: trunk

Problem:
For certain purposes it'd be nice to have a place to store key, value pairs.

Example:
Drupal offers a system status report that also shows when the cron 
service has been run the last time. To achieve that they store the time 
the cron ran the last time in a DB table. This could particularly be 
nice for our scheduler too. Another example: The status report stores 
whether an error with the system has been detected and shows that in a 
flash message through out the system with a link to the status report 
until the issue is fixed by an admin.

Solution:
The attached patch introduces a new class t3lib_Registry that stores its 
values in a new table sys_registry. Additionally unit tests for the 
class are provided.

Notes:
The class method's have been heavily inspired by Drupal's variable_*() 
functions.


all the best
Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2



More information about the TYPO3-team-core mailing list