ILIAS  trunk Revision v11.0_alpha-1831-g8615d53dadb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ceLTIc\LTI\User\ProviderCourseContacts Class Reference

All course contacts listed. More...

+ Inheritance diagram for ceLTIc\LTI\User\ProviderCourseContacts:
+ Collaboration diagram for ceLTIc\LTI\User\ProviderCourseContacts:

Public Member Functions

 __construct (Container $DIC)
 
 getProviderId ()
 Get provider id. More...
 
 getTitle ()
 Provider title (used in awareness overlay and in administration settings) More...
 
 getInfo ()
 Provider info (used in administration settings) More...
 
 getInitialUserSet (?array $user_ids=null)
 Get initial set of users. More...
 
 isHighlighted ()
 Is highlighted. More...
 

Protected Attributes

ilObjUser $user
 
ilLanguage $lng
 
ilDBInterface $db
 

Detailed Description

All course contacts listed.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 27 of file class.ProviderCourseContacts.php.

Constructor & Destructor Documentation

◆ __construct()

ceLTIc\LTI\User\ProviderCourseContacts::__construct ( Container  $DIC)

Definition at line 33 of file class.ProviderCourseContacts.php.

References ILIAS\Repository\lng(), and ILIAS\Repository\user().

34  {
35  $this->db = $DIC->database();
36  $this->lng = $DIC->language();
37  $this->user = $DIC->user();
38  }
global $DIC
Definition: shib_login.php:22
+ Here is the call graph for this function:

Member Function Documentation

◆ getInfo()

ceLTIc\LTI\User\ProviderCourseContacts::getInfo ( )

Provider info (used in administration settings)

Returns
string provider info text

Implements ceLTIc\LTI\User\Provider.

Definition at line 63 of file class.ProviderCourseContacts.php.

References ILIAS\Repository\lng().

63  : string
64  {
65  $this->lng->loadLanguageModule("crs");
66  return $this->lng->txt("crs_awrn_support_contacts_info");
67  }
+ Here is the call graph for this function:

◆ getInitialUserSet()

ceLTIc\LTI\User\ProviderCourseContacts::getInitialUserSet ( ?array  $user_ids = null)

Get initial set of users.

Parameters
?int[]$user_ids
Returns
int[] array of user IDs

Implements ceLTIc\LTI\User\Provider.

Definition at line 74 of file class.ProviderCourseContacts.php.

References $c, ilParticipants\_getAllSupportContactsOfUser(), ILIAS\Repository\int(), and ILIAS\Repository\user().

74  : array
75  {
76  $ub = array();
77  $support_contacts = \ilParticipants::_getAllSupportContactsOfUser($this->user->getId(), "crs");
78  foreach ($support_contacts as $c) {
79  $ub[] = (int) $c["usr_id"];
80  }
81  return $ub;
82  }
$c
Definition: deliver.php:25
static _getAllSupportContactsOfUser(int $a_usr_id, string $a_type)
Get all support contacts for a user.
+ Here is the call graph for this function:

◆ getProviderId()

ceLTIc\LTI\User\ProviderCourseContacts::getProviderId ( )

Get provider id.

Returns
string provider id

Implements ceLTIc\LTI\User\Provider.

Definition at line 44 of file class.ProviderCourseContacts.php.

44  : string
45  {
46  return "crs_contacts";
47  }

◆ getTitle()

ceLTIc\LTI\User\ProviderCourseContacts::getTitle ( )

Provider title (used in awareness overlay and in administration settings)

Returns
string provider title

Implements ceLTIc\LTI\User\Provider.

Definition at line 53 of file class.ProviderCourseContacts.php.

References ILIAS\Repository\lng().

53  : string
54  {
55  $this->lng->loadLanguageModule("crs");
56  return $this->lng->txt("crs_awrn_support_contacts");
57  }
+ Here is the call graph for this function:

◆ isHighlighted()

ceLTIc\LTI\User\ProviderCourseContacts::isHighlighted ( )

Is highlighted.

Returns
bool return true, if user group should be highlighted (using extra highlighted number)

Implements ceLTIc\LTI\User\Provider.

Definition at line 84 of file class.ProviderCourseContacts.php.

84  : bool
85  {
86  return false;
87  }

Field Documentation

◆ $db

ilDBInterface ceLTIc::LTI\User\ProviderCourseContacts::$db
protected

Definition at line 31 of file class.ProviderCourseContacts.php.

◆ $lng

ilLanguage ceLTIc::LTI\User\ProviderCourseContacts::$lng
protected

Definition at line 30 of file class.ProviderCourseContacts.php.

◆ $user

ilObjUser ceLTIc::LTI\User\ProviderCourseContacts::$user
protected

Definition at line 29 of file class.ProviderCourseContacts.php.


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