ILIAS  trunk Revision v11.0_alpha-1713-gd8962da2f67
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ToGreyScale.php
Go to the documentation of this file.
1 <?php
18 declare(strict_types=1);
19 
21 
23 
29 {
30  public const FOREVER_ID = '0afbf77b53955882c43b6673251261583f3d52ed5e980b6ea6c869c065991406';
31 
32  public function __construct(
33  protected bool $persist = false,
34  protected int $quality = 75
35  ) {
36  }
37 
38  public function getFlavourMachineId(): string
39  {
40  return GreyScaleMachine::ID;
41  }
42 
43  public function getId(): string
44  {
45  return self::FOREVER_ID;
46  }
47 
48 
49  public function getInternalName(): string
50  {
51  return 'greyscale';
52  }
53 
54  public function getVariantName(): ?string
55  {
56  return null;
57  }
58 
59  public function getQuality(): int
60  {
61  return $this->quality;
62  }
63 
64  public function persist(): bool
65  {
66  return $this->persist;
67  }
68 }
persist()
Define whether the generated flavor and the respective streams should be persisted, or whether they should only be generated and used in-memory.
Definition: ToGreyScale.php:64
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
__construct(protected bool $persist=false, protected int $quality=75)
Definition: ToGreyScale.php:32
getVariantName()
If a definition can be used in several variants (e.g.
Definition: ToGreyScale.php:54
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it...
Definition: ToGreyScale.php:49
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
Definition: ToGreyScale.php:38