]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
new class for configuration settings
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 19:22:02 +0000 (15:22 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 21 Aug 2009 19:22:02 +0000 (15:22 -0400)
classes/Config.php [new file with mode: 0755]
classes/laconica.ini

diff --git a/classes/Config.php b/classes/Config.php
new file mode 100755 (executable)
index 0000000..2538a14
--- /dev/null
@@ -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
+}
index c02996b3f2cb082ef6f4d2d68e3f51932a53619b..7edeeebe4fa3ec7b0e49ef05615f61b63feee1e7 100755 (executable)
@@ -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