ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilObjIndividualAssessmentAccess Class Reference
+ Inheritance diagram for ilObjIndividualAssessmentAccess:
+ Collaboration diagram for ilObjIndividualAssessmentAccess:

Static Public Member Functions

static _getCommands ()
 get commandsthis method returns an array of all possible commands/permission combinationsexample:
$commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), ); More...
 
static getConditionOperators ()
 ilConditionHandling implementation More...
 
static checkCondition ($iass_id, $a_operator, $a_value, $a_usr_id)
 check condition for a specific user and object
Parameters
type$a_trigger_obj_id
type$a_operator
type$a_value
type$a_usr_id
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...
 
static getConditionOperators ()
 Returns an array with valid operators for the specific object type. More...
 
static checkCondition ($a_trigger_obj_id, $a_operator, $a_value, $a_usr_id)
 check condition for a specific user and object More...
 

Additional Inherited Members

- 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...
 

Detailed Description

Definition at line 6 of file class.ilObjIndividualAssessmentAccess.php.

Member Function Documentation

◆ _getCommands()

static ilObjIndividualAssessmentAccess::_getCommands ( )
static

get commandsthis method returns an array of all possible commands/permission combinationsexample:
$commands = array ( array("permission" => "read", "cmd" => "view", "lang_var" => "show"), array("permission" => "write", "cmd" => "edit", "lang_var" => "edit"), );

Reimplemented from ilObjectAccess.

Definition at line 10 of file class.ilObjIndividualAssessmentAccess.php.

10 {
11 $commands = array(
12 array("permission" => "read", "cmd" => "", "lang_var" => "show", "default" => true)
13 ,array("permission" => "write", "cmd" => "edit", "lang_var" => "edit", "default" => false)
14 );
15 return $commands;
16 }

Referenced by ilObjIndividualAssessmentListGUI\init().

+ Here is the caller graph for this function:

◆ checkCondition()

static ilObjIndividualAssessmentAccess::checkCondition (   $iass_id,
  $a_operator,
  $a_value,
  $a_usr_id 
)
static

check condition for a specific user and object

Parameters
type$a_trigger_obj_id
type$a_operator
type$a_value
type$a_usr_id

Implements ilConditionHandling.

Definition at line 34 of file class.ilObjIndividualAssessmentAccess.php.

34 {
35 require_once 'Modules/IndividualAssessment/classes/LearningProgress/class.ilIndividualAssessmentLPInterface.php';
36 switch($a_operator) {
40 break;
44 default:
45 return false;
46 }
47 return false;
48 }

References ilIndividualAssessmentLPInterface\determineStatusOfMember(), ilIndividualAssessmentMembers\LP_COMPLETED, ilIndividualAssessmentMembers\LP_FAILED, ilConditionHandler\OPERATOR_FAILED, and ilConditionHandler\OPERATOR_PASSED.

+ Here is the call graph for this function:

◆ getConditionOperators()

static ilObjIndividualAssessmentAccess::getConditionOperators ( )
static

ilConditionHandling implementation

Returns an array with valid operators for the specific object type.

Implements ilConditionHandling.

Definition at line 23 of file class.ilObjIndividualAssessmentAccess.php.

23 {
24 include_once './Services/AccessControl/classes/class.ilConditionHandler.php';
25 return array(
28 );
29 }

References ilConditionHandler\OPERATOR_FAILED, and ilConditionHandler\OPERATOR_PASSED.


The documentation for this class was generated from the following file: