5 require_once(
'./Services/Object/classes/class.ilObjectAccess.php');
6 require_once(
'./Services/User/classes/class.ilUserAccountSettings.php');
33 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
40 if ($a_permission ==
"delete") {
41 require_once(
"Modules/StudyProgramme/classes/class.ilObjStudyProgramme.php");
43 if ($prg->hasRelevantProgresses()) {
48 return parent::_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"");
66 $commands[] =
array(
'permission' =>
'read',
'cmd' =>
'view',
'lang_var' =>
'show',
'default' =>
true);
67 $commands[] =
array(
'permission' =>
'write',
'cmd' =>
'view',
'lang_var' =>
'edit_content');
68 $commands[] =
array(
'permission' =>
'write',
'cmd' =>
'edit',
'lang_var' =>
'settings');
79 $ilAccess = $DIC[
'ilAccess'];
80 $t_arr = explode(
'_', $a_target);
81 if ($t_arr[0] !=
'prg' || ((
int)$t_arr[1]) <= 0) {
84 if ($ilAccess->checkAccess(
'read',
'', $t_arr[1])) {
static _getCommands()
get commands
Class ilObjStudyProgrammeAccess.
static _checkGoto($a_target)
check whether goto script will succeed
_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::checkAcce...
static getInstanceByRefId($a_ref_id)
Get an instance of ilObjStudyProgramme, use cache.
Create styles array
The data for the language used.