mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 00:12:15 +00:00
Vilesci:
- LV-Verteilung - neue DB - LF-Wartung - neue DB
This commit is contained in:
@@ -73,8 +73,8 @@ class lehrform
|
||||
|
||||
if($row = pg_fetch_object($result))
|
||||
{
|
||||
$this->lehrform_kurbz = $row->lehrform_kurzbz;
|
||||
$this->bezeichnung = $row->bezeichung;
|
||||
$this->lehrform_kurzbz = $row->lehrform_kurzbz;
|
||||
$this->bezeichnung = $row->bezeichnung;
|
||||
$this->verplanen = ($row->verplanen?true:false);
|
||||
}
|
||||
else
|
||||
@@ -87,6 +87,32 @@ class lehrform
|
||||
|
||||
}
|
||||
|
||||
// ***************************
|
||||
// * Liefert alle Lehrformen
|
||||
// ***************************
|
||||
function getAll()
|
||||
{
|
||||
$qry = "SELECT * FROM lehre.tbl_lehrform ORDER BY lehrform_kurzbz";
|
||||
if(!$result=pg_query($this->conn,$qry))
|
||||
{
|
||||
$this->errormsg = 'Fehler beim lesen der Lehrform';
|
||||
return false;
|
||||
}
|
||||
|
||||
while($row = pg_fetch_object($result))
|
||||
{
|
||||
$lf = new lehrform($this->conn);
|
||||
|
||||
$lf->lehrform_kurzbz = $row->lehrform_kurzbz;
|
||||
$lf->bezeichnung = $row->bezeichnung;
|
||||
$lf->verplanen = ($row->verplanen?true:false);
|
||||
|
||||
$this->lehrform[] = $lf;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
// *******************************************
|
||||
// * Prueft die Variablen vor dem Speichern
|
||||
// * auf Gueltigkeit.
|
||||
|
||||
Reference in New Issue
Block a user