ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
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... | ||||
canBeDelivered (ilWACPath $ilWACPath) | ||||
| ||||
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 | _lookupFinished ($a_obj_id, $a_user_id="") |
get finished status More... | |
static | _lookupMode ($a_obj_id) |
Get survey mode. 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 if object type does not support centralized offline handling. 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(), and IL_NO_OBJECT_ACCESS.
|
static |
check whether goto script will succeed
Definition at line 453 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 189 of file class.ilObjSurveyAccess.php.
Referenced by ilObjSurveyListGUI\init().
|
static |
Definition at line 283 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, $row, _isSurveyParticipant(), _lookupAnonymize(), _lookupEvaluationAccess(), ilObjSurvey\MODE_360, ilObjSurvey\MODE_SELF_EVAL, ilObjSurvey\RESULTS_360_ALL, ilObjSurvey\RESULTS_360_NONE, ilObjSurvey\RESULTS_360_OWN, and ilObjSurvey\RESULTS_SELF_EVAL_NONE.
Referenced by _checkAccess(), ilSurveyEvaluationGUI\checkAnonymizedEvaluationAccess(), ilObjSurveyGUI\getTabs(), ilObjSurveyGUI\infoScreen(), and ilSurveyExecutionGUI\runShowFinishedPage().
|
static |
Definition at line 250 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, and $result.
Referenced by _hasEvaluationAccess(), and ilLPStatusSurveyFinished\determineStatus().
|
static |
Definition at line 435 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and ilObjSurvey\MODE_360.
Referenced by ilObjSurveyListGUI\getProperties().
|
static |
Definition at line 264 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and $row.
Referenced by _hasEvaluationAccess(), and ilSurveyLP\isAnonymized().
|
static |
checks wether all necessary parts of the survey are given
Definition at line 208 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and $row.
Referenced by _checkAccess(), and ilObjSurveyListGUI\getProperties().
|
static |
get evaluation access
Definition at line 232 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and $row.
Referenced by _hasEvaluationAccess().
|
static |
get finished status
int | $a_obj_id | survey id |
Definition at line 368 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $ilUser, $result, and $row.
Referenced by checkCondition(), ilLPStatusSurveyFinished\determineStatus(), ilObjSurveyListGUI\getProperties(), ilCourseStart\isFullfilled(), and ilContainerStartObjects\isFullfilled().
|
static |
|
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 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().