Subversion Repositories eFlore/Applications.cel

Compare Revisions

Regard whitespace Rev 2501 → Rev 2502

/branches/v2.8-houe/jrest/services/CelStatistiqueTxt.php
213,7 → 213,7
}
 
private function getNbImagesPubliques() {
$requete = $this->construireRequeteNbreImgLiees();
$requete = $this->construireRequeteNbreImgLiees(true);
$info =(int) Cel::db()->requeterValeurUnique($requete);
return $info;
}
325,7 → 325,7
return $requete;
}
 
private function construireRequeteNbreImgLiees() {
private function construireRequeteNbreImgLiees($publiquesSeulement=false) {
$select = 'SELECT COUNT(DISTINCT ci.id_image) AS nbre ';
$from = 'FROM cel_images ci ';
 
343,6 → 343,9
if (isset($taxon)) {
$filtres[] = "nom_ret LIKE $taxon ";
}
if ($publiquesSeulement === true) {
$filtres[] = "transmission = 1";
}
 
if (isset($num_taxon) || isset($taxon)) {
$from .= 'LEFT JOIN cel_obs ON (ci.ce_observation = co.id_observation) ';