ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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
5include_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}
An exception for terminatinating execution or to throw for unit testing.
isContainerConditionController($container_ref_id)
Returns true, if the a container controls the conditions of its childrens.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.
$DIC
Definition: xapitoken.php:46