41        $this->
user = $DIC->user();
 
   42        $this->lng = 
$DIC->language();
 
   43        $this->rbacsystem = 
$DIC->rbac()->system();
 
   44        $this->access = 
$DIC->access();
 
   67    public static function checkCondition($a_svy_id, $a_operator, $a_value, $a_usr_id)
 
   69        switch ($a_operator) {
 
   99    public function _checkAccess($a_cmd, $a_permission, $a_ref_id, $a_obj_id, $a_user_id = 
"")
 
  106        if ($a_user_id == 
"") {
 
  110        $is_admin = 
$rbacsystem->checkAccessOfUser($a_user_id, 
'write', $a_ref_id);
 
  112        switch ($a_permission) {
 
  164            array(
"permission" => 
"read", 
"cmd" => 
"infoScreen", 
"lang_var" => 
"svy_run", 
"default" => 
true),
 
  165            array(
"permission" => 
"write", 
"cmd" => 
"questionsrepo", 
"lang_var" => 
"edit_questions"),
 
  166            array(
"permission" => 
"write", 
"cmd" => 
"properties", 
"lang_var" => 
"settings"),
 
  167            array(
"permission" => 
"read", 
"cmd" => 
"evaluation", 
"lang_var" => 
"svy_results")
 
  187            "SELECT * FROM svy_svy WHERE obj_fi=%s",
 
  195        if (!$row[
"complete"]) {
 
  211            "SELECT * FROM svy_svy WHERE obj_fi=%s",
 
  219        return $row[
"evaluation_access"];
 
  229            "SELECT finished_id FROM svy_finished WHERE user_fi = %s AND survey_fi = %s",
 
  230            array(
'integer',
'integer'),
 
  231            array($user_id, $survey_id)
 
  233        return (
$result->numRows() == 1) ? true : 
false;
 
  243            "SELECT anonymize FROM svy_svy WHERE obj_fi = %s",
 
  249            return $row[
"anonymize"];
 
  258        switch ($evaluation_access) {
 
  265                if (($user_id > 0) && ($user_id != ANONYMOUS_USER_ID)) {
 
  277                        switch ($svy->get360Results()) {
 
  282                                return $svy->isAppraiseeClosed($user_id);
 
  285                                return $svy->isAppraisee($user_id);
 
  292                        switch ($svy->getSelfEvaluationResults()) {
 
  314                            "SELECT survey_id FROM svy_svy WHERE obj_fi = %s",
 
  346        if (!strlen($a_user_id)) {
 
  351            "SELECT * FROM svy_svy WHERE obj_fi = %s",
 
  357            if ($row->anonymize == 1) {
 
  359                    "SELECT * FROM svy_finished, svy_anonymous WHERE svy_finished.survey_fi = %s " .
 
  360                    "AND svy_finished.survey_fi = svy_anonymous.survey_fi AND svy_anonymous.user_key = %s " .
 
  361                    "AND svy_anonymous.survey_key = svy_finished.anonymous_id",
 
  362                    array(
'integer',
'text'),
 
  363                    array($row->survey_id, md5($a_user_id))
 
  367                    "SELECT * FROM svy_finished WHERE survey_fi = %s AND user_fi = %s",
 
  368                    array(
'integer',
'integer'),
 
  369                    array($row->survey_id, $a_user_id)
 
  374                $finished = (int) $foundrow[
"state"];
 
  392            "SELECT mode FROM svy_svy" .
 
  393            " WHERE obj_fi = %s",
 
  412            "SELECT mode FROM svy_svy" .
 
  413            " WHERE obj_fi = %s AND mode = %s",
 
  414            array(
'integer',
'integer'),
 
  427        $ilAccess = 
$DIC->access();
 
  429        $t_arr = explode(
"_", $a_target);
 
  431        if ($t_arr[0] != 
"svy" || ((
int) $t_arr[1]) <= 0) {
 
  436        if (
$_GET[
"accesscode"]) {
 
  442        if ($ilAccess->checkAccess(
"visible", 
"", $t_arr[1]) ||
 
  443            $ilAccess->checkAccess(
"read", 
"", $t_arr[1])) {
 
An exception for terminatinating execution or to throw for unit testing.
const IL_NO_OBJECT_ACCESS
static _isSurveyParticipant($user_id, $survey_id)
static _lookupEvaluationAccess($a_obj_id)
get evaluation access
static getConditionOperators()
Get possible conditions operators.
static _lookup360Mode($a_obj_id)
static _getCommands()
get commands
__construct()
Constructor.
_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::checkAcce...
static checkCondition($a_svy_id, $a_operator, $a_value, $a_usr_id)
check condition
static _lookupMode($a_obj_id)
Get survey mode.
static _lookupFinished($a_obj_id, $a_user_id="")
get finished status
static _lookupCreationComplete($a_obj_id)
checks wether all necessary parts of the survey are given
static _checkGoto($a_target)
check whether goto script will succeed
static _hasEvaluationAccess($a_obj_id, $user_id)
static _lookupAnonymize($a_obj_id)
const RESULTS_SELF_EVAL_NONE
static validateExternalRaterCode($a_ref_id, $a_code)
Interface for condition handling.