function cambiaStatus() { $publi = new publicaciones($_POST["id"]); $publi->setStatus($_POST["tipo"], $_POST["anterior"]); }