Project

General

Profile

Actions

Feature #20689

closed

Add a registry to t3lib

Added by Ingo Renner almost 15 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
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')
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)

Files

11438.diff (13.9 KB) 11438.diff Administrator Admin, 2009-08-09 14:55
11438_v2.diff (13.6 KB) 11438_v2.diff Administrator Admin, 2009-08-09 18:45
11438_v3.diff (18.2 KB) 11438_v3.diff Administrator Admin, 2009-08-12 16:37
11438_v4.diff (19.1 KB) 11438_v4.diff Administrator Admin, 2009-08-12 16:37

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #20922: Table of new feature "registry" won't be created if database is utf8ClosedOliver Hader2009-08-25

Actions
Actions #1

Updated by Ingo Renner over 14 years ago

committed to trunk r5783

Actions

Also available in: Atom PDF