3 declare(strict_types=1);
40 $this->tree = $DIC->repositoryTree();
42 $this->
lng = $DIC->language();
47 return (
int) $this->
settings->get(self::SET_LIMITATION);
52 return (
int) $this->
settings->get(self::SET_LIMIT_NUMBER);
57 $max = (
int) $this->
settings->get(self::SET_LIMIT_NUMBER);
61 $this->
lng->txt(
"exp_error_disabled")
66 foreach ($this->tree->getSubTree($root = $this->tree->getNodeData($ref_id)) as $node) {
67 if (isset($options[$node[
"child"]]) && (in_array((
int) $options[$node[
"child"]][
"type"], [1, 2]))) {
71 if ($max > 0 && $cnt > $max) {
75 $this->
lng->txt(
"exp_error_too_many_objects")
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
checkLimitation(int $ref_id, array $options)
const SET_EXPORT_DISABLED
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...