ILIAS
Release_4_1_x_branch Revision 61804
|
Class ilObjSurveyAccess. 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) | |
_getCommands () | |
get commands | |
_lookupCreationComplete ($a_obj_id) | |
checks wether all necessary parts of the survey are given | |
_lookupEvaluationAccess ($a_obj_id) | |
get evaluation access | |
_isSurveyParticipant ($user_id, $survey_id) | |
_lookupAnonymize ($a_obj_id) | |
_hasEvaluationAccess ($a_obj_id, $user_id) | |
_lookupOnline ($a_obj_id) | |
get status | |
_lookupFinished ($a_obj_id, $a_user_id="") | |
get finished status | |
_checkGoto ($a_target) | |
check whether goto script will succeed | |
Public Member Functions inherited from ilObjectAccess | |
_checkCondition ($a_obj_id, $a_operator, $a_value, $a_usr_id=0) | |
check condition |
Class ilObjSurveyAccess.
Definition at line 37 of file class.ilObjSurveyAccess.php.
ilObjSurveyAccess::_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)
Please do not check any preconditions handled by ilConditionHandler here.
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 54 of file class.ilObjSurveyAccess.php.
References $lng, _hasEvaluationAccess(), _lookupCreationComplete(), _lookupOnline(), and IL_NO_OBJECT_ACCESS.
ilObjSurveyAccess::_checkGoto | ( | $a_target | ) |
check whether goto script will succeed
Reimplemented from ilObjectAccess.
Definition at line 320 of file class.ilObjSurveyAccess.php.
ilObjSurveyAccess::_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 120 of file class.ilObjSurveyAccess.php.
Referenced by ilObjSurveyListGUI\init().
ilObjSurveyAccess::_hasEvaluationAccess | ( | $a_obj_id, | |
$user_id | |||
) |
Definition at line 208 of file class.ilObjSurveyAccess.php.
References $ilDB, $result, $row, _isSurveyParticipant(), _lookupAnonymize(), and _lookupEvaluationAccess().
Referenced by _checkAccess(), ilSurveyEvaluationGUI\evaluation(), ilObjSurveyGUI\getTabs(), and ilObjSurveyGUI\infoScreen().
ilObjSurveyAccess::_isSurveyParticipant | ( | $user_id, | |
$survey_id | |||
) |
Definition at line 178 of file class.ilObjSurveyAccess.php.
References $ilDB, and $result.
Referenced by _hasEvaluationAccess().
ilObjSurveyAccess::_lookupAnonymize | ( | $a_obj_id | ) |
Definition at line 189 of file class.ilObjSurveyAccess.php.
References $ilDB, $result, and $row.
Referenced by _hasEvaluationAccess().
ilObjSurveyAccess::_lookupCreationComplete | ( | $a_obj_id | ) |
checks wether all necessary parts of the survey are given
Definition at line 139 of file class.ilObjSurveyAccess.php.
References $ilDB, $result, and $row.
Referenced by _checkAccess(), and ilObjSurveyListGUI\getProperties().
ilObjSurveyAccess::_lookupEvaluationAccess | ( | $a_obj_id | ) |
get evaluation access
Definition at line 162 of file class.ilObjSurveyAccess.php.
References $ilDB, $result, and $row.
Referenced by _hasEvaluationAccess().
ilObjSurveyAccess::_lookupFinished | ( | $a_obj_id, | |
$a_user_id = "" |
|||
) |
get finished status
int | $a_obj_id | survey id |
Definition at line 277 of file class.ilObjSurveyAccess.php.
References $ilDB, $result, and $row.
Referenced by ilObjSurvey\_checkCondition(), ilObjSurveyListGUI\getProperties(), and ilCourseStart\isFullfilled().
ilObjSurveyAccess::_lookupOnline | ( | $a_obj_id | ) |
get status
Definition at line 257 of file class.ilObjSurveyAccess.php.
References $ilDB, $result, and $row.
Referenced by _checkAccess(), and ilObjSurveyListGUI\getProperties().