ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
AssignmentRow.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Repository\Utilities\Queries\Assignments
;
22
23
class
AssignmentRow
implements
AssignmentRowInterface
24
{
25
protected
string
$table
;
26
protected
int
$id
;
27
protected
int
$id_from_parent_table
;
28
32
protected
array
$value_assignments
= [];
33
34
public
function
__construct
(
35
string
$table,
36
int
$id,
37
int
$id_from_parent_table
38
) {
39
$this->
table
=
$table
;
40
$this->
id
=
$id
;
41
$this->id_from_parent_table =
$id_from_parent_table
;
42
}
43
44
public
function
table
(): string
45
{
46
return
$this->table
;
47
}
48
49
public
function
id
():
int
50
{
51
return
$this->id
;
52
}
53
54
public
function
setId
(
int
$id): void
55
{
56
$this->
id
=
$id
;
57
}
58
59
public
function
idFromParentTable
():
int
60
{
61
return
$this->id_from_parent_table
;
62
}
63
67
public
function
actions
(): \
Generator
68
{
69
yield
from
$this->value_assignments
;
70
}
71
72
public
function
addAction
(
73
ActionAssignmentInterface
$assignment
74
): void {
75
$this->value_assignments[] = $assignment;
76
}
77
}
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\addAction
addAction(ActionAssignmentInterface $assignment)
Note that this does not clone!
Definition:
AssignmentRow.php:72
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRowInterface
Definition:
AssignmentRowInterface.php:23
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\actions
actions()
Definition:
AssignmentRow.php:67
ILIAS\MetaData\Repository\Utilities\Queries\Assignments
Definition:
Action.php:21
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\table
table()
Definition:
AssignmentRow.php:44
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\__construct
__construct(string $table, int $id, int $id_from_parent_table)
Definition:
AssignmentRow.php:34
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\$value_assignments
array $value_assignments
Definition:
AssignmentRow.php:32
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow
Definition:
AssignmentRow.php:23
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\setId
setId(int $id)
Definition:
AssignmentRow.php:54
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\$table
string $table
Definition:
AssignmentRow.php:25
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\$id_from_parent_table
int $id_from_parent_table
Definition:
AssignmentRow.php:27
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\ActionAssignmentInterface
Definition:
ActionAssignmentInterface.php:25
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\id
id()
Definition:
AssignmentRow.php:49
Generator
ILIAS\ResourceStorage\Flavour\Machine\DefaultMachines\from
from(FileStream $stream)
Definition:
GdImageToStreamTrait.php:49
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\$id
int $id
Definition:
AssignmentRow.php:26
ILIAS\MetaData\Repository\Utilities\Queries\Assignments\AssignmentRow\idFromParentTable
idFromParentTable()
Definition:
AssignmentRow.php:59
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
MetaData
classes
Repository
Utilities
Queries
Assignments
AssignmentRow.php
Generated on Tue Sep 2 2025 23:03:30 for ILIAS by
1.8.13 (using
Doxyfile
)