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);
     }
 }
Esempio n. 2
0
 private function setPerson($personId)
 {
     $p = new \App\Person();
     $person = $p->load($personId);
     $this->person = $person;
     return $person;
 }