summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-23 11:06:37 -0700
committerBrion Vibber <brion@pobox.com>2010-03-23 11:06:37 -0700
commit533a3bf6a3180237cfffb8baf29ea3a3f7ec34f8 (patch)
treeef0c2815862253cdb1e98052301d7d09f1b05aff /classes
parent2d79455a1fb7627a23a6ca77fbab060193f6c43a (diff)
Consistently send Profiles into Fave::addNew()
Diffstat (limited to 'classes')
-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;