ILIAS
trunk Revision v11.0_alpha-1689-g66c127b4ae8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Modules
Pages
PagesToExtract.php
Go to the documentation of this file.
1
<?php
18
declare(strict_types=1);
19
20
namespace
ILIAS\ResourceStorage\Flavour\Definition
;
21
22
use
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\ExtractPages
;
23
28
class
PagesToExtract
implements
FlavourDefinition
29
{
30
public
const
FOREVER_ID
=
'cbcb933538e2dfe9460d7a225f7b543b556ee580f41bd4f06cf16a4ca8dd8c8c'
;
34
private
const
QUALITY
= 75;
35
protected
bool
$use_max_quality
=
false
;
36
37
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)
38
{
39
}
40
41
public
function
getId
(): string
42
{
43
return
self::FOREVER_ID;
44
}
45
46
public
function
getFlavourMachineId
(): string
47
{
48
return
ExtractPages::ID
;
49
}
50
51
public
function
getMaxPages
():
int
52
{
53
return
$this->max_pages;
54
}
55
56
public
function
getMaxSize
():
int
57
{
58
return
$this->max_size;
59
}
60
61
public
function
isFill
(): bool
62
{
63
return
$this->fill;
64
}
65
66
public
function
getQuality
():
int
67
{
68
return
$this->quality;
69
}
70
71
public
function
useMaxQuality
(): bool
72
{
73
return
$this->use_max_quality
;
74
}
75
76
77
public
function
getInternalName
(): string
78
{
79
return
'extracted_pages'
;
80
}
81
82
public
function
getVariantName
(): ?string
83
{
84
return
$this->max_size .
'x'
. $this->max_size . ($this->fill ?
'_fill'
:
''
) .
'_'
. $this->
getQuality
();
85
}
86
87
public
function
persist
(): bool
88
{
89
return
$this->persist;
90
}
91
}
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\QUALITY
const QUALITY
Definition:
PagesToExtract.php:34
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getInternalName
getInternalName()
This defines the speaky internal name of the definition, as the consumer would like to use it...
Definition:
PagesToExtract.php:77
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\persist
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:
PagesToExtract.php:87
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\useMaxQuality
useMaxQuality()
Definition:
PagesToExtract.php:71
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\FOREVER_ID
const FOREVER_ID
Definition:
PagesToExtract.php:30
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getMaxSize
getMaxSize()
Definition:
PagesToExtract.php:56
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getFlavourMachineId
getFlavourMachineId()
Defines the ID of the machine that supports this definition.
Definition:
PagesToExtract.php:46
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\$use_max_quality
bool $use_max_quality
Definition:
PagesToExtract.php:35
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\ExtractPages\ID
const ID
Definition:
ExtractPages.php:43
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getId
getId()
Definition:
PagesToExtract.php:41
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getVariantName
getVariantName()
If a definition can be used in several variants (e.g.
Definition:
PagesToExtract.php:82
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getMaxPages
getMaxPages()
Definition:
PagesToExtract.php:51
ILIAS\ResourceStorage\Flavour\Definition
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
CropToRectangle.php:21
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\__construct
__construct(protected bool $persist, protected int $max_size=500, protected int $max_pages=5, protected bool $fill=false, private int $quality=self::QUALITY)
Definition:
PagesToExtract.php:37
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\isFill
isFill()
Definition:
PagesToExtract.php:61
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract
Definition:
PagesToExtract.php:28
ExtractPages
ILIAS\ResourceStorage\Flavour\Definition\PagesToExtract\getQuality
getQuality()
Definition:
PagesToExtract.php:66
ILIAS\ResourceStorage\Flavour\Definition\FlavourDefinition
Definition:
FlavourDefinition.php:25
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
ResourceStorage
src
Flavour
Definition
PagesToExtract.php
Generated on Wed Apr 2 2025 23:03:29 for ILIAS by
1.8.13 (using
Doxyfile
)