Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 776 → Rev 777

/trunk/metier/api_0.1/Syntaxons.php
New file
0,0 → 1,47
<?php
// declare(encoding='UTF-8');
/**
* Classe gérant les syntaxons
*
* @category PHP 5.2
* @package eflore-consultation
* @author Mathilde SALTHUN-LASSALLE <mathilde@tela-botanica.org>
* @copyright 2011 Tela-Botanica
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
* @version $Id$
*/
 
class Syntaxons extends Eflore {
private $catminat;
public function setCatminat($code) {
$this->catminat = 'catminat:'.$code;
}
public function getSyntaxonsSuperieurs() {
$url = $this->getUrlSyntaxonsSuperieurs();
return $this->chargerDonnees($url);
}
public function getSyntaxonsCatminat() {
$url = $this->getUrlSyntaxonsCatminat();
return $this->chargerDonnees($url);
}
public function getUrlSyntaxonsCatminat() {
$tpl = Config::get('syntaxonsCatminat');
$params = array( 'code' => urlencode($this->catminat));
$url = $this->formaterUrl($tpl, $params);
return $url;
}
public function getUrlSyntaxonsSuperieurs() {
$tpl = Config::get('syntaxonsSuperieurs');
$params = array( 'code' => $this->catminat);
$url = $this->formaterUrl($tpl, $params);
return $url;
}
}
?>