id); } public function newForIncident(StatusBoard_Incident $incident, $status, $description, $ctime = null) { if ($ctime === null) { $ctime = time(); } $new_status = new self(); $new_status->incident = $incident->id; $new_status->status = $status; $new_status->description = $description; $new_status->ctime = $ctime; $new_status->create(); return $new_status; } } ?>