method to check if a profile has forwarded a notice

This commit is contained in:
Evan Prodromou 2009-12-08 17:20:17 -05:00
parent 7dd0f2fa9c
commit c49ece9fb4
1 changed files with 8 additions and 0 deletions

View File

@ -716,4 +716,12 @@ class Profile extends Memcached_DataObject
}
return $result;
}
function hasForwarded($notice_id)
{
$forward = Forward::pkeyGet(array('profile_id' => $this->id,
'notice_id' => $notice_id));
return (!empty($forward));
}
}