ILIAS  release_8 Revision v8.23
class.ItemManager.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Container\Content;
22 
27 {
28  protected \ilContainer $container;
30 
31  public function __construct(
32  \ilContainer $container,
33  ItemSessionRepository $item_repo
34  ) {
35  $this->item_repo = $item_repo;
36  $this->container = $container;
37  }
38 
39  public function setExpanded(int $id, int $val): void
40  {
41  $this->item_repo->setExpanded($id, $val);
42  }
43 
44  public function getExpanded(int $id): ?int
45  {
46  return $this->item_repo->getExpanded($id);
47  }
48 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
__construct(\ilContainer $container, ItemSessionRepository $item_repo)