Prüfungsverwaltung; Student kann sich zu Prüfung anmelden

This commit is contained in:
Stefan Puraner
2014-03-26 10:01:31 +00:00
parent 735f600ef4
commit 11fe90b0f4
8 changed files with 1477 additions and 206 deletions
+29
View File
@@ -516,5 +516,34 @@ class organisationseinheit extends basis_db
}
return $data;
}
public function getByTyp($oetyp_kurzbz)
{
$qry = 'SELECT * FROM public.tbl_organisationseinheit WHERE organisationseinheittyp_kurzbz='.$this->db_add_param($oetyp_kurzbz).';';
if($this->db_query($qry))
{
while($row = $this->db_fetch_object())
{
$obj = new organisationseinheit();
$obj->oe_kurzbz = $row->oe_kurzbz;
$obj->oe_parent_kurzbz = $row->oe_parent_kurzbz;
$obj->bezeichnung = $row->bezeichnung;
$obj->organisationseinheittyp_kurzbz = $row->organisationseinheittyp_kurzbz;
$obj->aktiv = $this->db_parse_bool($row->aktiv);
$obj->mailverteiler = $this->db_parse_bool($row->mailverteiler);
$obj->lehre = $this->db_parse_bool($row->lehre);
$this->result[] = $obj;
}
return true;
}
else
{
$this->errormsg = 'Fehler beim Laden der Organisationseinheiten';
return false;
}
}
}
?>