예제 #1
0
 function set(Foto $foto)
 {
     $parametrosSet = array();
     $parametrosSet["idautor"] = $foto->getIdautor();
     $parametrosSet["titulo"] = $foto->getTitulo();
     $parametrosSet["categoria"] = $foto->getCategoria();
     $parametrosSet["fecha"] = $foto->getFecha();
     $parametrosSet["rutafoto"] = $foto->getRuta();
     $parametrosWhere = array();
     $parametrosWhere["id"] = $foto->getID();
     return $this->bd->update($this->tabla, $parametrosSet, $parametrosWhere);
 }
예제 #2
0
 function erase(Foto $foto)
 {
     //borrar por nombre
     //dice ele numero de filas borratas
     return $this->delete($foto->getID());
 }