filterPerson unrulyPerson api & person model

This commit is contained in:
Johann Hoffmann
2024-09-12 15:42:21 +02:00
parent b2dbe65739
commit 27c312d7d3
4 changed files with 84 additions and 3 deletions
@@ -387,6 +387,15 @@ class Person_model extends DB_Model
return $this->execQuery($qry, [$vorname, $nachname, $gebdatum]);
}
public function checkUnrulyWhere($where, $paramsArray)
{
$qry = 'SELECT *
FROM tbl_person p
WHERE '.$where.';';
return $this->execQuery($qry, $paramsArray);
}
public function updateUnruly($person_id, $unruly)
{
$result = $this->update($person_id, array(