forked from GNUsocial/gnu-social
new class for configuration settings
This commit is contained in:
parent
c944edfb50
commit
888ed474a1
22
classes/Config.php
Executable file
22
classes/Config.php
Executable 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
|
||||
}
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user