cleanup... Poll main & response events seem to sorta work over ostatus now

This commit is contained in:
Brion Vibber
2011-03-10 13:55:47 -08:00
parent 6416f5ea41
commit eccadb4a7b
2 changed files with 36 additions and 25 deletions

View File

@@ -141,6 +141,14 @@ class Poll_response extends Managed_DataObject
return $this->getNotice()->bestUrl();
}
/**
*
* @return Poll
*/
function getPoll()
{
return Poll::staticGet('id', $this->poll_id);
}
/**
* Save a new poll notice
*