Subversion Repositories Applications.referentiel

Rev

Rev 51 | Rev 62 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 51 Rev 58
Line 37... Line 37...
37
	 */
37
	 */
38
	public function getTout($code_projet) {
38
	public function getTout($code_projet) {
39
		$url = $this->url_jrest.self::SERVICE."/Tout/$code_projet";
39
		$url = $this->url_jrest.self::SERVICE."/Tout/$code_projet";
40
		$nbre = $this->getNombre($code_projet);
40
		$nbre = $this->getNombre($code_projet);
41
		$noms = array();
41
		$noms = array();
42
		$pas = 1000;
42
		$pas = 10000;
43
		for ($i = 0; $i < $nbre ; $i += $pas) {
43
		for ($i = 0; $i < $nbre ; $i += $pas) {
44
			$this->setLimitation($i, $pas);
44
			$this->setLimitation($i, $pas);
45
			$json = $this->envoyerRequeteConsultation($url);
45
			$json = $this->envoyerRequeteConsultation($url);
46
			$noms_partiel = json_decode($json, true);
46
			$noms_partiel = json_decode($json, true);
47
			$noms = array_merge($noms, $noms_partiel);
47
			$noms = array_merge($noms, $noms_partiel);