Actions
Feature #20689
closedAdd a registry to t3lib
Start date:
2009-06-28
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.2
Tags:
Complexity:
Sprint Focus:
Description
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 was detected and reports that in a flash message through out the system with a link to the status report until the issue is fixed by an admin.
- add a table with columns name (string, PK), value (string, holds the value as serialized PHP array)
- add a class t3lib_Registry with at least methods get('name', default_value_if_name_not_found) and set('name', 'value')
- add an easy way to retrieve values from the registry in TS
- make it possible to view the registry key, value pairs in the Admin tools->Configuration module
(issue imported from #M11438)
Files
Actions