4 include_once
"./Services/Object/classes/class.ilObjectAccess.php";
5 include_once
"./Modules/Test/classes/inc.AssessmentConstants.php";
34 array(
"permission" =>
"write",
"cmd" =>
"questions",
"lang_var" =>
"tst_edit_questions"),
35 array(
"permission" =>
"write",
"cmd" =>
"ilObjQuestionPoolSettingsGeneralGUI::showForm",
"lang_var" =>
"settings"),
36 #
array(
"permission" =>
"write",
"cmd" =>
"questions",
"lang_var" =>
"edit",
37 #
"default" =>
false),
38 array(
"permission" =>
"read",
"cmd" =>
"questions",
"lang_var" =>
"edit",
53 function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id =
"")
55 global
$lng, $ilAccess;
61 $a_user_id = $ilUser->getId();
64 if( $rbacsystem->checkAccessOfUser($a_user_id,
'write', $a_ref_id) )
69 switch ($a_permission)
73 if( !self::isOnline($a_obj_id) )
95 SELECT COUNT(id_questionpool) cnt 104 return $row[
'cnt'] > 0;
Class ilObjQuestionPoolAccess.
const IL_NO_OBJECT_ACCESS
static _getCommands()
get commands
_checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id="")
Create styles array
The data for the language used.
static isOnline($a_obj_id)
returns the objects's ONline status