function getList($pagina = 1, $orden = "", $nrpp = Constants::NRPP) { $ordenPredeterminado = "{$orden}, id, email, titulo, descripcion, imagen"; if ($orden === "" || $orden === null) { $ordenPredeterminado = "id, email, titulo, descripcion, imagen"; } $registroInicial = ($pagina - 1) * $nrpp; $this->bd->select($this->tabla, "*", "1=1", array(), $ordenPredeterminado, "{$registroInicial}, {$nrpp}"); $r = array(); while ($fila = $this->bd->getRow()) { $imagen = new Imagenes(); $imagen->set($fila); $r[] = $imagen; } return $r; //Devuelve un array de Imagenes }