21,10 → 21,7 |
|
private $conteneur; |
private $navigation; |
private $masque; |
private $bdd; |
private $parametres = array(); |
private $ressources = array(); |
|
private $mapping = array(); |
private $mappingInverse = array(); |
32,7 → 29,6 |
public function __construct(Conteneur $conteneur = null) { |
$this->conteneur = ($conteneur == null) ? new Conteneur() : $conteneur; |
$this->navigation = $this->conteneur->getNavigation(); |
$this->masque = $this->conteneur->getMasque(); |
$this->bdd = $this->conteneur->getBdd(); |
|
$this->mapping = $this->conteneur->getParametreTableau('commentaires.mapping'); |
74,7 → 70,7 |
|
private function creerClauseWhere() { |
$where = array(); |
$filtres = $this->masque->getMasque(); |
$filtres = $this->navigation->getFiltre(); |
if (!empty($filtres)) { |
foreach ($filtres as $cle => $valeur) { |
$where[] = $this->mappingInverse[$cle].' = '.$this->bdd->proteger($valeur); |