60,6 → 60,20 |
return $resultat; |
} |
|
public function ajouter($ressources, $parametres) { |
//$today = |
$insertion = 'INSERT INTO `del`.`del_image_vote` '. |
'(`ce_image`, `ce_protocole`, `ce_utilisateur`, `valeur`, `date`) |
VALUES ('.$ressources[0].','.$parametres['protocole'].','.$parametres['utilisateur'].','. |
$parametres['valeur'].', NOW());'; |
$resultatsVotes = $this->bdd->requeter($insertion); |
if ($resultatsVotes == false) { |
RestServeur::envoyerEnteteStatutHttp(RestServeur::HTTP_CODE_MAUVAISE_REQUETE); |
} else { |
RestServeur::envoyerEnteteStatutHttp(RestServeur::HTTP_CODE_CREATION_OK); |
} |
} |
|
/*------------------------------------------------------------------------------- |
CONFIGURATION DU SERVICE |
--------------------------------------------------------------------------------*/ |