);
}
- static function saveNew($profile, $start_time, $end_time, $title, $location, $description, $url, $options=array())
+ static function saveNew(Profile $profile, $start_time, $end_time, $title, $location, $description, $url, array $options=array())
{
if (array_key_exists('uri', $options)) {
$other = Happening::getKV('uri', $options['uri']);
return Notice::getKV('uri', $this->getUri());
}
- static function fromNotice($notice)
+ static function fromNotice(Notice $notice)
{
return Happening::getKV('uri', $notice->getUri());
}
function getRSVP($profile)
{
return RSVP::pkeyGet(array('profile_id' => $profile->getID(),
- 'event_id' => $this->id));
+ 'event_uri' => $this->getUri()));
}
}