summaryrefslogtreecommitdiff
path: root/classes/User.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-05-14 10:54:36 -0400
committerEvan Prodromou <evan@prodromou.name>2008-05-14 10:54:36 -0400
commit67a347bafb875be60e7554f308d80d7f0a1d2747 (patch)
treefb7d54dff5e84e1e22b1c5fca882a5f776e1d4a9 /classes/User.php
parentf0a30cc89ddf82e3c774800d24f0ea3664065d9c (diff)
considerable coding
darcs-hash:20080514145436-84dde-d0994cb35d3fe8545d3f08abeec3cdfe7559c67d.gz
Diffstat (limited to 'classes/User.php')
-rw-r--r--classes/User.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/classes/User.php b/classes/User.php
index 4ed6003dc..8234e0784 100644
--- a/classes/User.php
+++ b/classes/User.php
@@ -21,4 +21,16 @@ class User extends DB_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
+
+ function getProfile() {
+ return Profile::staticGet($this->$id);
+ }
+
+ function isSubscribed($other) {
+ assert(!is_null($other));
+ $sub = DB_DataObject::factory('subscription');
+ $sub->subscriber = $this->id;
+ $sub->subscribed = $other->id;
+ return $sub->find();
+ }
}