diff options
author | Robin Millette <millette@controlyourself.ca> | 2009-06-18 06:02:54 -0400 |
---|---|---|
committer | Robin Millette <millette@controlyourself.ca> | 2009-06-18 06:02:54 -0400 |
commit | c442b400b985cb9e30bf036007bcffc96807d5a3 (patch) | |
tree | aebb66931d6f15336df8bfcf05202b37ee4aff43 /classes/User.php | |
parent | 65b4cfbb54f5b44820dd02bb9c3c2ca98dbbd321 (diff) | |
parent | 87f54c1136fa4ddc476baad0adeaf1b4e7097cc5 (diff) |
Merge branch '0.8.x' of git@gitorious.org:+laconica-developers/laconica/dev into 0.8.x
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/classes/User.php b/classes/User.php index 08a166d5a..c7eede94e 100644 --- a/classes/User.php +++ b/classes/User.php @@ -62,14 +62,13 @@ class User extends Memcached_DataObject public $autosubscribe; // tinyint(1) public $urlshorteningservice; // varchar(50) default_ur1.ca public $inboxed; // tinyint(1) + public $design_id; // int(4) + public $viewdesigns; // tinyint(1) default_1 public $created; // datetime() not_null public $modified; // timestamp() not_null default_CURRENT_TIMESTAMP /* Static get */ - function staticGet($k,$v=NULL) - { - return Memcached_DataObject::staticGet('User',$k,$v); - } + function staticGet($k,$v=NULL) { return Memcached_DataObject::staticGet('User',$k,$v); } /* the code above is auto generated do not remove the tag below */ ###END_AUTOCODE @@ -684,4 +683,9 @@ class User extends Memcached_DataObject return ($cnt > 0); } + + function getDesign() + { + return Design::staticGet('id', $this->design_id); + } } |