mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-23 09:52:22 +00:00
This commit is contained in:
@@ -459,6 +459,9 @@ class pruefungCis extends basis_db
|
||||
$obj->bis = $row->bis;
|
||||
$obj->max = $row->teilnehmer_max;
|
||||
$obj->min = $row->teilnehmer_min;
|
||||
$obj->anmeldung_von= $row->anmeldung_von;
|
||||
$obj->anmeldung_bis = $row->anmeldung_bis;
|
||||
$obj->ort_kurzbz = $row->ort_kurzbz;
|
||||
array_push($this->termine, $obj);
|
||||
}
|
||||
return true;
|
||||
@@ -495,7 +498,7 @@ class pruefungCis extends basis_db
|
||||
. 'bis='.$this->db_add_param($ende).', '
|
||||
. 'teilnehmer_max='.$this->db_add_param($max).', '
|
||||
. 'teilnehmer_min='.$this->db_add_param($min).' '
|
||||
. 'WHERE pruefungstermin_id='.$this->db_add_param($pruefungstermin_id).';';
|
||||
. 'WHERE pruefungstermin_id='.$this->db_add_param($pruefungstermin_id).';';
|
||||
|
||||
if(!$this->db_query($qry))
|
||||
{
|
||||
|
||||
@@ -34,6 +34,9 @@ class pruefungstermin extends basis_db{
|
||||
public $bis; //timestamp without timezone
|
||||
public $teilnehmer_max; //smallint
|
||||
public $teilnehmer_min; //smallint
|
||||
public $anmeldung_von; //date
|
||||
public $anmeldung_bis; //date
|
||||
public $ort_kurzbz; //varchar(16)
|
||||
|
||||
/**
|
||||
* Konstruktor
|
||||
@@ -86,6 +89,9 @@ class pruefungstermin extends basis_db{
|
||||
$this->bis = $row->bis;
|
||||
$this->teilnehmer_max = $row->teilnehmer_max;
|
||||
$this->teilnehmer_min = $row->teilnehmer_min;
|
||||
$this->anmeldung_von= $row->anmeldung_von;
|
||||
$this->anmeldung_bis = $row->anmeldung_bis;
|
||||
$this->ort_kurzbz = $row->ort_kurzbz;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -151,4 +157,32 @@ class pruefungstermin extends basis_db{
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function save($new = false)
|
||||
{
|
||||
if($new)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
$qry = 'UPDATE campus.tbl_pruefungstermin SET '
|
||||
. 'pruefung_id='.$this->db_add_param($this->pruefung_id).', '
|
||||
. 'von='.$this->db_add_param($this->von).', '
|
||||
. 'bis='.$this->db_add_param($this->bis).', '
|
||||
. 'teilnehmer_max='.$this->db_add_param($this->teilnehmer_max).', '
|
||||
. 'teilnehmer_min='.$this->db_add_param($this->teilnehmer_min).', '
|
||||
. 'anmeldung_von='.$this->db_add_param($this->anmeldung_von).', '
|
||||
. 'anmeldung_bis='.$this->db_add_param($this->anmeldung_bis).', '
|
||||
. 'ort_kurzbz='.$this->db_add_param($this->ort_kurzbz).' '
|
||||
. 'WHERE pruefungstermin_id='.$this->db_add_param($this->pruefungstermin_id).';';
|
||||
}
|
||||
|
||||
if($this->db_query($qry))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user