ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Digest.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
27 
28 class Digest
29 {
32 
33  public function __construct(
34  ContentAssembler $content_assembler,
35  ManipulatorAdapter $manipulator_adapter
36  ) {
37  $this->content_assembler = $content_assembler;
38  $this->manipulator_adapter = $manipulator_adapter;
39  }
40 
44  public function getContent(
45  SetInterface $set,
46  ?RequestForFormInterface $request = null
47  ): \Generator {
48  yield from $this->content_assembler->get($set, $request);
49  }
50 
51  public function updateMD(
52  SetInterface $set,
54  ): bool {
55  return $this->manipulator_adapter->update($set, $request);
56  }
57 }
getContent(SetInterface $set, ?RequestForFormInterface $request=null)
Definition: Digest.php:44
updateMD(SetInterface $set, RequestForFormInterface $request)
Definition: Digest.php:51
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
ManipulatorAdapter $manipulator_adapter
Definition: Digest.php:31
ContentAssembler $content_assembler
Definition: Digest.php:30
__construct(ContentAssembler $content_assembler, ManipulatorAdapter $manipulator_adapter)
Definition: Digest.php:33