/** * Creates a JobApplicationEvent object from a resultset row * * @param array $row Resultset row from the database. * @return JobApplicationEvent JobApplicationEvent object. */ private static function _createFromRow($row) { $event = new JobApplicationEvent($row[self::DB_FIELD_ID]); $event->setApplicationId($row[self::DB_FIELD_APPLICATION_ID]); $event->setCreatedTime($row[self::DB_FIELD_CREATED_TIME]); $event->setCreatedBy($row[self::DB_FIELD_CREATED_BY]); $event->setOwner($row[self::DB_FIELD_OWNER]); $event->setEventTime($row[self::DB_FIELD_EVENT_TIME]); $event->setEventType($row[self::DB_FIELD_EVENT_TYPE]); $event->setStatus($row[self::DB_FIELD_STATUS]); $event->setNotes($row[self::DB_FIELD_NOTES]); if (isset($row[self::OWNER_NAME])) { $event->setOwnerName($row[self::OWNER_NAME]); } return $event; }