ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilCategoryConditionController.php
Go to the documentation of this file.
1 <?php
2 
3 /* Copyright (c) 1998-2018 ILIAS open source, Extended GPL, see docs/LICENSE */
4 
5 include_once("./Services/Conditions/interfaces/interface.ilConditionControllerInterface.php");
6 
14 {
18  public function isContainerConditionController($container_ref_id) : bool
19  {
20  return false;
21  return true;
22  }
23 
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  }
42 }
global $DIC
Definition: saml.php:7
isContainerConditionController($container_ref_id)
Returns true, if the a container controls the conditions of its childrens.ref id of a container bool ...
getConditionSetForRepositoryObject($ref_id)
Returns condition set for a repository object which is children under a container that controls the c...
Interface for containers that take over control of conditions for repository object targets...