function __buildFilterSelect($a_parent_ids) { $action[0] = $this->lng->txt('all_users'); $action[$this->object->getRefId()] = $this->lng->txt('users') . ' (' . ilObject::_lookupTitle(ilObject::_lookupObjId($this->object->getRefId())) . ')'; foreach ($a_parent_ids as $parent) { if ($parent == $this->object->getRefId()) { continue; } switch ($parent) { case ilLocalUser::_getUserFolderId(): $action[ilLocalUser::_getUserFolderId()] = $this->lng->txt('global_user'); break; default: $action[$parent] = $this->lng->txt('users') . ' (' . ilObject::_lookupTitle(ilObject::_lookupObjId($parent)) . ')'; break; } } return ilUtil::formSelect($_SESSION['filtered_users'][$this->object->getRefId()], "filter", $action, false, true); }