summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-08-21 15:22:02 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-08-21 15:22:02 -0400
commit888ed474a161a278579debdb492acc44fbcd7790 (patch)
tree45a788babcc705c44f2132daaa6ccd76c9a11612 /classes
parentc944edfb50e81a8880b02ee5496a29323021331e (diff)
new class for configuration settings
Diffstat (limited to 'classes')
-rwxr-xr-xclasses/Config.php22
-rwxr-xr-xclasses/laconica.ini9
2 files changed, 31 insertions, 0 deletions
diff --git a/classes/Config.php b/classes/Config.php
new file mode 100755
index 000000000..2538a1426
--- /dev/null
+++ b/classes/Config.php
@@ -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
+}
diff --git a/classes/laconica.ini b/classes/laconica.ini
index c02996b3f..7edeeebe4 100755
--- a/classes/laconica.ini
+++ b/classes/laconica.ini
@@ -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