19declare(strict_types=1);
42 $this->tree =
$DIC->repositoryTree();
43 $this->obj_definition =
$DIC[
"objDefinition"];
68 public function isUnderParentControl(
int $ref_id): bool
71 $parent = $this->tree->getParentId(
$ref_id);
75 $parent_obj_id = $this->cond_obj_adapter->getObjIdForRefId($parent);
76 $parent_type = $this->cond_obj_adapter->getTypeForObjId($parent_obj_id);
78 $class = $this->obj_definition->getClassName($parent_type);
79 $class_name =
"il" . $class .
"ConditionController";
80 $location = $this->obj_definition->getLocation($parent_type);
82 if (is_file(
$location .
"/class." . $class_name .
".php")) {
84 $controller =
new $class_name();
85 return $controller->isContainerConditionController($parent);
INTERNAL CLASS: Please do not use in consumer code.
Wraps ilObject dependencies.
Condition utility object Wraps some ilConditionHandler methods (which will become deprecated) Depende...
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.
__construct(?ilConditionObjectAdapterInterface $cond_obj_adapter=null)
ilObjectDefinition $obj_definition
parses the objects.xml it handles the xml-description of all ilias objects
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
Interface for ilObject dependency.