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
class.ilADTTextActiveRecordBridge.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
class
ilADTTextActiveRecordBridge
extends
ilADTActiveRecordBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt): bool
8
{
9
return
($a_adt instanceof
ilADTText
);
10
}
11
12
public
function
getActiveRecordFields
(): array
13
{
14
$def = $this->
getADT
()->getCopyOfDefinition();
15
16
$field =
new
arField
();
17
$field->setHasField(
true
);
18
$field->setNotNull(!$def->isNullAllowed());
19
$field->setFieldType(
arField::FIELD_TYPE_TEXT
);
20
$field->setName($this->
getElementId
());
21
22
$max = $def->getMaxLength();
23
if
($max !== null) {
24
$field->setLength($max);
25
}
26
27
return
array($field);
28
}
29
30
public
function
getFieldValue
(
string
$a_field_name)
31
{
32
return
$this->
getADT
()->getText();
33
}
34
35
public
function
setFieldValue
(
string
$a_field_name, $a_field_value): void
36
{
37
$this->
getADT
()->setText($a_field_value);
38
}
39
}
arField
Class arField.
Definition:
class.arField.php:21
ilADTTextActiveRecordBridge
Definition:
class.ilADTTextActiveRecordBridge.php:5
ilADTTextActiveRecordBridge\getFieldValue
getFieldValue(string $a_field_name)
Definition:
class.ilADTTextActiveRecordBridge.php:30
arField\FIELD_TYPE_TEXT
const FIELD_TYPE_TEXT
Definition:
class.arField.php:23
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTActiveRecordBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTActiveRecordBridge.php:71
ilADTActiveRecordBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTActiveRecordBridge.php:43
ilADTActiveRecordBridge
ADT DB bridge base class.
Definition:
class.ilADTActiveRecordBridge.php:12
ilADTTextActiveRecordBridge\getActiveRecordFields
getActiveRecordFields()
Definition:
class.ilADTTextActiveRecordBridge.php:12
ilADTText
Definition:
class.ilADTText.php:5
ilADTTextActiveRecordBridge\setFieldValue
setFieldValue(string $a_field_name, $a_field_value)
Definition:
class.ilADTTextActiveRecordBridge.php:35
ilADTTextActiveRecordBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTTextActiveRecordBridge.php:7
Services
ADT
classes
Types
Text
class.ilADTTextActiveRecordBridge.php
Generated on Thu Apr 10 2025 22:01:53 for ILIAS by
1.8.13 (using
Doxyfile
)