3declare(strict_types=1);
43 $this->tree =
$DIC->repositoryTree();
44 $this->obj_definition =
$DIC[
"objDefinition"];
69 public function isUnderParentControl(
int $ref_id): bool
72 $parent = $this->tree->getParentId(
$ref_id);
76 $parent_obj_id = $this->cond_obj_adapter->getObjIdForRefId($parent);
77 $parent_type = $this->cond_obj_adapter->getTypeForObjId($parent_obj_id);
79 $class = $this->obj_definition->getClassName($parent_type);
80 $class_name =
"il" . $class .
"ConditionController";
81 $location = $this->obj_definition->getLocation($parent_type);
83 if (is_file(
$location .
"/class." . $class_name .
".php")) {
85 $controller =
new $class_name();
86 return $controller->isContainerConditionController($parent);
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Wraps ilObject dependencies.
Condition utility object Wraps some ilConditionHandler methods (which will become deprecated) Depende...
__construct(ilConditionObjectAdapterInterface $cond_obj_adapter=null)
ilConditionObjectAdapterInterface $cond_obj_adapter
getValidRepositoryTriggerTypes()
Get all valid repository trigger object types This holds currently a dependency on $objDefinition and...
getOperatorsForRepositoryTriggerType(string $a_type)
Get operators for repository trigger object type.
ilObjectDefinition $obj_definition
parses the objects.xml it handles the xml-description of all ilias objects
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Interface for ilObject dependency.