function set(Artist $usuario) { //return $this->bd->update($this->tabla, $city->get()); $paramsWhere = array(); $paramsWhere["email"] = $usuario->getEmail(); return $this->bd->update($this->tabla, $usuario->get(), $paramsWhere); }
function set(Artist $param, $pkcode = NULL) { $parametros = $param->get(); $parametrosWhere = array(); if ($pkcode !== NULL) { $parametrosWhere["id"] = $pkcode; } else { $parametrosWhere["id"] = $param->getEmail(); } return $this->db->update($this->table, $parametros, $parametrosWhere); }
private static function editSet() { $bd = new BaseDatos(); $sesion = new Session(); $artista = self::getArtist($sesion); $gestor_artista = new ManageArtist($bd); $titulo = Request::post("titulo"); $descripcion = Request::post("descripcion"); $perfil = Request::post("perfil"); $artista = new Artist($artista->getEmail(), $titulo, $descripcion, $perfil, $artista->getGaleria(), $artista->getStyle()); $r = $gestor_artista->set($artista); header("Location:?op=edit&r={$r}&action=read&do=View"); }