summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorRobin Millette <millette@controlyourself.ca>2009-06-18 06:02:54 -0400
committerRobin Millette <millette@controlyourself.ca>2009-06-18 06:02:54 -0400
commitc442b400b985cb9e30bf036007bcffc96807d5a3 (patch)
treeaebb66931d6f15336df8bfcf05202b37ee4aff43 /classes/User.php
parent65b4cfbb54f5b44820dd02bb9c3c2ca98dbbd321 (diff)
parent87f54c1136fa4ddc476baad0adeaf1b4e7097cc5 (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.php12
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);
+ }
}