ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.DataService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
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
48 {
49 return new ObjectivesBlock();
50 }
51
52 public function sessionBlock(): SessionBlock
53 {
54 return new SessionBlock();
55 }
56
58 {
59 return new ItemGroupBlock($ref_id);
60 }
61
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}
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
Definition: plugin.php:23
itemBlock(string $id, Block $block, array $item_ref_ids, bool $exhausted, array $objective_ids=[])
blockItemsInfo(array $ref_ids, bool $limit_exhausted)
A block that holds a single item group.
Represents all item groups of a container.
A block that holds all objectives and their items.
A block that holds all other "remaining" items.
A block that holds session in a special presentation.
A single block containing items of a (grouped) repo type.
Represents all "by type" blocks of a container.
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$ref_id
Definition: ltiauth.php:66
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61