summaryrefslogtreecommitdiff
path: root/classes/Fave.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-24 14:11:01 -0700
committerBrion Vibber <brion@pobox.com>2010-03-24 14:11:01 -0700
commitc3ceaa893fa878d531b0af05a3a8ed367177848c (patch)
tree69373ab2bbdb6dd516487752efd8889eeed8b31e /classes/Fave.php
parent886e28aaa9e4e9a524d5b1a933a2d2a13994aec9 (diff)
parentecb009bcf5a6893b90d153be18c423dd7377796d (diff)
Merge branch '0.9.x' of git@gitorious.org:statusnet/mainline into 1.0.x
Diffstat (limited to 'classes/Fave.php')
-rw-r--r--classes/Fave.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/classes/Fave.php b/classes/Fave.php
index a04f15e9c..7ca9ade7f 100644
--- a/classes/Fave.php
+++ b/classes/Fave.php
@@ -21,7 +21,15 @@ class Fave extends Memcached_DataObject
/* the code above is auto generated do not remove the tag below */
###END_AUTOCODE
- static function addNew($profile, $notice) {
+ /**
+ * Save a favorite record.
+ * @fixme post-author notification should be moved here
+ *
+ * @param Profile $profile the local or remote user who likes
+ * @param Notice $notice the notice that is liked
+ * @return mixed false on failure, or Fave record on success
+ */
+ static function addNew(Profile $profile, Notice $notice) {
$fave = null;