function getList($pagina = 1, $nrpp = Constants::NRPP) { $registroinicial = ($pagina - 1) * $nrpp; $this->bd->select($this->tabla, "*", "1=1", array(), "nombreexpo, fecha, id", "{$registroinicial} , {$nrpp}"); $r = array(); while ($fila = $this->bd->getRow()) { $exposicion = new Exposicion(); $exposicion->set($fila); $r[] = $exposicion; } return $r; }