19 declare(strict_types=1);
46 public function __construct(mixed $a_parent_obj, $a_parent_cmd =
"", $a_template_context =
"")
51 $this->
renderer = $DIC->ui()->renderer();
52 $this->uiFactory = $DIC->ui()->factory();
66 $this->
lng->txt(
'name')
68 $this->current_filter[
'login'] = (string) $login->getValue();
69 $this->current_filter[
'roles'] = 0;
75 $this->
lng->txt(
'objs_role')
79 $options[0] = $this->
lng->txt(
'all_roles');
80 $role->setOptions($options + $this->
getParentObject()->getLocalRoles());
81 $this->current_filter[
'roles'] = (
int) $role->getValue();
87 $options[0] = $this->
lng->txt(
'select_one');
88 foreach ($paths as $org_ref_id =>
$path) {
89 $options[$org_ref_id] =
$path;
96 $this->
lng->txt(
'org_units')
98 $org->setOptions($options);
99 $this->current_filter[
'org_units'] = $org->getValue();
109 $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'ps');
110 if (self::$all_columns) {
111 # return self::$all_columns; 118 self::$all_columns[
'prtf'] = array(
119 'txt' => $this->
lng->txt(
'obj_prtf'),
124 $login = array_splice(self::$all_columns, 0, 1);
125 self::$all_columns = array_merge(
129 'txt' => $this->
lng->txt(
'objs_role'),
135 self::$all_columns = array_merge($login, self::$all_columns);
136 return self::$all_columns;
151 if (!self::$confirmation_required) {
154 if (!self::$export_allowed) {
157 return in_array($a_usr_id, self::$accepted_ids);
162 if (self::$accepted_ids !==
null) {
183 $this->
ctrl->setParameter($this->parent_obj,
'member_id', $a_set[
'usr_id']);
185 $dropDownItems = array();
186 $dropDownItems[] = $this->uiFactory->button()->shy(
187 $this->
lng->txt(
'edit'),
188 $this->
ctrl->getLinkTarget($this->parent_obj,
'editMember')
191 if (self::$has_odf_definitions) {
192 $this->
ctrl->setParameterByClass(
'ilobjectcustomuserfieldsgui',
'member_id', $a_set[
'usr_id']);
193 $dropDownItems[] = $this->uiFactory->button()->shy(
194 $this->
lng->txt($this->getRepositoryObject()->getType() .
'_cdf_edit_member'),
195 $this->
ctrl->getLinkTargetByClass(
'ilobjectcustomuserfieldsgui',
'editMember')
200 $this->
ctrl->setParameterByClass(
'illomembertestresultgui',
'uid', $a_set[
'usr_id']);
201 $dropDownItems[] = $this->uiFactory->button()->shy(
202 $this->
lng->txt(
'crs_loc_mem_show_res'),
203 $this->
ctrl->getLinkTargetByClass(
'illomembertestresultgui',
'')
207 $dropDown = $this->uiFactory->dropdown()->standard($dropDownItems);
208 $this->tpl->setVariable(
'ACTION_USER', $this->
renderer->render($dropDown));
static array $accepted_ids
checkAcceptance(int $a_usr_id)
static getTextRepresentationOfOrgUnits(bool $sort_by_title=true)
Get ref id path array.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
initFilter()
Init table filter.
isColumnSelected(string $col)
addFilterItemByMetaType(string $id, int $type=self::FILTER_TEXT, bool $a_optional=false, string $caption="")
Add filter by standard type.
static bool $confirmation_required
__construct(mixed $a_parent_obj, $a_parent_cmd="", $a_template_context="")
const IL_CRS_VIEW_OBJECTIVE
Base class for course and group participants.
static _getInstanceByType(string $a_type)
Get Singleton Instance.
static bool $has_odf_definitions
__construct(Container $dic, ilPlugin $plugin)
static array $all_columns
ilParticipants $participants
static lookupAcceptedAgreements(int $a_obj_id)
Lookup users who have accepted the agreement.
setDefaultFilterVisiblity(bool $a_status)
static _hasFields(int $a_container_id)
Check if there are any define fields.
static bool $export_allowed