Subversion Repositories eFlore/Applications.cel

Rev

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

Rev 2207 Rev 2216
Line 27... Line 27...
27
			$donnees['informations_image'] = $this->obtenirInformationsImages();
27
			$donnees['informations_image'] = $this->obtenirInformationsImages();
28
			$donnees['resolution_originale'] = $this->formaterResolutionOriginale($donnees['informations_image']);
28
			$donnees['resolution_originale'] = $this->formaterResolutionOriginale($donnees['informations_image']);
29
			$donnees['auteur_fmt'] = $this->formaterAuteur($donnees['informations_image']);
29
			$donnees['auteur_fmt'] = $this->formaterAuteur($donnees['informations_image']);
30
			$donnees['attribution'] = $this->formaterAttribution($donnees['informations_image']);
30
			$donnees['attribution'] = $this->formaterAttribution($donnees['informations_image']);
31
			$donnees['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
31
			$donnees['url_base'] = sprintf($this->config['chemins']['baseURLAbsoluDyn'], '');
32
			$donnees['date_televersement'] = date("d/m/Y",strtotime($donnees['informations_image']['date_creation']));
32
			$donnees['date_televersement'] = $this->formaterDateTeleversement($donnees['informations_image']);
33
			$donnees['url_image_exemple'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelImageFormat').'/'.$this->id_image.'?methode=afficher&format=CS';	
33
			$donnees['url_image_exemple'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelImageFormat').'/'.$this->id_image.'?methode=afficher&format=CS';	
34
			$donnees['url_image_originale'] = sprintf($this->config['chemins']['celImgUrlTpl'], str_pad($this->id_image, 9, "0", STR_PAD_LEFT).'O');
34
			$donnees['url_image_originale'] = sprintf($this->config['chemins']['celImgUrlTpl'], str_pad($this->id_image, 9, "0", STR_PAD_LEFT).'O');
35
			$donnees['base_url_telechargement'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelImageFormat').'/'.$this->id_image.'?methode=telecharger&format=%s';	
35
			$donnees['base_url_telechargement'] = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelImageFormat').'/'.$this->id_image.'?methode=telecharger&format=%s';	
36
			$contenu = $this->traiterSquelettePhp($squelette, $donnees);
36
			$contenu = $this->traiterSquelettePhp($squelette, $donnees);
37
		}
37
		}
Line 72... Line 72...
72
		}
72
		}
Line 73... Line 73...
73
		
73
		
74
		return $res_fmt;
74
		return $res_fmt;
Line -... Line 75...
-
 
75
	}
-
 
76
	
-
 
77
	private function formaterDateTeleversement($infos_image) {
-
 
78
		$date = "Date inconnue";
-
 
79
		if(isset($infos_image['date_creation'])) {
-
 
80
			$date = date("d/m/Y",strtotime($infos_image['date_creation']));
-
 
81
		}
-
 
82
		return $date;
75
	}
83
	}
76
	
84
	
77
	private function obtenirDescriptionFormats() {
85
	private function obtenirDescriptionFormats() {
Line 78... Line 86...
78
		$this->description_url = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelImageFormat');
86
		$this->description_url = sprintf($this->config['chemins']['baseURLServicesCelTpl'], 'CelImageFormat');