Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 275 Rev 291
Line 11... Line 11...
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
11
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
12
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
13
 * @version		$Id$
13
 * @version		$Id$
14
 */
14
 */
15
class MetaDonnees extends Eflore {
15
class MetaDonnees extends Eflore {
16
	private $version;
16
	private $version = '+';
17
	
17
 
18
	public function __construct($projet, $version = '+') {
18
	public function setVersion($version) {
19
		parent::__construct($projet);
-
 
20
		$this->version = $version;
19
		$this->version = $version;
21
	}
20
	}
22
	
21
 
23
	public function getMetaDonnees() {
22
	public function getMetaDonnees() {
24
		$url = $this->getUrlRecherche();
23
		$url = $this->getUrlRecherche();
25
		return $this->chargerDonnees($url);
24
		return $this->chargerDonnees($url);
26
	}
25
	}
Line 27... Line -...
27
 
-
 
28
	// retourne les champs par defaut
26
 
29
	private function getUrlRecherche($nom, $typeRech) {
27
	private function getUrlRecherche($nom, $typeRech) {
30
		$tpl = Config::get('metaDonneesTpl');
28
		$tpl = Config::get('metaDonneesTpl');
31
		$params = array('verproj' => 'version.projet', 'version' => $this->version);
29
		$params = array('verproj' => 'version.projet', 'version' => $this->version);
32
		$url = $this->formaterUrl($tpl, $params);
30
		$url = $this->formaterUrl($tpl, $params);