Subversion Repositories eFlore/Projets.eflore-projets

Compare Revisions

Ignore whitespace Rev 535 → Rev 536

/trunk/services/modules/0.1/commun/Commun.php
44,6 → 44,10
private static $tri_multi_dimension = array();
private static $tri_type = '';
 
public function __construct() {
$this->config = is_null($config) ? Config::get($this->serviceNom) : $config;
}
public function consulter($ressources, $parametres) {
$this->ressources = $ressources;
$this->parametres = $parametres;
74,7 → 78,7
$this->serviceNom = get_class($this);
}
 
public function traiterResultat($resultat, $version) {
public function traiterResultat($resultat, $version) {
$versionResultat = null;
if ($resultat == '') {
//cas ou la requete comporte des erreurs
286,6 → 290,15
}
}
 
public function getDureeCache() {
$dureecache = 0;
$dureecache = Config::get('dureecache');
if ($dureecache == null || !is_numeric($dureecache) || $dureecache < 0) {
$dureecache = 0;
}
return (int) $dureecache;
}
public function ajouterHref($service, $val) {
// http://tela-botanica.org/service:eflore:0.1/[projet]/[version_projet]/[service]/[ressource]:[valeur]
if ($this->version_projet == '+') {