3 declare(strict_types=1);
39 if (is_null($cond_obj_adapter)) {
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);
getValidRepositoryTriggerTypes()
Get all valid repository trigger object types This holds currently a dependency on $objDefinition and...
Wraps ilObject dependencies.
$location
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(ilConditionObjectAdapterInterface $cond_obj_adapter=null)
Interface for ilObject dependency.
parses the objects.xml it handles the xml-description of all ilias objects
Condition utility object Wraps some ilConditionHandler methods (which will become deprecated) Depende...
getOperatorsForRepositoryTriggerType(string $a_type)
Get operators for repository trigger object type.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ilConditionObjectAdapterInterface $cond_obj_adapter
ilObjectDefinition $obj_definition