コード例 #1
0
 /**
  * Obtenir toutes les images des événements d'une personne
  *
  * @param int $id ID de la personne
  *
  * @return array
  * */
 public static function getImages($id)
 {
     global $config;
     $events = self::getEvents($id);
     $img = new archiImage();
     foreach ($events as $event) {
         $params = array("select" => "hi1.idImage, hi1.dateUpload, hi1.idHistoriqueImage", "idEvenement" => $event["idEvenementAssocie"]);
         $res = $config->connexionBdd->requete($img->getImagesFromEvenement($params));
         while ($image = mysql_fetch_object($res)) {
             $return[] = $image;
         }
     }
     return $return;
 }