ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
PagesToExtract.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
24
30{
31 public const FOREVER_ID = 'cbcb933538e2dfe9460d7a225f7b543b556ee580f41bd4f06cf16a4ca8dd8c8c';
35 private const QUALITY = 75;
36 protected bool $use_max_quality = false;
37
38 public function __construct(protected bool $persist, protected int $max_size = 500, protected int $max_pages = 5, protected bool $fill = false, private int $quality = self::QUALITY)
39 {
40 }
41
42 public function getId(): string
43 {
44 return self::FOREVER_ID;
45 }
46
47 public function getFlavourMachineId(): string
48 {
49 return ExtractPages::ID;
50 }
51
52 public function getMaxPages(): int
53 {
54 return $this->max_pages;
55 }
56
57 public function getMaxSize(): int
58 {
59 return $this->max_size;
60 }
61
62 public function isFill(): bool
63 {
64 return $this->fill;
65 }
66
67 public function getQuality(): int
68 {
69 return $this->quality;
70 }
71
72 public function useMaxQuality(): bool
73 {
75 }
76
77
78 public function getInternalName(): string
79 {
80 return 'extracted_pages';
81 }
82
83 public function getVariantName(): ?string
84 {
85 return $this->max_size . 'x' . $this->max_size . ($this->fill ? '_fill' : '') . '_' . $this->getQuality();
86 }
87
88 public function persist(): bool
89 {
90 return $this->persist;
91 }
92}
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it,...
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
getVariantName()
If a definition can be used in several variants (e.g.
persist()
Define whether the generated flavor and the respective streams should be persisted,...
__construct(protected bool $persist, protected int $max_size=500, protected int $max_pages=5, protected bool $fill=false, private int $quality=self::QUALITY)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...