public function get_all($params)
{
$params = parse_params($params);
$table = $this->tables['users'];
$data = $this->app->format->clean_html($params);
$orig_data = $data;
if (isset($data['ids']) and is_array($data['ids'])) {
if (!empty($data['ids'])) {
$ids = $data['ids'];
}
}
if (!isset($params['search_in_fields'])) {
$data['search_in_fields'] = array('id', 'first_name', 'last_name', 'username', 'email');
}
$cache_group = 'users/global';
if (isset($limit) and $limit != false) {
$data['limit'] = $limit;
}
if (isset($count_only) and $count_only != false) {
$data['count'] = $count_only;
}
if (isset($data['username']) and $data['username'] == false) {
unset($data['username']);
}
$data['table'] = $table;
$get = $this->app->database_manager->get($data);
return $get;
}