mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-20 08:22:17 +00:00
Buchungssuche in Addon Kontoimport hinzugefügt; Mail-Benachrichtigungen in Prüfungsverwaltung; Anpassungen Accountinfoblatt
This commit is contained in:
@@ -362,6 +362,7 @@ class benutzer extends person
|
||||
|
||||
$this->result[] = $obj;
|
||||
}
|
||||
$this->errormsg = $qry;
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -429,5 +430,34 @@ class benutzer extends person
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Baut die Datenstruktur für senden als JSON Objekt auf
|
||||
*/
|
||||
public function cleanResult()
|
||||
{
|
||||
$values = array();
|
||||
if (count($this->result) > 0)
|
||||
{
|
||||
foreach ($this->result as $ben)
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->uid = $ben->uid;
|
||||
$obj->vorname = $ben->vorname;
|
||||
$obj->nachname = $ben->nachname;
|
||||
$values[] = $obj;
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$obj = new stdClass();
|
||||
$obj->uid = $this->uid;
|
||||
$obj->vorname = $this->vorname;
|
||||
$obj->nachname = $this->nachname;
|
||||
$values[] = $obj;
|
||||
}
|
||||
return $values;
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user