ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\Help\GuidedTour\Elements\IdPresentation Class Reference
+ Collaboration diagram for ILIAS\Help\GuidedTour\Elements\IdPresentation:

Public Member Functions

 __construct (protected InternalDomainService $domain)
 
 saveIdPresentationUsers (string $users)
 
 getIdPresentationUsers ()
 
 getValidIdPresentationUsers ()
 

Protected Attributes

ilSetting $gdtr_admin_setting
 

Detailed Description

Definition at line 29 of file IdPresentation.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Help\GuidedTour\Elements\IdPresentation::__construct ( protected InternalDomainService  $domain)

Definition at line 33 of file IdPresentation.php.

35 {
36 $this->gdtr_admin_setting = new \ilSetting("gdtr");
37 }

Member Function Documentation

◆ getIdPresentationUsers()

ILIAS\Help\GuidedTour\Elements\IdPresentation::getIdPresentationUsers ( )

Definition at line 44 of file IdPresentation.php.

44 : string
45 {
46 return $this->gdtr_admin_setting->get("id_presentation_users", "");
47 }

Referenced by ILIAS\Help\GuidedTour\Elements\IdPresentation\getValidIdPresentationUsers().

+ Here is the caller graph for this function:

◆ getValidIdPresentationUsers()

ILIAS\Help\GuidedTour\Elements\IdPresentation::getValidIdPresentationUsers ( )

Definition at line 49 of file IdPresentation.php.

49 : array
50 {
51 $valid_users = [];
52 foreach (explode(",", $this->getIdPresentationUsers()) as $user) {
53 if (\ilObjUser::_loginExists(trim($user))) {
54 $valid_users[] = trim($user);
55 }
56 }
57 return $valid_users;
58 }
static _loginExists(string $a_login, int $a_user_id=0)

References ilObjUser\_loginExists(), and ILIAS\Help\GuidedTour\Elements\IdPresentation\getIdPresentationUsers().

+ Here is the call graph for this function:

◆ saveIdPresentationUsers()

ILIAS\Help\GuidedTour\Elements\IdPresentation::saveIdPresentationUsers ( string  $users)

Definition at line 39 of file IdPresentation.php.

39 : void
40 {
41 $this->gdtr_admin_setting->set("id_presentation_users", $users);
42 }

Field Documentation

◆ $gdtr_admin_setting

ilSetting ILIAS\Help\GuidedTour\Elements\IdPresentation::$gdtr_admin_setting
protected

Definition at line 31 of file IdPresentation.php.


The documentation for this class was generated from the following file: