ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Provides Role actions. More...
Public Member Functions | |
__construct (ilObjLearningSequence $object, ilLearningSequenceParticipants $participants, ilCtrl $ctrl, ilRbacAdmin $rbacadmin, ilRbacReview $rbacreview, ilDBInterface $database, ilObjUser $user) | |
initDefaultRoles () | |
getLocalLearningSequenceRoles (bool $translate=false) | |
getDefaultMemberRole () | |
getDefaultAdminRole () | |
addLSMember (int $user_id, int $role) | |
join (int $user_id, $roles) | |
leaveLearningSequence () | |
getLearningSequenceMemberIds () | |
leave (int $user_id) | |
getLearningSequenceMemberData (array $user_ids, int $active=1) | |
getLearningSequenceAdminIds () | |
getDefaultLearningSequenceRoles (string $lso_id) | |
readMemberData (array $user_ids, array $selected_columns=null) | |
Data Fields | |
const | ROLE_LS_ADMIN = "il_lso_admin" |
const | ROLE_LS_MEMBER = "il_lso_member" |
const | TYPE_PORTFOLIO = "prtf" |
Protected Member Functions | |
getRoleObject (int $obj_id) | |
isTrackingEnabled () | |
isPortfolio (array $columns=null) | |
Protected Attributes | |
$object | |
$participants | |
$rbacadmin | |
$rbacreview | |
$database | |
$user | |
$local_roles | |
Provides Role actions.
Definition at line 10 of file class.ilLearningSequenceRoles.php.
ilLearningSequenceRoles::__construct | ( | ilObjLearningSequence | $object, |
ilLearningSequenceParticipants | $participants, | ||
ilCtrl | $ctrl, | ||
ilRbacAdmin | $rbacadmin, | ||
ilRbacReview | $rbacreview, | ||
ilDBInterface | $database, | ||
ilObjUser | $user | ||
) |
Definition at line 52 of file class.ilLearningSequenceRoles.php.
References $database, $object, $participants, $rbacadmin, $rbacreview, $user, and user().
ilLearningSequenceRoles::addLSMember | ( | int | $user_id, |
int | $role | ||
) |
Definition at line 133 of file class.ilLearningSequenceRoles.php.
References join().
ilLearningSequenceRoles::getDefaultAdminRole | ( | ) |
Definition at line 127 of file class.ilLearningSequenceRoles.php.
References getLocalLearningSequenceRoles().
ilLearningSequenceRoles::getDefaultLearningSequenceRoles | ( | string | $lso_id | ) |
Definition at line 244 of file class.ilLearningSequenceRoles.php.
References $object, and getRoleObject().
Referenced by getLearningSequenceAdminIds().
ilLearningSequenceRoles::getDefaultMemberRole | ( | ) |
Definition at line 121 of file class.ilLearningSequenceRoles.php.
References getLocalLearningSequenceRoles().
ilLearningSequenceRoles::getLearningSequenceAdminIds | ( | ) |
Definition at line 232 of file class.ilLearningSequenceRoles.php.
References $users, and getDefaultLearningSequenceRoles().
Referenced by leaveLearningSequence().
ilLearningSequenceRoles::getLearningSequenceMemberData | ( | array | $user_ids, |
int | $active = 1 |
||
) |
Definition at line 200 of file class.ilLearningSequenceRoles.php.
References $query, $result, $row, $users, ilDBConstants\FETCHMODE_OBJECT, PHP_EOL, and ilUtil\quoteArray().
ilLearningSequenceRoles::getLearningSequenceMemberIds | ( | ) |
Definition at line 169 of file class.ilLearningSequenceRoles.php.
References $users, and getLocalLearningSequenceRoles().
Referenced by leaveLearningSequence().
ilLearningSequenceRoles::getLocalLearningSequenceRoles | ( | bool | $translate = false | ) |
Definition at line 92 of file class.ilLearningSequenceRoles.php.
References $local_roles, ilObjRole\_getTranslation(), and getRoleObject().
Referenced by getDefaultAdminRole(), getDefaultMemberRole(), and getLearningSequenceMemberIds().
|
protected |
Definition at line 271 of file class.ilLearningSequenceRoles.php.
References ilObjectFactory\getInstanceByObjId().
Referenced by getDefaultLearningSequenceRoles(), and getLocalLearningSequenceRoles().
ilLearningSequenceRoles::initDefaultRoles | ( | ) |
Definition at line 72 of file class.ilLearningSequenceRoles.php.
References ilObjRole\createDefaultRole().
|
protected |
Definition at line 364 of file class.ilLearningSequenceRoles.php.
References $columns.
Referenced by readMemberData().
|
protected |
Definition at line 356 of file class.ilLearningSequenceRoles.php.
References ilObjUserTracking\_enabledLearningProgress(), and ilObjUserTracking\_enabledUserRelatedData().
Referenced by readMemberData().
ilLearningSequenceRoles::join | ( | int | $user_id, |
$roles | |||
) |
Definition at line 138 of file class.ilLearningSequenceRoles.php.
Referenced by addLSMember().
ilLearningSequenceRoles::leave | ( | int | $user_id | ) |
Definition at line 185 of file class.ilLearningSequenceRoles.php.
Referenced by leaveLearningSequence().
ilLearningSequenceRoles::leaveLearningSequence | ( | ) |
Definition at line 151 of file class.ilLearningSequenceRoles.php.
References ilObjUser\dropDesktopItem(), getLearningSequenceAdminIds(), getLearningSequenceMemberIds(), leave(), and user().
ilLearningSequenceRoles::readMemberData | ( | array | $user_ids, |
array | $selected_columns = null |
||
) |
Definition at line 276 of file class.ilLearningSequenceRoles.php.
References $data, $failed, $name, ilPrivacySettings\_getInstance(), ilLPStatusWrapper\_lookupCompletedForObject(), ilLPStatusWrapper\_lookupFailedForObject(), ilLPStatusWrapper\_lookupInProgressForObject(), ilObjUser\_lookupLogin(), ilObjUser\_lookupName(), ilLearningProgress\_lookupProgressByObjId(), ilObjUser\_readUsersProfileData(), ilDatePresentation\formatDate(), ilObjPortfolio\getAvailablePortfolioLinksForUserIds(), ilObjectLP\getInstance(), IL_CAL_UNIX, isPortfolio(), isTrackingEnabled(), ilLPStatus\LP_STATUS_COMPLETED, ilLPStatus\LP_STATUS_FAILED, ilLPStatus\LP_STATUS_IN_PROGRESS, and ilLPStatus\LP_STATUS_NOT_ATTEMPTED.
|
protected |
Definition at line 40 of file class.ilLearningSequenceRoles.php.
Referenced by __construct().
|
protected |
Definition at line 50 of file class.ilLearningSequenceRoles.php.
Referenced by getLocalLearningSequenceRoles().
|
protected |
Definition at line 20 of file class.ilLearningSequenceRoles.php.
Referenced by __construct(), and getDefaultLearningSequenceRoles().
|
protected |
Definition at line 25 of file class.ilLearningSequenceRoles.php.
Referenced by __construct().
|
protected |
Definition at line 30 of file class.ilLearningSequenceRoles.php.
Referenced by __construct().
|
protected |
Definition at line 35 of file class.ilLearningSequenceRoles.php.
Referenced by __construct().
|
protected |
Definition at line 45 of file class.ilLearningSequenceRoles.php.
Referenced by __construct().
const ilLearningSequenceRoles::ROLE_LS_ADMIN = "il_lso_admin" |
Definition at line 12 of file class.ilLearningSequenceRoles.php.
const ilLearningSequenceRoles::ROLE_LS_MEMBER = "il_lso_member" |
Definition at line 13 of file class.ilLearningSequenceRoles.php.
const ilLearningSequenceRoles::TYPE_PORTFOLIO = "prtf" |
Definition at line 15 of file class.ilLearningSequenceRoles.php.