ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
A class that provides a collection of users for the awareness tool. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
setActivationMode ($a_val) | |
Activate provider. More... | |
getActivationMode () | |
Get Activate provider. More... | |
setUserId ($a_val) | |
Set user id. More... | |
getUserId () | |
Get user id. More... | |
setRefId ($a_val) | |
Set ref id. More... | |
getRefId () | |
Get ref id. More... | |
setOnlineUserFilter ($a_val) | |
Set online user filter. More... | |
getOnlineUserFilter () | |
Get online user filter. More... | |
getProviderId () | |
This should return a unique id for the provider The ID should start with the service/module id, separated by "_" and a second part that is unique within the module/service, e.g. More... | |
getTitle () | |
Provider title (used in awareness overlay and in administration settings) More... | |
getInfo () | |
Provider info (used in administration settings) More... | |
getInitialUserSet () | |
Get initial set of users. More... | |
collectUsers () | |
Collect all users. More... | |
isHighlighted () | |
Is highlighted. More... | |
Data Fields | |
const | MODE_INACTIVE = 0 |
const | MODE_ONLINE_ONLY = 1 |
const | MODE_INCL_OFFLINE = 2 |
Protected Member Functions | |
addUserToCollection ($a_user_id, ilAwarenessUserCollection $a_collection) | |
Add user to collection. More... | |
Protected Attributes | |
$user_id | |
$ref_id | |
$lng | |
$db | |
$online_user_filter = false | |
$log | |
A class that provides a collection of users for the awareness tool.
Definition at line 12 of file class.ilAwarenessUserProvider.php.
ilAwarenessUserProvider::__construct | ( | ) |
Constructor.
Definition at line 32 of file class.ilAwarenessUserProvider.php.
References $DIC, $ilDB, $lng, ilLoggerFactory\getLogger(), and settings().
|
protected |
Add user to collection.
int | $a_user_id | user id |
ilAwarenessUserCollection | $a_collection | collection |
Definition at line 177 of file class.ilAwarenessUserProvider.php.
References ilAwarenessUserCollection\addUser(), getOnlineUserFilter(), and getUserId().
Referenced by collectUsers().
ilAwarenessUserProvider::collectUsers | ( | ) |
Collect all users.
Definition at line 160 of file class.ilAwarenessUserProvider.php.
References addUserToCollection(), getInitialUserSet(), and ilAwarenessUserCollection\getInstance().
ilAwarenessUserProvider::getActivationMode | ( | ) |
Get Activate provider.
Definition at line 60 of file class.ilAwarenessUserProvider.php.
References getProviderId(), and settings().
|
abstract |
Provider info (used in administration settings)
Referenced by getOnlineUserFilter().
|
abstract |
Get initial set of users.
Referenced by collectUsers(), and getOnlineUserFilter().
ilAwarenessUserProvider::getOnlineUserFilter | ( | ) |
Get online user filter.
Definition at line 120 of file class.ilAwarenessUserProvider.php.
References $online_user_filter, getInfo(), getInitialUserSet(), getProviderId(), and getTitle().
Referenced by addUserToCollection(), and ilAwarenessUserProviderAllUsers\getInitialUserSet().
|
abstract |
This should return a unique id for the provider The ID should start with the service/module id, separated by "_" and a second part that is unique within the module/service, e.g.
"user_all"
Referenced by getActivationMode(), getOnlineUserFilter(), and setActivationMode().
ilAwarenessUserProvider::getRefId | ( | ) |
Get ref id.
Definition at line 100 of file class.ilAwarenessUserProvider.php.
References $ref_id.
Referenced by ilAwarenessUserProviderCurrentCourse\getInitialUserSet().
|
abstract |
Provider title (used in awareness overlay and in administration settings)
Referenced by getOnlineUserFilter().
ilAwarenessUserProvider::getUserId | ( | ) |
Get user id.
Definition at line 80 of file class.ilAwarenessUserProvider.php.
References $user_id.
Referenced by addUserToCollection(), ilAwarenessUserProviderCourseContacts\getInitialUserSet(), and ilAwarenessUserProviderMemberships\getInitialUserSet().
ilAwarenessUserProvider::isHighlighted | ( | ) |
Is highlighted.
Definition at line 190 of file class.ilAwarenessUserProvider.php.
ilAwarenessUserProvider::setActivationMode | ( | $a_val | ) |
Activate provider.
boolean | $a_val | activate provider |
Definition at line 50 of file class.ilAwarenessUserProvider.php.
References getProviderId(), and settings().
ilAwarenessUserProvider::setOnlineUserFilter | ( | $a_val | ) |
Set online user filter.
array | $a_val | array of user IDs | false if online status is not relevant |
Definition at line 110 of file class.ilAwarenessUserProvider.php.
ilAwarenessUserProvider::setRefId | ( | $a_val | ) |
Set ref id.
int | $a_val | ref id |
Definition at line 90 of file class.ilAwarenessUserProvider.php.
ilAwarenessUserProvider::setUserId | ( | $a_val | ) |
Set user id.
int | $a_val | user id |
Definition at line 70 of file class.ilAwarenessUserProvider.php.
|
protected |
Definition at line 21 of file class.ilAwarenessUserProvider.php.
Referenced by ilAwarenessUserProviderAllUsers\getInitialUserSet(), ilAwarenessUserProviderMemberships\getInitialUserSet(), and ilAwarenessUserProviderCurrentCourse\getInitialUserSet().
|
protected |
Definition at line 20 of file class.ilAwarenessUserProvider.php.
Referenced by __construct().
|
protected |
Definition at line 27 of file class.ilAwarenessUserProvider.php.
|
protected |
Definition at line 22 of file class.ilAwarenessUserProvider.php.
Referenced by getOnlineUserFilter().
|
protected |
Definition at line 19 of file class.ilAwarenessUserProvider.php.
Referenced by ilAwarenessUserProviderMemberships\getInitialUserSet(), and getRefId().
|
protected |
Definition at line 18 of file class.ilAwarenessUserProvider.php.
Referenced by getUserId().
const ilAwarenessUserProvider::MODE_INACTIVE = 0 |
Definition at line 14 of file class.ilAwarenessUserProvider.php.
Referenced by ilAwarenessUserCollector\collectUsers(), and ilObjAwarenessAdministrationGUI\initFormSettings().
const ilAwarenessUserProvider::MODE_INCL_OFFLINE = 2 |
Definition at line 16 of file class.ilAwarenessUserProvider.php.
Referenced by ilAwarenessUserCollector\collectUsers(), and ilObjAwarenessAdministrationGUI\initFormSettings().
const ilAwarenessUserProvider::MODE_ONLINE_ONLY = 1 |
Definition at line 15 of file class.ilAwarenessUserProvider.php.
Referenced by ilAwarenessUserCollector\collectUsers(), and ilObjAwarenessAdministrationGUI\initFormSettings().