3declare(strict_types=1);
47 $children = $this->tree->getChilds($ref_id);
49 $sorting_settings = $this->container_sorting->getSortingSettings();
51 $sorted = $this->container_sorting->sortItems(array(
'lsitems' => $children));
52 $children = $sorted[
'lsitems'];
57 foreach ($children as $position => $child) {
58 $ref_id = (int) $child[
'child'];
63 $child[
'description'] ??
"",
65 $this->ls_item_online_status->getOnlineStatus($ref_id),
88 return (
int)
$i[
'child'];
94 foreach ($this->post_conditions_db->select($ref_ids) as $condition) {
95 $conditions[$condition->getRefId()] = $condition;
103 $type_positions = [];
104 foreach ($ls_items as $item) {
105 $type_positions[$item->getRefId()] = $item->getOrderNumber();
107 $this->container_sorting->savePost($type_positions);
112 foreach ($ls_items as $item) {
113 $this->ls_item_online_status->setOnlineStatus(
123 foreach ($ls_items as $item) {
124 $conditions[] = $item->getPostCondition();
126 $this->post_conditions_db->upsert($conditions);
An exception for terminatinating execution or to throw for unit testing.
Data holding class LSItem .
storePostconditions(array $ls_items)
__construct(ilTree $tree, ilContainerSorting $container_sorting, ilLSPostConditionDB $post_conditions_db, LSItemOnlineStatus $ls_item_online_status)
getIconPathForType(string $type)
storeItems(array $ls_items)
Use this to apply settings made in ContentGUI.
storeOnlineStatus(array $ls_items)
getObjectFor(int $ref_id)
getConditionsForChildren(array $children)
Collect all conditions at once.
storeItemsOrder(array $ls_items)
Storage for ilLSPostConditions.
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
Class ilObject Basic functions for all objects.
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...