public static function excluir() { $foto = new Foto(); $foto->selecionarPorId($_POST['id']); $foto->excluir(); }