ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilMailSearchCoursesGUI.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
27{
28 protected function getObjectType(): string
29 {
30 return 'crs';
31 }
32
33 protected function getLocalDefaultRolePrefixes(): array
34 {
35 return [
36 'il_crs_member_',
37 'il_crs_tutor_',
38 'il_crs_admin_',
39 ];
40 }
41
42 protected function doesExposeMembers(ilObject $object): bool
43 {
44 $isOffline = !$object->isActivated();
45 $showMemberListEnabled = (bool) $object->getShowMembers();
46 $isPrivilegedUser = $this->rbacsystem->checkAccess('write', $object->getRefId());
47
48 return (!$isOffline && $showMemberListEnabled) || $isPrivilegedUser;
49 }
50}
Class ilObject Basic functions for all objects.