ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilConditionUtil Class Reference

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

+ Collaboration diagram for ilConditionUtil:

Public Member Functions

 __construct (?ilConditionObjectAdapterInterface $cond_obj_adapter=null)
 
 getValidRepositoryTriggerTypes ()
 Get all valid repository trigger object types This holds currently a dependency on $objDefinition and plugin activation. More...
 
 getOperatorsForRepositoryTriggerType (string $a_type)
 Get operators for repository trigger object type. More...
 

Protected Attributes

ilTree $tree
 
ilConditionObjectAdapterInterface $cond_obj_adapter
 
ilObjectDefinition $obj_definition
 

Detailed Description

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

Author
@leifos.de

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

Constructor & Destructor Documentation

◆ __construct()

ilConditionUtil::__construct ( ?ilConditionObjectAdapterInterface  $cond_obj_adapter = null)

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

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 }
ilConditionObjectAdapterInterface $cond_obj_adapter
global $DIC
Definition: shib_login.php:26

References $cond_obj_adapter, and $DIC.

Member Function Documentation

◆ getOperatorsForRepositoryTriggerType()

ilConditionUtil::getOperatorsForRepositoryTriggerType ( string  $a_type)

Get operators for repository trigger object type.

Returns
string[]

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

60 : array
61 {
62 return (new ilConditionHandler())->getOperatorsByTriggerType($a_type);
63 }
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 51 of file class.ilConditionUtil.php.

51 : array
52 {
53 return (new ilConditionHandler())->getTriggerTypes();
54 }

Field Documentation

◆ $cond_obj_adapter

ilConditionObjectAdapterInterface ilConditionUtil::$cond_obj_adapter
protected

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

Referenced by __construct().

◆ $obj_definition

ilObjectDefinition ilConditionUtil::$obj_definition
protected

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

◆ $tree

ilTree ilConditionUtil::$tree
protected

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


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