Пример #1
0
 /**
  * Renvoie les Hexas liés à une collection de Visibles
  * @param VisibleCollection $visibles
  * @return HexaCollection
  */
 public static function getFromVisibles(VisibleCollection $visibles)
 {
     $ids = $visibles->getIdHexas();
     if (!$ids) {
         return new HexaCollection();
     }
     $req = "SELECT * FROM hexa WHERE idHexa IN (" . $ids . ");";
     return DbHandler::collFromQuery($req, 'Hexa', 'HexaCollection');
 }