summaryrefslogtreecommitdiff
path: root/classes/Local_group.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-24 23:28:41 -0500
committerEvan Prodromou <evan@status.net>2010-02-24 23:28:41 -0500
commitbd68154772e80a98e9e5c96c6df8772ce3b2a84f (patch)
tree0f287955e7a8fb8456307a1e6118edcf8d7d8e47 /classes/Local_group.php
parent374c488cf136b378d4fb47c4a6add309694e9146 (diff)
Make user_group able to handle remote groups
We add a local_group table to store data about local groups. It has the unique key for nickname, so /group/<nickname> looks up here. Updated DB data object classes and data files.
Diffstat (limited to 'classes/Local_group.php')
-rwxr-xr-xclasses/Local_group.php23
1 files changed, 23 insertions, 0 deletions
diff --git a/classes/Local_group.php b/classes/Local_group.php
new file mode 100755
index 000000000..02663048f
--- /dev/null
+++ b/classes/Local_group.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Table Definition for local_group
+ */
+require_once 'classes/Memcached_DataObject.php';
+
+class Local_group extends Memcached_DataObject
+{
+ ###START_AUTOCODE
+ /* the code below is auto generated do not remove the above tag */
+
+ public $__table = 'local_group'; // table name
+ public $group_id; // int(4) primary_key not_null
+ public $nickname; // varchar(64) unique_key
+ public $created; // datetime not_null default_0000-00-00%2000%3A00%3A00
+ public $modified; // timestamp not_null default_CURRENT_TIMESTAMP
+
+ /* Static get */
+ function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('Local_group',$k,$v); }
+
+ /* the code above is auto generated do not remove the tag below */
+ ###END_AUTOCODE
+}