Issue Feature Closed

#20689Add a registry to t3lib

Ingo Renner 06/28/09, 17:52 updated 08/09/13, 13:08

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’)
Bonus:
  • 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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.