idSite = $idSite; $this->period = $period; $this->date = $date; } /** * @param DataTable $table */ public function filter($table) { $userId = new UserId(); if (!$userId->hasDataTableUsers($table) && !$userId->isUsedInAtLeastOneSite(array($this->idSite), $this->period, $this->date)) { $table->deleteColumn(Metrics::INDEX_NB_USERS); } } }