15,6 → 15,7 |
class PersonneDao extends ColModele { |
const SERVICE_PERSONNE = 'CoelPersonne'; |
const SERVICE_PERSONNE_A_PUBLICATION = 'CoelPublicationAPersonne'; |
const SERVICE_PERSONNE_A_COLLECTION = 'CoelCollectionAPersonne'; |
|
/** |
* Retourne l'ensemble des information d'une personne. |
45,10 → 46,23 |
$url = $this->url_jrest.self::SERVICE_PERSONNE_A_PUBLICATION."/*/$id_personne/2361,2362,2363"; |
$json = file_get_contents($url); |
$donnees = json_decode($json, true); |
$this->nettoyerTableauDeTableauxAssoc($donnees['publicationsAPersonne']); |
return $donnees['publicationsAPersonne']; |
} |
|
/** |
* Retourne l'ensemble des collections liées à une personne. |
* |
* @param integer l'id de la personne. |
* @return array un tableau contenant les informations sur les collections liées à la personne. |
*/ |
public function getPersonneACollection($id_personne) { |
$url = $this->url_jrest.self::SERVICE_PERSONNE_A_COLLECTION."/*/*/$id_personne"; |
$url .= '?orderby='.urlencode("cc_nom ASC"); |
$json = file_get_contents($url); |
$donnees = json_decode($json, true); |
return $donnees['collectionsAPersonne']; |
} |
|
public function getPersonneNomComplet($id) { |
$nom_complet = ''; |
$donnees = $this->getPersonne($id); |