Beispiel #1
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // Nazwa statusu
         $this->active_name = ClassUser::getNameStatus($this->active);
     }
 }
Beispiel #2
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // Ilosc stopni nazwa
         $this->equipment_type_name = ClassEquipmentType::sqlGetItemNameByIdParent($this->id_equipment_type);
         // Nazwa statusu
         $this->active_name = ClassUser::getNameStatus($this->active);
     }
 }
Beispiel #3
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_soldier_tmp = $this->id_soldier;
         // Zmiana daty na polski format
         $this->date_add_rank = date('d.m.Y', strtotime($this->date_add_rank));
     }
 }
Beispiel #4
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // Ilosc stopni nazwa
         $this->badge_rank_name = ClassBadgeType::sqlGetItemNameByIdParent($this->id_badge_type);
         // Nazwa statusu
         $this->active_name = ClassUser::getNameStatus($this->active);
     }
 }
Beispiel #5
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_soldier_tmp = $this->id_soldier;
         // pobieranie typow adresow przypisanych do tego adresu
         $this->soldier_address_types = self::sqlGetAddresses2TypesByAddres($this->id);
     }
 }
Beispiel #6
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_user_tmp = $this->id_user;
         // nazwa stopnia zaawansowania jezyka
         $this->language_level_name = ClassLanguageLevel::sqlGetItemNameByIdParent($this->id_language_level);
     }
 }
Beispiel #7
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // Rodzaj jednostki nazwa
         // $this->military_group_name = self::sqlGetGroupNameById($this->id_military_group);
         $this->military_group_name = ClassMilitaryType::sqlGetItemNameByIdParent($this->id_military_type);
         // Nazwa statusu
         $this->active_name = ClassUser::getNameStatus($this->active);
     }
 }
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_user_tmp = $this->id_user;
         // nazwa kategorii prawa jazdy
         $this->drive_category_name = ClassDriveCategories::sqlGetItemNameByIdParent($this->id_drive_category);
         // Zmiana daty na polski format
         $this->date_start = date('d.m.Y', strtotime($this->date_start));
         $this->date_end = date('d.m.Y', strtotime($this->date_end));
     }
 }
Beispiel #9
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_user_tmp = $this->id_user;
         // nazwa tytulu zawodowego
         $this->academic_degree_name = ClassAcademicDegree::sqlGetItemNameByIdParent($this->id_academic_degree);
         // Zmiana daty na polski format
         $this->date_start = date('d.m.Y', strtotime($this->date_start));
         $this->date_end = date('d.m.Y', strtotime($this->date_end));
     }
 }
Beispiel #10
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // $this->mission_type_name = self::sqlGetTypeNameId($this->id_mission_type);
         $this->mission_type_name = ClassMissionType::sqlGetItemNameByIdParent($this->id_mission_type);
         $this->date_end_name = self::getDateEndNameByDateEnd($this->date_end);
         // $this->status = self::getStatusName($this->date_end, $this->active);
         $this->status = self::getStatusMission($this->date_start, $this->date_end);
         $this->date_end_name_pl = self::getDateEndNameByDateEnd($this->date_end, true);
         $this->date_start_pl = date('d.m.Y H:i', strtotime($this->date_start));
         $this->active_name = ClassUser::getNameStatus($this->active);
     }
 }
Beispiel #11
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // poziom wyksztalcenia nazwa
         $this->education_type_name = ClassEducationType::sqlGetItemNameByIdParent($this->id_education_type);
         // Nazwa statusu
         $this->status_name = ClassSoldierStatus::sqlGetItemNameByIdParent($this->id_status);
         // Zmiana daty na polski format
         $this->date_birthday = date('d.m.Y', strtotime($this->date_birthday));
         // nazwa plci
         $this->sex_name = self::getSexName($this->sex);
         // nazwa jednostki wojskowej
         $military = new ClassMilitary($this->id_military);
         $this->military_name = $military->name . ', ' . $military->location;
     }
 }
Beispiel #12
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_soldier_tmp = $this->id_soldier;
         // przypisanie poprawnej misji do tymczasowej zmiennej
         $this->id_equipment_tmp = $this->id_equipment;
         // nazwa wyposazenia
         $item = new ClassEquipment($this->id_equipment);
         $this->equipment_name = $item->name;
         // Zmiana daty na polski format
         $this->date_equipment_add = date('d.m.Y H:i', strtotime($this->date_equipment_add));
         $this->date_return = $this->date_return === NULL ? $this->date_return : date('d.m.Y H:i', strtotime($this->date_return));
         // nazwa statusu wyposazenia
         $this->status_name = self::getStatusEquipment($this->returned);
     }
 }
