Пример #1
0
 /**
  * Get Job Application Event with the passed parameters
  *
  * @param int $id Job Application Event Id
  * @param int $appId Job Application Event Id
  * @param string $createdTime
  * @param string $createdBy
  * @param int $owner
  * @param string $eventTime
  * @param int $eventType
  * @param int $status
  * @param string $notes
  */
 private function _getEvent($id, $appId, $createdTime, $createdBy, $owner, $eventTime, $eventType, $status, $notes)
 {
     $event = new JobApplicationEvent();
     $event->setId($id);
     $event->setApplicationId($appId);
     $event->setCreatedTime($createdTime);
     $event->setCreatedBy($createdBy);
     $event->setOwner($owner);
     $event->setEventTime($eventTime);
     $event->setEventType($eventType);
     $event->setStatus($status);
     $event->setNotes($notes);
     return $event;
 }
Пример #2
0
 /**
  * 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;
 }