ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Awareness\User\ProviderCourseContacts Class Reference

All course contacts listed. More...

+ Inheritance diagram for ILIAS\Awareness\User\ProviderCourseContacts:
+ Collaboration diagram for ILIAS\Awareness\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...
 
 getProviderId ()
 
 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()

ILIAS\Awareness\User\ProviderCourseContacts::__construct ( Container  $DIC)

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

34 {
35 $this->db = $DIC->database();
36 $this->lng = $DIC->language();
37 $this->user = $DIC->user();
38 }
global $DIC
Definition: shib_login.php:26

References $DIC, ILIAS\DI\Container\language(), ILIAS\Repository\lng(), ILIAS\DI\Container\user(), and ILIAS\Repository\user().

+ Here is the call graph for this function:

Member Function Documentation

◆ getInfo()

ILIAS\Awareness\User\ProviderCourseContacts::getInfo ( )

Provider info (used in administration settings)

Returns
string provider info text

Implements ILIAS\Awareness\User\Provider.

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

63 : string
64 {
65 $this->lng->loadLanguageModule("crs");
66 return $this->lng->txt("crs_awrn_support_contacts_info");
67 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ getInitialUserSet()

ILIAS\Awareness\User\ProviderCourseContacts::getInitialUserSet ( ?array  $user_ids = null)

Get initial set of users.

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

Implements ILIAS\Awareness\User\Provider.

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

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 }
static _getAllSupportContactsOfUser(int $a_usr_id, string $a_type)
Get all support contacts for a user.
$c
Definition: deliver.php:25

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

+ Here is the call graph for this function:

◆ getProviderId()

ILIAS\Awareness\User\ProviderCourseContacts::getProviderId ( )

Get provider id.

Returns
string provider id

Implements ILIAS\Awareness\User\Provider.

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

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

◆ getTitle()

ILIAS\Awareness\User\ProviderCourseContacts::getTitle ( )

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

Returns
string provider title

Implements ILIAS\Awareness\User\Provider.

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

53 : string
54 {
55 $this->lng->loadLanguageModule("crs");
56 return $this->lng->txt("crs_awrn_support_contacts");
57 }

References ILIAS\Repository\lng().

+ Here is the call graph for this function:

◆ isHighlighted()

ILIAS\Awareness\User\ProviderCourseContacts::isHighlighted ( )

Is highlighted.

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

Implements ILIAS\Awareness\User\Provider.

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

84 : bool
85 {
86 return false;
87 }

Field Documentation

◆ $db

ilDBInterface ILIAS\Awareness\User\ProviderCourseContacts::$db
protected

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

◆ $lng

ilLanguage ILIAS\Awareness\User\ProviderCourseContacts::$lng
protected

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

◆ $user

ilObjUser ILIAS\Awareness\User\ProviderCourseContacts::$user
protected

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


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