mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 12:19:28 +00:00
This commit is contained in:
@@ -30,6 +30,7 @@ class organisationseinheit extends basis_db
|
||||
{
|
||||
public $new; // @var boolean
|
||||
public $errormsg; // @var string
|
||||
public $result;
|
||||
|
||||
//Tabellenspalten
|
||||
public $oe_kurzbz;
|
||||
@@ -87,6 +88,32 @@ class organisationseinheit extends basis_db
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Laedt alle Organisationseinheiten an oberster Stelle
|
||||
*
|
||||
* @return true wenn ok, false wenn Fehler
|
||||
*/
|
||||
public function getHeads()
|
||||
{
|
||||
$qry = "SELECT * FROM public.tbl_organisationseinheit WHERE oe_parent_kurzbz is null";
|
||||
|
||||
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;
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Liefert die ChildNodes einer Organisationseinheit
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user