private function loadPerson($id) { try { $p = new \App\Person(); return $p->load($id); } catch (\Exception $e) { getSystem()->getRender()->error(500, "Error while loading person", $e); } }
private function setPerson($personId) { $p = new \App\Person(); $person = $p->load($personId); $this->person = $person; return $person; }