new class for configuration settings

This commit is contained in:
Evan Prodromou 2009-08-21 15:22:02 -04:00
parent c944edfb50
commit 888ed474a1
2 changed files with 31 additions and 0 deletions

22
classes/Config.php Executable file
View File

@ -0,0 +1,22 @@
<?php
/**
* Table Definition for config
*/
require_once 'classes/Memcached_DataObject.php';
class Config extends Memcached_DataObject
{
###START_AUTOCODE
/* the code below is auto generated do not remove the above tag */
public $__table = 'config'; // table name
public $section; // varchar(32) primary_key not_null
public $setting; // varchar(32) primary_key not_null
public $value; // varchar(255)
/* Static get */
function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('Config',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
}

View File

@ -16,6 +16,15 @@ width = K
height = K
url = U
[config]
section = 130
setting = 130
value = 2
[config__keys]
section = K
setting = K
[confirm_address]
code = 130
user_id = 129