ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilConditionUtil Class Reference

Condition utility object. More...

+ Collaboration diagram for ilConditionUtil:

Public Member Functions

 __construct (ilConditionObjectAdapterInterface $cond_obj_adapter=null)
 Constructor. More...
 
 getValidRepositoryTriggerTypes ()
 Get all valid repository trigger object types. More...
 
 getOperatorsForRepositoryTriggerType ($a_type)
 Get operators for repository trigger object type. More...
 

Protected Attributes

 $tree
 
 $cond_obj_adapter
 
 $obj_definition
 

Detailed Description

Condition utility object.

Wraps some ilConditionHandler methods (which will become deprecated) Dependency management needs to be improved.

Author
.de

Definition at line 14 of file class.ilConditionUtil.php.

Constructor & Destructor Documentation

◆ __construct()

ilConditionUtil::__construct ( ilConditionObjectAdapterInterface  $cond_obj_adapter = null)

Constructor.

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

References $cond_obj_adapter, and $DIC.

35  {
36  global $DIC;
37 
38  if (is_null($cond_obj_adapter)) {
39  $this->cond_obj_adapter = new ilConditionObjectAdapter();
40  }
41 
42  $this->tree = $DIC->repositoryTree();
43  $this->obj_definition = $DIC["objDefinition"];
44  }
Wraps ilObject dependencies.
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ getOperatorsForRepositoryTriggerType()

ilConditionUtil::getOperatorsForRepositoryTriggerType (   $a_type)

Get operators for repository trigger object type.

Parameters
string$a_typetype
Returns
string[]

Definition at line 65 of file class.ilConditionUtil.php.

References $a_type, and $location.

66  {
67  $ch = new ilConditionHandler();
68  return $ch->getOperatorsByTriggerType($a_type);
69  }
$a_type
Definition: workflow.php:92
INTERNAL CLASS: Please do not use in consumer code.

◆ getValidRepositoryTriggerTypes()

ilConditionUtil::getValidRepositoryTriggerTypes ( )

Get all valid repository trigger object types.

This holds currently a dependency on $objDefinition and plugin activation

Returns
string[]

Definition at line 53 of file class.ilConditionUtil.php.

54  {
55  $ch = new ilConditionHandler();
56  return $ch->getTriggerTypes();
57  }
INTERNAL CLASS: Please do not use in consumer code.

Field Documentation

◆ $cond_obj_adapter

ilConditionUtil::$cond_obj_adapter
protected

Definition at line 24 of file class.ilConditionUtil.php.

Referenced by __construct().

◆ $obj_definition

ilConditionUtil::$obj_definition
protected

Definition at line 29 of file class.ilConditionUtil.php.

◆ $tree

ilConditionUtil::$tree
protected

Definition at line 19 of file class.ilConditionUtil.php.


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