ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.DataService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Container\Content;
22 
26 
31 {
32  public function typeBlock(string $type): TypeBlock
33  {
34  return new TypeBlock($type);
35  }
36 
37  public function typeBlocks(): TypeBlocks
38  {
39  return new TypeBlocks();
40  }
41 
42  public function otherBlock(): OtherBlock
43  {
44  return new OtherBlock();
45  }
46 
47  public function objectivesBlock(): ObjectivesBlock
48  {
49  return new ObjectivesBlock();
50  }
51 
52  public function sessionBlock(): SessionBlock
53  {
54  return new SessionBlock();
55  }
56 
57  public function itemGroupBlock(int $ref_id): ItemGroupBlock
58  {
59  return new ItemGroupBlock($ref_id);
60  }
61 
62  public function itemGroupBlocks(): ItemGroupBlocks
63  {
64  return new ItemGroupBlocks();
65  }
66 
70  public function blockSequence(array $parts): BlockSequence
71  {
72  return new BlockSequence($parts);
73  }
74 
75  //
76  // Blocks with items
77  //
78 
82  public function itemBlock(
83  string $id,
84  Block $block,
85  array $item_ref_ids,
86  bool $exhausted,
87  array $objective_ids = []
88  ): ItemBlock {
89  return new ItemBlock($id, $block, $item_ref_ids, $exhausted, $objective_ids);
90  }
91 
92  public function itemBlockSequence(array $blocks): ItemBlockSequence
93  {
94  return new ItemBlockSequence($blocks);
95  }
96 
97  public function blockItemsInfo(array $ref_ids, bool $limit_exhausted): BlockItemsInfo
98  {
99  return new BlockItemsInfo($ref_ids, $limit_exhausted);
100  }
101 }
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
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:65
A block that holds all objectives and their items.
Represents all item groups of a container.
A block that holds all other "remaining" items.
blockItemsInfo(array $ref_ids, bool $limit_exhausted)
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
itemBlock(string $id, Block $block, array $item_ref_ids, bool $exhausted, array $objective_ids=[])