Ejemplo n.º 1
0
 protected function getResource($id)
 {
     if (!$id) {
         $id = $this->inputValue($id);
     }
     // chama finder somente se possuir id, senão ocorrerá exception
     $resource = empty($id) ? null : App_Model_IedFinder::getAluno($this->getEscolaId(), $id);
     return $resource;
 }