mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-25 08:34:29 +00:00
This commit is contained in:
@@ -30,6 +30,7 @@ class organisationseinheit extends basis_db
|
|||||||
{
|
{
|
||||||
public $new; // @var boolean
|
public $new; // @var boolean
|
||||||
public $errormsg; // @var string
|
public $errormsg; // @var string
|
||||||
|
public $result;
|
||||||
|
|
||||||
//Tabellenspalten
|
//Tabellenspalten
|
||||||
public $oe_kurzbz;
|
public $oe_kurzbz;
|
||||||
@@ -87,6 +88,32 @@ class organisationseinheit extends basis_db
|
|||||||
return true;
|
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
|
* Liefert die ChildNodes einer Organisationseinheit
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user