Ejemplo n.º 1
0
 public function creaDaArray($row)
 {
     $esame = new Esame();
     $esame->setId($row['esami_id']);
     $esame->setData(new DateTime($row['esami_data']));
     $esame->setVoto($row['esami_voto']);
     $esame->setStudente(UserFactory::instance()->creaStudenteDaArray($row));
     $esame->setInsegnamento(InsegnamentoFactory::instance()->creaDaArray($row));
     return $esame;
 }