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

Only for testing purposes... More...

+ Inheritance diagram for ilCategoryConditionController:
+ Collaboration diagram for ilCategoryConditionController:

Public Member Functions

 isContainerConditionController ($container_ref_id)
 Returns true, if the a container controls the conditions of its childrens.
Parameters
int$a_container_ref_idref id of a container
Returns
bool
More...
 
 getConditionSetForRepositoryObject ($ref_id)
 Returns condition set for a repository object which is children under a container that controls the conditions.
Parameters
int$a_container_child_ref_idref if of children object
Returns
ilConditionSet
More...
 

Detailed Description

Only for testing purposes...

Author
killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 13 of file class.ilCategoryConditionController.php.

Member Function Documentation

◆ getConditionSetForRepositoryObject()

ilCategoryConditionController::getConditionSetForRepositoryObject (   $ref_id)

Returns condition set for a repository object which is children under a container that controls the conditions.

Parameters
int$a_container_child_ref_idref if of children object
Returns
ilConditionSet

Implements ilConditionControllerInterface.

Definition at line 27 of file class.ilCategoryConditionController.php.

References $DIC, and $f.

28  {
29  global $DIC;
30 
31  $f = $DIC->conditions()->factory();
32 
33  $conditions = array();
34  if ($ref_id == 72) {
35  // $conditions[] = $f->condition($f->repositoryTrigger(73), $f->operator()->passed());
36  }
37 
38 
39 
40  return $f->set($conditions);
41  }
global $DIC
Definition: saml.php:7

◆ isContainerConditionController()

ilCategoryConditionController::isContainerConditionController (   $container_ref_id)

Returns true, if the a container controls the conditions of its childrens.

Parameters
int$a_container_ref_idref id of a container
Returns
bool

Implements ilConditionControllerInterface.

Definition at line 18 of file class.ilCategoryConditionController.php.

18  : bool
19  {
20  return false;
21  return true;
22  }

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