Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 66 → Rev 67

/trunk/bibliotheque/utilitaires/Tableau.php
13,12 → 13,12
*/
public static function etendre(Array &$tableau_a_etendre, Array &$tableau_a_copier) {
$cles_existantes = null;
foreach($tableau_a_copier as $cle => $val) {
foreach ($tableau_a_copier as $cle => $val) {
if (!isset($tableau_a_etendre[$cle])) {
$tableau_a_etendre[$cle] = $val;
unset($tableau_a_copier[$cle]);
} else {
$cles_existantes = $cle;
$cles_existantes[] = $cle;
}
}
if (is_array($cles_existantes)) {
/trunk/bibliotheque/dao/ReferentielDao.php
39,13 → 39,12
$url = $this->url_jrest.self::SERVICE."/Tout/$code_projet";
$nbre = $this->getNombre($code_projet);
$noms = array();
$pas = 10000;
$pas = 5000;
for ($i = 0; $i < $nbre ; $i += $pas) {
$this->setLimitation($i, $pas);
$json = $this->envoyerRequeteConsultation($url);
$noms_partiel = json_decode($json, true);
Tableau::etendre($noms, $noms_partiel);
if ($i > $pas) break;
}
return $noms;
}