From: Evan Prodromou Date: Thu, 27 Aug 2009 18:21:57 +0000 (-0700) Subject: add data object class for user_role X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f8afad03ad54f257b4eac042727897e6029e1dc2;p=quix0rs-gnu-social.git add data object class for user_role --- diff --git a/classes/User_role.php b/classes/User_role.php new file mode 100755 index 0000000000..658c920007 --- /dev/null +++ b/classes/User_role.php @@ -0,0 +1,43 @@ +. + */ + +if (!defined('STATUSNET') && !defined('LACONICA')) { exit(1); } + +/** + * Table Definition for user_role + */ + +require_once INSTALLDIR.'/classes/Memcached_DataObject.php'; + +class User_role extends Memcached_DataObject +{ + ###START_AUTOCODE + /* the code below is auto generated do not remove the above tag */ + + public $__table = 'user_role'; // table name + public $user_id; // int(4) primary_key not_null + public $role; // varchar(32) primary_key not_null + public $created; // datetime() not_null + + /* Static get */ + function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('User_role',$k,$v); } + + /* the code above is auto generated do not remove the tag below */ + ###END_AUTOCODE +} diff --git a/classes/statusnet.ini b/classes/statusnet.ini index 7edeeebe4f..099330a59e 100755 --- a/classes/statusnet.ini +++ b/classes/statusnet.ini @@ -518,3 +518,12 @@ modified = 384 [user_openid__keys] canonical = K display = U + +[user_role] +user_id = 129 +role = 130 +created = 142 + +[user_role__keys] +user_id = K +role = K