ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.DataService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
18 namespace ILIAS\Container\Content;
19 
23 
28 {
29  public function typeBlock(string $type): TypeBlock
30  {
31  return new TypeBlock($type);
32  }
33 
34  public function typeBlocks(): TypeBlocks
35  {
36  return new TypeBlocks();
37  }
38 
39  public function otherBlock(): OtherBlock
40  {
41  return new OtherBlock();
42  }
43 
44  public function objectivesBlock(): ObjectivesBlock
45  {
46  return new ObjectivesBlock();
47  }
48 
49  public function sessionBlock(): SessionBlock
50  {
51  return new SessionBlock();
52  }
53 
54  public function itemGroupBlock(int $ref_id): ItemGroupBlock
55  {
56  return new ItemGroupBlock($ref_id);
57  }
58 
59  public function itemGroupBlocks(): ItemGroupBlocks
60  {
61  return new ItemGroupBlocks();
62  }
63 
67  public function blockSequence(array $parts): BlockSequence
68  {
69  return new BlockSequence($parts);
70  }
71 
72  //
73  // Blocks with items
74  //
75 
79  public function itemBlock(
80  string $id,
81  Block $block,
82  array $item_ref_ids,
83  bool $exhausted,
84  array $objective_ids = []
85  ): ItemBlock {
86  return new ItemBlock($id, $block, $item_ref_ids, $exhausted, $objective_ids);
87  }
88 
89  public function itemBlockSequence(array $blocks): ItemBlockSequence
90  {
91  return new ItemBlockSequence($blocks);
92  }
93 
94  public function blockItemsInfo(array $ref_ids, bool $limit_exhausted): BlockItemsInfo
95  {
96  return new BlockItemsInfo($ref_ids, $limit_exhausted);
97  }
98 }
A single block containing items of a (grouped) repo type.
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61
blockItemsInfo(array $ref_ids, bool $limit_exhausted)
A block that holds session in a special presentation.
Represents all "by type" blocks of a container.
A block that holds a single item group.
$ref_id
Definition: ltiauth.php:66
A block that holds all objectives and their items.
itemBlock(string $id, Block $block, array $item_ref_ids, bool $exhausted, array $objective_ids=[])
Represents all item groups of a container.
A block that holds all other "remaining" items.
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:24