summaryrefslogtreecommitdiff
path: root/classes/User_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/User_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/User_group.php')
-rw-r--r--classes/User_group.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/classes/User_group.php b/classes/User_group.php
index 1382aa407..6e58a4d67 100644
--- a/classes/User_group.php
+++ b/classes/User_group.php
@@ -10,21 +10,22 @@ class User_group extends Memcached_DataObject
public $__table = 'user_group'; // table name
public $id; // int(4) primary_key not_null
- public $nickname; // varchar(64) unique_key
- public $fullname; // varchar(255)
- public $homepage; // varchar(255)
- public $description; // text()
- public $location; // varchar(255)
- public $original_logo; // varchar(255)
- public $homepage_logo; // varchar(255)
- public $stream_logo; // varchar(255)
- public $mini_logo; // varchar(255)
- public $design_id; // int(4)
- public $created; // datetime() not_null
- public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP
+ public $nickname; // varchar(64)
+ public $fullname; // varchar(255)
+ public $homepage; // varchar(255)
+ public $description; // text
+ public $location; // varchar(255)
+ public $original_logo; // varchar(255)
+ public $homepage_logo; // varchar(255)
+ public $stream_logo; // varchar(255)
+ public $mini_logo; // varchar(255)
+ public $design_id; // int(4)
+ public $created; // datetime not_null default_0000-00-00%2000%3A00%3A00
+ public $modified; // timestamp not_null default_CURRENT_TIMESTAMP
+ public $uri; // varchar(255) unique_key
/* Static get */
- function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('User_group',$k,$v); }
+ function staticGet($k,$v=NULL) { return DB_DataObject::staticGet('User_group',$k,$v); }
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE