ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
Public Member Functions | |
__construct (protected FlavourBuilder $flavour_builder, protected ResourceBuilder $resource_builder) | |
get (ResourceIdentification $rid, FlavourDefinition $flavour_definition) | |
@description Use get() to get a Flavour for the FlavourDefinition for a ResourceIdentification. More... | |
ensure (ResourceIdentification $rid, FlavourDefinition $flavour_definition) | |
@description Actually like get(), but without return and can be used to create Flavour before you want to get them. More... | |
has (ResourceIdentification $rid, FlavourDefinition $flavour_definition) | |
@description This can be used to ask whether a Flavor already exists for the FlavourDefinition for a certain IRSS ResourceIdentification. More... | |
remove (ResourceIdentification $rid, FlavourDefinition $flavour_definition) | |
@description You don't need a flavor anymore or you want to delete it because you explicitly want to regenerate it? Use delete for this More... | |
possible (ResourceIdentification $rid, FlavourDefinition $flavour_definition) | |
@description Hereby you can check in advance, if there is a Machine and an Engine for your FlavourDefinition, which can generate the Flavour you want. More... | |
Definition at line 30 of file Flavours.php.
ILIAS\ResourceStorage\Flavour\Flavours::__construct | ( | protected FlavourBuilder | $flavour_builder, |
protected ResourceBuilder | $resource_builder | ||
) |
Definition at line 32 of file Flavours.php.
Referenced by ILIAS\ResourceStorage\Flavours\FlavourMachineTest\createSVGColorChangeDefinition().
ILIAS\ResourceStorage\Flavour\Flavours::ensure | ( | ResourceIdentification | $rid, |
FlavourDefinition | $flavour_definition | ||
) |
@description Actually like get(), but without return and can be used to create Flavour before you want to get them.
Definition at line 53 of file Flavours.php.
ILIAS\ResourceStorage\Flavour\Flavours::get | ( | ResourceIdentification | $rid, |
FlavourDefinition | $flavour_definition | ||
) |
@description Use get() to get a Flavour for the FlavourDefinition for a ResourceIdentification.
If the Flavour already exists you will get it, if not it will be created and returned directly.
Take into account that a Flavour can come back without Tokens for accessing the streams of the Flavour, namely if the Flavour does not contain any Streams. You will usually use the flavor with the Consumers of the IRSS anyway, so you don't have to worry about that.
Definition at line 45 of file Flavours.php.
ILIAS\ResourceStorage\Flavour\Flavours::has | ( | ResourceIdentification | $rid, |
FlavourDefinition | $flavour_definition | ||
) |
@description This can be used to ask whether a Flavor already exists for the FlavourDefinition for a certain IRSS ResourceIdentification.
Definition at line 65 of file Flavours.php.
Referenced by ILIAS\ResourceStorage\Flavour\Flavours\remove().
ILIAS\ResourceStorage\Flavour\Flavours::possible | ( | ResourceIdentification | $rid, |
FlavourDefinition | $flavour_definition | ||
) |
@description Hereby you can check in advance, if there is a Machine and an Engine for your FlavourDefinition, which can generate the Flavour you want.
Definition at line 87 of file Flavours.php.
ILIAS\ResourceStorage\Flavour\Flavours::remove | ( | ResourceIdentification | $rid, |
FlavourDefinition | $flavour_definition | ||
) |
@description You don't need a flavor anymore or you want to delete it because you explicitly want to regenerate it? Use delete for this
Definition at line 75 of file Flavours.php.
References ILIAS\ResourceStorage\Flavour\Flavours\has().