ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
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... | ||||
![]() | ||||
_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 | _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 | |
Class ilObjSurveyAccess.
Definition at line 11 of file class.ilObjSurveyAccess.php.
ilObjSurveyAccess::__construct | ( | ) |
Constructor.
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) |
Definition at line 99 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 423 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 161 of file class.ilObjSurveyAccess.php.
Referenced by ilObjSurveyListGUI\init().
|
static |
Definition at line 255 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, _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 222 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, and $result.
Referenced by _hasEvaluationAccess(), and ilLPStatusSurveyFinished\determineStatus().
|
static |
Definition at line 405 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $result, and ilObjSurvey\MODE_360.
|
static |
Definition at line 236 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, and $result.
Referenced by _hasEvaluationAccess(), and ilSurveyLP\isAnonymized().
|
static |
checks wether all necessary parts of the survey are given
Definition at line 180 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, and $result.
Referenced by _checkAccess(), and ilObjSurveyListGUI\getProperties().
|
static |
get evaluation access
Definition at line 204 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, and $result.
Referenced by _hasEvaluationAccess().
|
static |
get finished status
int | $a_obj_id | survey id |
Definition at line 338 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, $ilUser, and $result.
Referenced by checkCondition(), ilLPStatusSurveyFinished\determineStatus(), ilObjSurveyListGUI\getProperties(), ilCourseStart\isFullfilled(), and ilContainerStartObjects\isFullfilled().
|
static |
Get survey mode.
$a_obj_id |
Definition at line 386 of file class.ilObjSurveyAccess.php.
References $DIC, $ilDB, and $result.
Referenced by ilObjSurveyListGUI\getProperties().
|
static |
check condition
type | $a_svy_id | |
type | $a_operator | |
type | $a_value | |
type | $a_usr_id |
Implements ilConditionHandling.
Definition at line 67 of file class.ilObjSurveyAccess.php.
References _lookupFinished(), and ilConditionHandler\OPERATOR_FINISHED.
|
static |
Get possible conditions operators.
Implements ilConditionHandling.
Definition at line 51 of file class.ilObjSurveyAccess.php.
References ilConditionHandler\OPERATOR_FINISHED.
|
protected |
Definition at line 31 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().
|
protected |
Definition at line 21 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().
|
protected |
Definition at line 26 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().
|
protected |
Definition at line 16 of file class.ilObjSurveyAccess.php.
Referenced by _checkAccess().