/**
  * @param Task $task
  * @return array
  */
 private function createRow(Task $task)
 {
     $row = array();
     array_push($row, $task->getId());
     array_push($row, $task->getDataString());
     array_push($row, $task->getOraText());
     array_push($row, $task->getClient());
     if ($task->getDistance() == 0 || $task->getDistance() == null) {
         array_push($row, $task->getTraseu());
     } else {
         array_push($row, $task->getTraseu() . " " . $task->getDistance() . "km");
     }
     //array_push($row, $task->getDateTime()->format("d/m/Y"));
     array_push($row, $task->getVehicle() . ": " . $task->getVehicleNo());
     array_push($row, $task->getSofer());
     array_push($row, $task->getBani());
     array_push($row, $task->getDetalii());
     return $row;
 }
 public static function generateFullTextTask(Task $task)
 {
     return $task->getClient() . " : " . $task->getTraseu() . " : " . $task->getSofer() . ":" . $task->getVehicleNo() . " : " . $task->getDataString();
 }