/** * Adds a single resource to this event. * * No validation or acceptence/denial is done here...it should be done * when saving the event. * * @param Kronolith_Resource $resource The resource to add. */ public function addResource($resource, $response) { $this->_resources[$resource->getId()] = array('attendance' => Kronolith::PART_REQUIRED, 'response' => $response, 'name' => $resource->get('name'), 'calendar' => $resource->get('calendar')); }