Subversion Repositories Applications.referentiel

Compare Revisions

Ignore whitespace Rev 37 → Rev 38

/trunk/services/modules/Referentiel.php
79,8 → 79,9
if (!is_null($projet)) {
$requete = ($this->distinct ? 'SELECT DISTINCT' : 'SELECT').' * '.
"FROM $projet ".
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'num_nom ASC').' ';
//"LIMIT $this->start, $this->limit ";
'ORDER BY '.((!is_null($this->orderby)) ? $this->orderby : 'num_nom ASC').' '.
"LIMIT $this->start, $this->limit ";
$this->debug[] = $requete;
// Récupération des résultats
try {
$donnees = $this->bdd->query($requete)->fetchAll(PDO::FETCH_ASSOC);
100,7 → 101,7
* Appelée avec les paramêtres d'url suivant :
* /RefReferentiel/nombre/code_du_referentiel
*/
public function getElementNombre($projet) {
public function getElementNombre($params_url) {
$p = $this->traiterParametresUrl(array('projet'), $params_url, false);
extract($p);