19 declare(strict_types=1);
40 private readonly
string $action,
48 $is_input_initially_rendered = [];
49 $field_factory = $this->ui_factory->input()->field();
51 foreach ($this->
getFilterFields($field_factory) as $filter_id => $filter) {
52 [$filter_inputs[$filter_id], $is_input_initially_rendered[$filter_id]] =
$filter;
55 $this->
filter = $this->ui_service->filter()->standard(
59 $is_input_initially_rendered,
82 $field_factory->
text($this->
lng->txt(
'registration_code'))->withMaxLength(
89 foreach ($this->rbac_review->getGlobalRoles() as $role_id) {
95 $options = [
'' => $this->
lng->txt(
'registration_roles_all')] + $role_map;
96 $filters[
'role'] = [$field_factory->select($this->
lng->txt(
'role'), $options),
true];
99 '' => $this->
lng->txt(
'registration_codes_access_limitation_all'),
100 'unlimited' => $this->
lng->txt(
'reg_access_limitation_none'),
101 'absolute' => $this->
lng->txt(
'reg_access_limitation_mode_absolute'),
102 'relative' => $this->
lng->txt(
'reg_access_limitation_mode_relative')
104 $filters[
'alimit'] = [$field_factory->select($this->
lng->txt(
'reg_access_limitations'), $options),
true];
106 $options = [
'' => $this->
lng->txt(
'registration_generated_all')];
107 foreach ($this->code_repository->getGenerationDates() as $date) {
110 $filters[
'generated'] = [$field_factory->select($this->
lng->txt(
'registration_generated'), $options),
true];
getFilterFields(Factory $field_factory)
static _lookupTitle(int $obj_id)
__construct(private readonly string $action, private readonly UIFactory $ui_factory, private readonly ilUIService $ui_service, private readonly ilLanguage $lng, private readonly ilRbacReview $rbac_review, private readonly RegistrationCodeRepository $code_repository,)
static formatDate(ilDateTime $date, bool $a_skip_day=false, bool $a_include_wd=false, bool $include_seconds=false, ?ilObjUser $user=null,)
filter(string $filter_id, $class_path, string $cmd, bool $activated=true, bool $expanded=true)