ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ 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
$field->setLength($max);
29
}
30
31
return
array($field);
32
}
33
34
public
function
getFieldValue
($a_field_name)
35
{
36
return
$this->
getADT
()->getText();
37
}
38
39
public
function
setFieldValue
($a_field_name, $a_field_value)
40
{
41
return
$this->
getADT
()->setText($a_field_value);
42
}
43
}
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:34
ilADTActiveRecordBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTActiveRecordBridge.php:106
ilADTTextActiveRecordBridge\setFieldValue
setFieldValue($a_field_name, $a_field_value)
Definition:
class.ilADTTextActiveRecordBridge.php:39
ilADTActiveRecordBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTActiveRecordBridge.php:66
ilADTActiveRecordBridge
ADT DB bridge base class.
Definition:
class.ilADTActiveRecordBridge.php:13
ilADTTextActiveRecordBridge\getActiveRecordFields
getActiveRecordFields()
Definition:
class.ilADTTextActiveRecordBridge.php:16
$def
$def
Definition:
croninfo.php:21
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 Thu Jan 16 2025 19:02:16 for ILIAS by
1.8.13 (using
Doxyfile
)