3 declare(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);
Storage for ilLSPostConditions.
getObjectFor(int $ref_id)
storeItems(array $ls_items)
Use this to apply settings made in ContentGUI.
storeItemsOrder(array $ls_items)
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Data holding class LSItem .
storeOnlineStatus(array $ls_items)
Tree class data representation in hierachical trees using the Nested Set Model with Gaps by Joe Celco...
getConditionsForChildren(array $children)
Collect all conditions at once.
static getInstanceByRefId($a_ref_id, $stop_on_error=true)
get an instance of an Ilias object by reference id
storePostconditions(array $ls_items)
__construct(ilTree $tree, ilContainerSorting $container_sorting, ilLSPostConditionDB $post_conditions_db, LSItemOnlineStatus $ls_item_online_status)
getIconPathForType(string $type)