| ILIAS
    Release_4_4_x_branch Revision 61816
    | 
Class ilObjCourseAccess. More...
 Inheritance diagram for ilObjCourseAccess:
 Inheritance diagram for ilObjCourseAccess: Collaboration diagram for ilObjCourseAccess:
 Collaboration diagram for ilObjCourseAccess:| 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) | |
| _getCommands () | |
| get commands | |
| _checkGoto ($a_target) | |
| check whether goto script will succeed | |
| _lookupViewMode ($a_id) | |
| Lookup view mode. | |
| _preloadData ($a_obj_ids, $a_ref_ids) | |
| Preload data. | |
|  Public Member Functions inherited from ilObjectAccess | |
| _checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0) | |
| check condition | |
| Static Public Member Functions | |
| static | _isActivated ($a_obj_id, &$a_visible_flag=null, $a_mind_member_view=true) | 
| Is activated? | |
| static | _registrationEnabled ($a_obj_id) | 
| static | lookupRegistrationInfo ($a_obj_id) | 
| Lookup registration info  ilDB $ilDB  ilObjUser $ilUser  ilLanguage $lng. | |
| static | _isOffline ($a_obj_id) | 
| Type-specific implementation of general status. | |
| static | _usingRegistrationCode () | 
| Using Registration code. | |
| Static Protected Member Functions | |
| static | _isOnline ($a_obj_id) | 
| Check if online setting is active. | |
| Static Protected Attributes | |
| static | $using_code = false | 
Class ilObjCourseAccess.
Definition at line 18 of file class.ilObjCourseAccess.php.
| 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) | 
Reimplemented from ilObjectAccess.
Definition at line 35 of file class.ilObjCourseAccess.php.
References $ilUser, $lng, ilCourseParticipants\_getInstanceByObjId(), ilCourseParticipant\_getInstanceByObjId(), _isActivated(), ilWaitingList\_isOnList(), and IL_NO_OBJECT_ACCESS.
 Here is the call graph for this function:
 Here is the call graph for this function:| ilObjCourseAccess::_checkGoto | ( | $a_target | ) | 
check whether goto script will succeed
Reimplemented from ilObjectAccess.
Definition at line 206 of file class.ilObjCourseAccess.php.
References $ilUser.
| ilObjCourseAccess::_getCommands | ( | ) | 
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"), );
Reimplemented from ilObjectAccess.
Definition at line 160 of file class.ilObjCourseAccess.php.
References ilDAVActivationChecker\_isActive(), ilFMSettings\getInstance(), and ilDAVUtils\getInstance().
Referenced by ilObjCourseListGUI\init().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Is activated?
| int | $a_obj_id | |
| bool | &$a_visible_flag | |
| bool | $a_mind_member_view | 
Definition at line 281 of file class.ilObjCourseAccess.php.
References $ref_id, ilObject\_getAllReferences(), ilMemberViewSettings\getInstance(), ilObjectActivation\getItem(), and ilObjectActivation\TIMINGS_ACTIVATION.
Referenced by _checkAccess(), and _isOffline().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Type-specific implementation of general status.
Used in ListGUI and Learning Progress
| int | $a_obj_id | 
Reimplemented from ilObjectAccess.
Definition at line 458 of file class.ilObjCourseAccess.php.
References _isActivated().
Referenced by ilObjCourseListGUI\getProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Check if online setting is active.
| int | $a_obj_id | 
Definition at line 261 of file class.ilObjCourseAccess.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
| ilObjCourseAccess::_lookupViewMode | ( | $a_id | ) | 
Lookup view mode.
This is placed here to the need that ilObjFolder must always instantiate a Course object.
| object | $a_id | 
Definition at line 242 of file class.ilObjCourseAccess.php.
References $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilObjFolder\getViewMode().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| ilObjCourseAccess::_preloadData | ( | $a_obj_ids, | |
| $a_ref_ids | |||
| ) | 
Preload data.
| array | $a_obj_ids | array of object ids | 
Reimplemented from ilObjectAccess.
Definition at line 469 of file class.ilObjCourseAccess.php.
References $ilUser, ilCourseCertificateAdapter\_preloadListData(), and ilWaitingList\_preloadOnListInfo().
 Here is the call graph for this function:
 Here is the call graph for this function:| 
 | static | 
| object | $a_obj_id | 
Definition at line 329 of file class.ilObjCourseAccess.php.
References $query, $res, $row, DB_FETCHMODE_OBJECT, IL_CRS_SUBSCRIPTION_DEACTIVATED, IL_CRS_SUBSCRIPTION_LIMITED, and IL_CRS_SUBSCRIPTION_UNLIMITED.
| 
 | static | 
Using Registration code.
Definition at line 485 of file class.ilObjCourseAccess.php.
References $using_code.
Referenced by ilObjCourse\register().
 Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | static | 
Lookup registration info ilDB $ilDB ilObjUser $ilUser ilLanguage $lng.
| int | $a_obj_id | 
Definition at line 372 of file class.ilObjCourseAccess.php.
References $ilUser, $lng, $query, $res, $row, ilDateTime\_before(), ilCourseParticipant\_getInstanceByObjId(), DB_FETCHMODE_OBJECT, ilDatePresentation\formatDate(), IL_CAL_UNIX, ilCourseConstants\SUBSCRIPTION_LIMITED, and ilCourseConstants\SUBSCRIPTION_UNLIMITED.
Referenced by ilObjCourseListGUI\getProperties().
 Here is the call graph for this function:
 Here is the call graph for this function: Here is the caller graph for this function:
 Here is the caller graph for this function:| 
 | staticprotected | 
Definition at line 21 of file class.ilObjCourseAccess.php.
Referenced by _usingRegistrationCode().