ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FlavourData.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
31class FlavourData extends Data
32{
33 public function __construct(
35 FlavourDefinition $definition,
36 Flavour $flavour,
37 ?\Throwable $e = null
38 ) {
39 $data = [
40 'rid' => $rid->serialize(),
41 'definition' => $definition->getInternalName(),
42 'flavour' => $flavour->getPersistingName(),
43 'exception' => $e ? $e->getMessage() : null
44 ];
45 parent::__construct($data, \ArrayObject::ARRAY_AS_PROPS);
46 }
47
48}
__construct(ResourceIdentification $rid, FlavourDefinition $definition, Flavour $flavour, ?\Throwable $e=null)
Definition: FlavourData.php:33
getPersistingName()
Flavours are stored in the file system by the StroageHandler.
Definition: Flavour.php:44
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it,...
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc