return $fave;
}
- function delete()
+ function delete($useWhere=false)
{
$profile = Profile::getKV('id', $this->user_id);
$notice = Notice::getKV('id', $this->notice_id);
if (Event::handle('StartDisfavorNotice', array($profile, $notice, &$result))) {
- $result = parent::delete();
+ $result = parent::delete($useWhere);
self::blow('fave:list-ids:notice_id:%d', $this->notice_id);
self::blow('popular');
return $result;
}
- function pkeyGet($kv)
- {
- return Memcached_DataObject::pkeyGet('Fave', $kv);
- }
-
function stream($user_id, $offset=0, $limit=NOTICES_PER_PAGE, $own=false, $since_id=0, $max_id=0)
{
$stream = new FaveNoticeStream($user_id, $own);