Subversion Repositories eFlore/Applications.del

Compare Revisions

Ignore whitespace Rev 759 → Rev 782

/trunk/services/modules/0.1/images/VotesImage.php
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
--------------------------------------------------------------------------------*/