ILIAS  release_7 Revision v7.30-3-g800a261c036
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 if object type does not support centralized offline handling. 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...
 
 canBeDelivered (ilWACPath $ilWACPath)
 
Parameters
ilWACPath$ilWACPath
Returns
bool
More...
 
 canBeDelivered (ilWACPath $ilWACPath)
 

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 11 of file class.ilObjIndividualAssessmentAccess.php.

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

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 37 of file class.ilObjIndividualAssessmentAccess.php.

38 {
39 require_once 'Modules/IndividualAssessment/classes/LearningProgress/class.ilIndividualAssessmentLPInterface.php';
40 switch ($a_operator) {
44 break;
48 default:
49 return false;
50 }
51 return false;
52 }

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 25 of file class.ilObjIndividualAssessmentAccess.php.

26 {
27 include_once './Services/Conditions/classes/class.ilConditionHandler.php';
28 return array(
31 );
32 }

References ilConditionHandler\OPERATOR_FAILED, and ilConditionHandler\OPERATOR_PASSED.


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