ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Class ilObjSurveyAccess. More...
Public Member Functions | |
__construct () | |
Constructor. More... | |
_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 possible conditions operators. More... | |
static | checkCondition ($a_svy_id, $a_operator, $a_value, $a_usr_id) |
check condition More... | |
static | _getCommands () |
get commands More... | |
static | _lookupCreationComplete ($a_obj_id) |
checks wether all necessary parts of the survey are given More... | |
static | _lookupEvaluationAccess ($a_obj_id) |
get evaluation access More... | |
static | _isSurveyParticipant ($user_id, $survey_id) |
static | _lookupAnonymize ($a_obj_id) |
static | _hasEvaluationAccess ($a_obj_id, $user_id) |
static | _lookupOnline ($a_obj_id) |
get status More... | |
static | _lookupFinished ($a_obj_id, $a_user_id="") |
get finished status More... | |
static | _lookup360Mode ($a_obj_id) |
static | _checkGoto ($a_target) |
check whether goto script will succeed 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... | |
Protected Attributes | |
$user | |
$lng | |
$rbacsystem | |
$access | |
ilObjSurveyAccess::__construct | ( | ) |
Constructor.
Definition at line 63 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) |
Definition at line 127 of file class.ilObjSurveyAccess.php.
References $access, $ilUser, $lng, $rbacsystem, $user, _hasEvaluationAccess(), _lookupCreationComplete(), _lookupOnline(), and IL_NO_OBJECT_ACCESS.
|
static |
check whether goto script will succeed
Definition at line 441 of file class.ilObjSurveyAccess.php.
References $_GET, $DIC, and ilObjSurvey\validateExternalRaterCode().
|
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 196 of file class.ilObjSurveyAccess.php.
References array.
Referenced by ilObjSurveyListGUI\init().
|
static |
Definition at line 290 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, $row, _isSurveyParticipant(), _lookupAnonymize(), _lookupEvaluationAccess(), array, ilObjSurvey\RESULTS_360_ALL, ilObjSurvey\RESULTS_360_NONE, and ilObjSurvey\RESULTS_360_OWN.
Referenced by _checkAccess(), ilSurveyEvaluationGUI\checkAnonymizedEvaluationAccess(), ilObjSurveyGUI\getTabs(), ilObjSurveyGUI\infoScreen(), and ilSurveyExecutionGUI\runShowFinishedPage().
|
static |
Definition at line 257 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and array.
Referenced by _hasEvaluationAccess(), and ilLPStatusSurveyFinished\determineStatus().
|
static |
Definition at line 423 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and array.
Referenced by ilObjSurveyListGUI\getProperties().
|
static |
Definition at line 271 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, $row, and array.
Referenced by _hasEvaluationAccess(), and ilSurveyLP\isAnonymized().
|
static |
checks wether all necessary parts of the survey are given
Definition at line 215 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, $row, and array.
Referenced by _checkAccess(), and ilObjSurveyListGUI\getProperties().
|
static |
get evaluation access
Definition at line 239 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, $row, and array.
Referenced by _hasEvaluationAccess().
|
static |
get finished status
int | $a_obj_id | survey id |
Definition at line 380 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $ilUser, $result, $row, and array.
Referenced by checkCondition(), ilLPStatusSurveyFinished\determineStatus(), ilObjSurveyListGUI\getProperties(), ilCourseStart\isFullfilled(), and ilContainerStartObjects\isFullfilled().
|
static |
get status
Definition at line 357 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, $row, and array.
Referenced by _checkAccess(), and ilObjSurveyListGUI\getProperties().
|
static |
check condition
type | $a_svy_id | |
type | $a_operator | |
type | $a_value | |
type | $a_usr_id |
Implements ilConditionHandling.
Definition at line 94 of file class.ilObjSurveyAccess.php.
References _lookupFinished(), and ilConditionHandler\OPERATOR_FINISHED.
|
static |
Get possible conditions operators.
Implements ilConditionHandling.
Definition at line 77 of file class.ilObjSurveyAccess.php.
References array, and ilConditionHandler\OPERATOR_FINISHED.
|
protected |
Definition at line 57 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().
|
protected |
Definition at line 47 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().
|
protected |
Definition at line 52 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().
|
protected |
Definition at line 42 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().