ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
|
Class ilObjCourseAccess. More...
Public Member Functions | |
_checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") | |
checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
Public Member Functions inherited from ilObjectAccess | |
_checkAccess ($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="") | |
Checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess) More... | |
_checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id) | |
check condition More... | |
Static Public Member Functions | |
static | getConditionOperators () |
Get operators. More... | |
static | checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id) |
ilObjUser $ilUser More... | |
static | _getCommands () |
get commands More... | |
static | _checkGoto ($a_target) |
check whether goto script will succeed More... | |
static | _lookupViewMode ($a_id) |
Lookup view mode. More... | |
static | _isActivated ($a_obj_id, &$a_visible_flag=null, $a_mind_member_view=true) |
Is activated? More... | |
static | _registrationEnabled ($a_obj_id) |
static | lookupRegistrationInfo ($a_obj_id) |
Lookup registration info ilDB $ilDB ilObjUser $ilUser ilLanguage $lng. More... | |
static | _isOffline ($a_obj_id) |
Type-specific implementation of general status. More... | |
static | _preloadData ($a_obj_ids, $a_ref_ids) |
Preload data. More... | |
static | _usingRegistrationCode () |
Using Registration code. More... | |
static | lookupPeriodInfo ($a_obj_id) |
Lookup course period info. More... | |
Static Public Member Functions inherited from ilObjectAccess | |
static | _getCommands () |
get commands More... | |
static | _checkGoto ($a_target) |
check whether goto script will succeed More... | |
static | _isOffline ($a_obj_id) |
Type-specific implementation of general status, has to be overwritten. More... | |
static | _preloadData ($a_obj_ids, $a_ref_ids) |
Preload data. More... | |
Static Protected Member Functions | |
static | _isOnline ($a_obj_id) |
Check if online setting is active. More... | |
Static Protected Attributes | |
static | $using_code = false |
ilObjCourseAccess::_checkAccess | ( | $a_cmd, | |
$a_permission, | |||
$a_ref_id, | |||
$a_obj_id, | |||
$a_user_id = "" |
|||
) |
checks wether a user may invoke a command or not (this method is called by ilAccessHandler::checkAccess)
string | $a_cmd | command (not permission!) |
string | $a_permission | permission |
int | $a_ref_id | reference id |
int | $a_obj_id | object id |
int | $a_user_id | user id (if not provided, current user is taken) |
Definition at line 69 of file class.ilObjCourseAccess.php.
References $ilUser, $lng, ilCourseParticipants\_getInstanceByObjId(), ilCourseParticipant\_getInstanceByObjId(), ilWaitingList\_isOnList(), ilDatePresentation\formatDate(), IL_NO_OBJECT_ACCESS, and ilObjCourse\mayLeave().
|
static |
check whether goto script will succeed
Definition at line 253 of file class.ilObjCourseAccess.php.
References $ilUser.
|
static |
get commands
this method returns an array of all possible commands/permission combinations
example: $commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );
Definition at line 207 of file class.ilObjCourseAccess.php.
References ilDAVActivationChecker\_isActive(), array, ilFMSettings\getInstance(), and ilDAVUtils\getInstance().
Referenced by ilObjCourseReferenceAccess\_getCommands(), and ilObjCourseListGUI\init().
|
static |
Is activated?
int | $a_obj_id | |
bool | &$a_visible_flag | |
bool | $a_mind_member_view |
Definition at line 328 of file class.ilObjCourseAccess.php.
References $ref_id, ilObject\_getAllReferences(), ilMemberViewSettings\getInstance(), ilObjectActivation\getItem(), time, and ilObjectActivation\TIMINGS_ACTIVATION.
Referenced by ilObjCourse\_isActivated(), and ilPortfolioPageGUI\getCoursesOfUser().
|
static |
Type-specific implementation of general status.
Used in ListGUI and Learning Progress
int | $a_obj_id |
Definition at line 511 of file class.ilObjCourseAccess.php.
Referenced by ilObjCourseListGUI\getProperties().
|
staticprotected |
Check if online setting is active.
int | $a_obj_id |
Definition at line 308 of file class.ilObjCourseAccess.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
|
static |
Lookup view mode.
This is placed here to the need that ilObjFolder must always instantiate a Course object.
object | $a_id |
Definition at line 289 of file class.ilObjCourseAccess.php.
References $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilObjFolder\getViewMode().
|
static |
Preload data.
array | $a_obj_ids | array of object ids |
Definition at line 522 of file class.ilObjCourseAccess.php.
References $ilUser, $lng, ilCourseCertificateAdapter\_preloadListData(), and ilWaitingList\_preloadOnListInfo().
|
static |
object | $a_obj_id |
Definition at line 376 of file class.ilObjCourseAccess.php.
References $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_LIMITED, IL_CRS_SUBSCRIPTION_UNLIMITED, and time.
Referenced by ilObjCourse\_registrationEnabled().
|
static |
Using Registration code.
Definition at line 540 of file class.ilObjCourseAccess.php.
Referenced by ilObjCourse\register().
|
static |
ilObjUser $ilUser
type | $a_obj_id | |
type | $a_operator | |
type | $a_value | |
type | $a_usr_id |
Implements ilConditionHandling.
Definition at line 44 of file class.ilObjCourseAccess.php.
References ilParticipants\_hasPassed(), and ilConditionHandler\OPERATOR_PASSED.
|
static |
Get operators.
Implements ilConditionHandling.
Definition at line 27 of file class.ilObjCourseAccess.php.
References array, and ilConditionHandler\OPERATOR_PASSED.
|
static |
Lookup course period info.
int | $a_obj_id |
Definition at line 551 of file class.ilObjCourseAccess.php.
References $ilDB, $lng, $query, $row, $start, array, ilDatePresentation\formatPeriod(), and IL_CAL_UNIX.
Referenced by ilObjCourseListGUI\getProperties().
|
static |
Lookup registration info ilDB $ilDB ilObjUser $ilUser ilLanguage $lng.
int | $a_obj_id |
Definition at line 419 of file class.ilObjCourseAccess.php.
References $ilDB, $ilUser, $info, $lng, $query, $res, $row, ilDateTime\_before(), ilCourseParticipant\_getInstanceByObjId(), array, ilDBConstants\FETCHMODE_OBJECT, ilDatePresentation\formatDate(), IL_CAL_UNIX, ilWaitingList\lookupListSize(), ilCourseConstants\SUBSCRIPTION_LIMITED, ilCourseConstants\SUBSCRIPTION_UNLIMITED, and time.
Referenced by ilCourseRegistrationGUI\fillMaxMembers(), ilObjCourseListGUI\getProperties(), and ilObjCourseGUI\infoScreen().
|
staticprotected |
Definition at line 22 of file class.ilObjCourseAccess.php.