ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ ilDoc Overview
class.ilADTTextActiveRecordBridge.php
Go to the documentation of this file.
1
<?
php
2
3
require_once
"Services/ADT/classes/Bridges/class.ilADTActiveRecordBridge.php"
;
4
5
class
ilADTTextActiveRecordBridge
extends
ilADTActiveRecordBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt)
8
{
9
return
($a_adt instanceof
ilADTText
);
10
}
11
12
//
13
// active record
14
//
15
16
public
function
getActiveRecordFields
()
17
{
18
$def = $this->
getADT
()->getCopyOfDefinition();
19
20
$field =
new
arField
();
21
$field->setHasField(
true
);
22
$field->setNotNull(!$def->isNullAllowed());
23
$field->setFieldType(
arField::FIELD_TYPE_TEXT
);
24
$field->setName($this->
getElementId
());
25
26
$max = $def->getMaxLength();
27
if
($max !== null)
28
{
29
$field->setLength($max);
30
}
31
32
return
array
($field);
33
}
34
35
public
function
getFieldValue
($a_field_name)
36
{
37
return
$this->
getADT
()->getText();
38
}
39
40
public
function
setFieldValue
($a_field_name, $a_field_value)
41
{
42
return
$this->
getADT
()->setText($a_field_value);
43
}
44
}
arField
Class arField.
Definition:
class.arField.php:10
ilADTTextActiveRecordBridge
Definition:
class.ilADTTextActiveRecordBridge.php:5
arField\FIELD_TYPE_TEXT
const FIELD_TYPE_TEXT
Definition:
class.arField.php:12
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTTextActiveRecordBridge\getFieldValue
getFieldValue($a_field_name)
Definition:
class.ilADTTextActiveRecordBridge.php:35
ilADTActiveRecordBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTActiveRecordBridge.php:107
ilADTTextActiveRecordBridge\setFieldValue
setFieldValue($a_field_name, $a_field_value)
Definition:
class.ilADTTextActiveRecordBridge.php:40
array
Create styles array
The data for the language used.
Definition:
40duplicateStyle.php:19
ilADTActiveRecordBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTActiveRecordBridge.php:67
ilADTActiveRecordBridge
ADT DB bridge base class.
Definition:
class.ilADTActiveRecordBridge.php:13
ilADTTextActiveRecordBridge\getActiveRecordFields
getActiveRecordFields()
Definition:
class.ilADTTextActiveRecordBridge.php:16
php
ilADTText
Definition:
class.ilADTText.php:3
ilADTTextActiveRecordBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTTextActiveRecordBridge.php:7
Services
ADT
classes
Types
Text
class.ilADTTextActiveRecordBridge.php
Generated on Fri Jan 17 2025 19:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)