Beispiel #13
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_soldier_tmp = $this->id_soldier;
         // przypisanie poprawnego szkolenia do tymczasowej zmiennej
         $this->id_badge_tmp = $this->id_badge;
         // nazwa odznaczenia
         $item = new ClassBadge($this->id_badge);
         $this->badge_name = $item->name;
         // data przyznania
         $this->date_grant = date('d.m.Y', strtotime($this->date_grant));
         $this->date_receive = $this->date_receive === NULL ? $this->date_receive : date('d.m.Y', strtotime($this->date_receive));
         // nazwa statusu szkolenia
         $this->status_name = self::getStatusBadge($this->received);
     }
 }
Beispiel #14
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         $item = new ClassTrainingCenter($this->id_training_centre);
         if (!$item->load_class) {
             $this->training_center_name = 'Centrum szkolenia nie istnieje';
         } else {
             $this->training_center_name = $item->name . ', ' . $item->location;
         }
         // data rozpoczecia misji
         $this->date_start_name = self::getPlDate($this->date_start);
         // nazwa lub data zakonczenia misji
         $this->date_end_name = self::getDateEndNameByDateEnd($this->date_end, true);
         // nazwa statusu
         // $this->status = self::getStatusName($this->date_end, $this->active);
         $this->status = self::getStatusTraining($this->date_start, $this->date_end);
         $this->active_name = ClassUser::getNameStatus($this->active);
     }
 }
Beispiel #15
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_soldier_tmp = $this->id_soldier;
         // przypisanie poprawnej misji do tymczasowej zmiennej
         $this->id_mission_tmp = $this->id_mission;
         // nazwa statusu misji
         $item = new ClassMission($this->id_mission);
         $this->status_name = self::getStatusMission($item->date_start, $item->date_end, $this->detached);
         $this->mission_name = $item->name;
         // data rozpoczęcia
         $this->date_start = date('d.m.Y H:i', strtotime($item->date_start));
         // data zakonczenia
         $this->date_end_tmp = $this->date_end;
         $this->date_end = $this->date_end === NULL || $this->date_end == '0000-00-00 00:00:00' ? 'Niezdefiniowano' : date('d.m.Y H:i', strtotime($item->date_end));
         $this->date_mission_add = date('d.m.Y H:i', strtotime($this->date_mission_add));
         $this->date_mission_detach = $this->date_mission_detach === NULL || $this->date_mission_detach == '0000-00-00 00:00:00' ? NULL : date('d.m.Y H:i', strtotime($this->date_mission_detach));
     }
 }
Beispiel #16
0
 public function load()
 {
     parent::load();
     if ($this->load_class) {
         // przypisanie poprawnego zolnierza do tymczasowej zmiennej
         $this->id_soldier_tmp = $this->id_soldier;
         // przypisanie poprawnego szkolenia do tymczasowej zmiennej
         $this->id_training_tmp = $this->id_training;
         // nazwa statusu szkolenia
         $item = new ClassTraining($this->id_training);
         // $sql[$key]['status_name'] = self::getStatusTraining($val['date_start'], $val['date_end'], $val['returned']);
         // $this->status_name = self::getStatusName($item->date_end, $this->returned);
         $this->status_name = self::getStatusTraining($item->date_start, $item->date_end, $this->returned);
         $this->training_name = $item->name;
         // data rozpoczęcia
         $this->date_start = date('d.m.Y H:i', strtotime($item->date_start));
         // data zakonczenia
         $this->date_end_tmp = $item->date_end;
         $this->date_end = $item->date_end === NULL || $item->date_end == '0000-00-00 00:00:00' ? 'Niezdefiniowano' : date('d.m.Y H:i', strtotime($item->date_end));
         $this->date_training_add = date('d.m.Y H:i', strtotime($this->date_training_add));
         $this->date_training_return = $this->date_training_return === NULL || $this->date_training_return == '0000-00-00 00:00:00' ? NULL : date('d.m.Y H:i', strtotime($this->date_training_return));
     }
 }