ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
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
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
ScalarValue.php
Go to the documentation of this file.
1
<?php
2
19
namespace
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
;
20
21
use
ILIAS\BackgroundTasks\Exceptions\InvalidArgumentException
;
22
use
ILIAS\BackgroundTasks\Implementation\Values\AbstractValue
;
23
use
ILIAS\BackgroundTasks\Value
;
24
25
class
ScalarValue
extends
AbstractValue
26
{
30
protected
$value
;
31
38
public
function
serialize
()
39
{
40
return
serialize
($this->value);
41
}
42
52
public
function
unserialize
($serialized)
53
{
54
$this->value =
unserialize
($serialized);
55
}
56
62
public
function
getHash
(): string
63
{
64
return
md5($this->
serialize
());
65
}
66
67
public
function
equals
(
Value
$other): bool
68
{
69
if
(!$other instanceof
ScalarValue
) {
70
return
false
;
71
}
72
73
return
$this->value == $other->getValue();
74
}
75
79
public
function
getValue
()
80
{
81
return
$this->value
;
82
}
83
88
public
function
setValue
(
$value
): void
89
{
90
if
(!is_scalar(
$value
)) {
91
throw
new
InvalidArgumentException
(
"The value given must be a scalar! See php-documentation is_scalar()."
);
92
}
93
94
$this->value =
$value
;
95
}
96
}
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\setValue
setValue($value)
Definition:
ScalarValue.php:88
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
BasicScalarValueFactory.php:19
InvalidArgumentException
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\getValue
getValue()
Definition:
ScalarValue.php:79
ILIAS\BackgroundTasks\Implementation\Values\AbstractValue
Definition:
AbstractValue.php:31
ILIAS\BackgroundTasks\Value
Definition:
Value.php:29
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue
Definition:
ScalarValue.php:25
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\equals
equals(Value $other)
Definition:
ScalarValue.php:67
AbstractValue
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\unserialize
unserialize($serialized)
Constructs the object http://php.net/manual/en/serializable.unserialize.php.
Definition:
ScalarValue.php:52
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\getHash
getHash()
Definition:
ScalarValue.php:62
InvalidArgumentException
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\$value
$value
Definition:
ScalarValue.php:30
Value
ILIAS\BackgroundTasks\Implementation\Values\ScalarValues\ScalarValue\serialize
serialize()
String representation of object http://php.net/manual/en/serializable.serialize.php.
Definition:
ScalarValue.php:38
src
BackgroundTasks
Implementation
Values
ScalarValues
ScalarValue.php
Generated on Fri Apr 4 2025 22:03:07 for ILIAS by
1.8.13 (using
Doxyfile
)