/** * Adds the inactive users check to the filter SQL. * * @param array $filters An array of requested filter data. Formatted like [filtername]=>[data]. * @return array An array consisting of the SQL WHERE clause, and the parameters for the SQL. */ protected function get_filter_sql(array $filters) { list($filtersql, $filterparams) = parent::get_filter_sql($filters); return array($filtersql, $filterparams); }
/** * Adds the inactive users check to the filter SQL. * * @param array $filters An array of requested filter data. Formatted like [filtername]=>[data]. * @return array An array consisting of the SQL WHERE clause, and the parameters for the SQL. */ protected function get_filter_sql(array $filters) { list($filtersql, $filterparams) = parent::get_filter_sql($filters); if (empty(elis::$config->local_elisprogram->legacy_show_inactive_users)) { $activefilter = 'element.inactive = 0 '; $filtersql = !empty($filtersql) ? $filtersql . ' AND ' . $activefilter : 'WHERE ' . $activefilter; } return array($filtersql, $filterparams); }