Subversion Repositories eFlore/Applications.del

Compare Revisions

Regard whitespace Rev 1894 → Rev 1895

/branches/v1.5-carbone/services/modules/0.1/Syndication.php
78,9 → 78,13
}
 
private function analyserRessources() {
if ($this->methode == 'consulter') {
if (isset($this->ressources[0])) {
$this->sousServiceNom = $this->ressources[0];
if ($this->methode == 'consulter' && isset($this->ressources[0])) {
if (preg_match('/^tags|votes-?-Par-?Tag|tags-?Par-?Protocole$/i', $this->ressources[0])) {
$this->sousServiceNom = 'tags';
} else if (preg_match('/^votes|votes-?Par-?Protocole$/i', $this->ressources[0])){
$this->sousServiceNom = 'votes';
} else if ($this->ressources[0] == 'commentaires') {
$this->sousServiceNom = 'commentaires';
}
}
if ($this->sousServiceNom == null) {
109,7 → 113,7
}
 
private function initialiserService() {
$classe = $this->obtenirNomClasseService($this->sousServiceNom);
$classe = $this->obtenirNomClasseService();
$chemins = array();
$chemins[] = $this->cheminCourant.$this->serviceNom.DS.$classe.'.php';
$chemins[] = $this->cheminCourant.'commun'.DS.$classe.'.php';
142,9 → 146,8
return $retour;
}
 
private function obtenirNomClasseService($mot) {
$classeNom = str_replace(' ', '', ucwords(strtolower(str_replace('-', ' ', $mot))));
return $classeNom;
private function obtenirNomClasseService() {
return str_replace(' ', '', ucwords(strtolower(str_replace('-', ' ', $this->sousServiceNom))));
}
 
private function creerResultatService($donnees) {