ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
FitToSquare.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
30{
31 public const FOREVER_ID = '5cd8cb02a6382208da39cc142cbf993f42995452bb6c8d9897a2e227fb238c62';
32
33 public function __construct(
34 protected bool $persist = false,
35 protected int $max_size = 512,
36 protected int $quality = 75
37 ) {
38 }
39
40 public function getId(): string
41 {
42 return self::FOREVER_ID;
43 }
44
45
46 public function getFlavourMachineId(): string
47 {
48 return FitSquare::ID;
49 }
50
51 public function getQuality(): int
52 {
53 return $this->quality;
54 }
55
56 public function getMaxSize(): int
57 {
58 return $this->max_size;
59 }
60
61 public function getInternalName(): string
62 {
63 return 'fit_to_square';
64 }
65
66 public function getVariantName(): ?string
67 {
68 return $this->max_size . '_' . $this->quality;
69 }
70
71
72 public function persist(): bool
73 {
74 return $this->persist;
75 }
76}
__construct(protected bool $persist=false, protected int $max_size=512, protected int $quality=75)
Definition: FitToSquare.php:33
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it,...
Definition: FitToSquare.php:61
persist()
Define whether the generated flavor and the respective streams should be persisted,...
Definition: FitToSquare.php:72
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
Definition: FitToSquare.php:46
getVariantName()
If a definition can be used in several variants (e.g.
Definition: FitToSquare.php:66
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...