ILIAS
trunk Revision v11.0_alpha-2658-ge2404539063
◀ ilDoc Overview
Row.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\MetaData\Repository\Utilities\Queries\Results
;
22
23
class
Row
implements
RowInterface
24
{
25
protected
int
$id
;
26
protected
string
$table
;
27
31
protected
array
$data
;
32
33
public
function
__construct
(
34
int
$id,
35
string
$table,
36
FieldInterface
...$data
37
) {
38
$this->
id
=
$id
;
39
$this->
table
=
$table
;
40
$this->data =
$data
;
41
}
42
43
public
function
id
():
int
44
{
45
return
$this->id
;
46
}
47
48
public
function
table
(): string
49
{
50
return
$this->table
;
51
}
52
53
public
function
value
(
string
$field): string
54
{
55
foreach
($this->data as $datum) {
56
if
($datum->name() === $field) {
57
return
$datum->value();
58
}
59
}
60
return
''
;
61
}
62
}
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\id
id()
Definition:
Row.php:43
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\$table
string $table
Definition:
Row.php:26
ILIAS\MetaData\Repository\Utilities\Queries\Results\FieldInterface
Definition:
FieldInterface.php:23
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\table
table()
Definition:
Row.php:48
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\__construct
__construct(int $id, string $table, FieldInterface ... $data)
Definition:
Row.php:33
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\$data
array $data
Definition:
Row.php:31
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\$id
int $id
Definition:
Row.php:25
ILIAS\MetaData\Repository\Utilities\Queries\Results\RowInterface
Definition:
RowInterface.php:23
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row
Definition:
Row.php:23
ILIAS\MetaData\Repository\Utilities\Queries\Results
Definition:
Field.php:21
ILIAS\MetaData\Repository\Utilities\Queries\Results\Row\value
value(string $field)
Definition:
Row.php:53
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
components
ILIAS
MetaData
classes
Repository
Utilities
Queries
Results
Row.php
Generated on Tue Sep 2 2025 23:03:30 for ILIAS by
1.8.13 (using
Doxyfile
)