ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ 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
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
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
q
r
s
t
u
v
w
x
z
+
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
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilADTMultiTextFormBridge.php
Go to the documentation of this file.
1
<?php
2
3
require_once
"Services/ADT/classes/Bridges/class.ilADTFormBridge.php"
;
4
5
class
ilADTMultiTextFormBridge
extends
ilADTFormBridge
6
{
7
protected
function
isValidADT
(
ilADT
$a_adt)
8
{
9
return
($a_adt instanceof
ilADTMultiText
);
10
}
11
12
public
function
addToForm
()
13
{
14
$text =
new
ilTextInputGUI
($this->
getTitle
(), $this->
getElementId
());
15
$text->setMulti(
true
);
16
17
$this->
addBasicFieldProperties
($text, $this->
getADT
()->getCopyOfDefinition());
18
19
$text->setValue($this->
getADT
()->getTextElements());
20
21
$this->
addToParentElement
($text);
22
}
23
24
public
function
importFromPost
()
25
{
26
// ilPropertyFormGUI::checkInput() is pre-requisite
27
$this->
getADT
()->setTextElements($this->
getForm
()->getInput($this->
getElementId
()));
28
29
$field = $this->
getForm
()->getItemByPostvar($this->
getElementId
());
30
$field->setValue($this->
getADT
()->getTextElements());
31
}
32
}
ilADTFormBridge\addToParentElement
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.
Definition:
class.ilADTFormBridge.php:281
ilADTMultiTextFormBridge
Definition:
class.ilADTMultiTextFormBridge.php:5
ilADTMultiTextFormBridge\importFromPost
importFromPost()
Definition:
class.ilADTMultiTextFormBridge.php:24
ilADTFormBridge\getForm
getForm()
Get form.
Definition:
class.ilADTFormBridge.php:88
ilADTFormBridge
ADT form bridge base class.
Definition:
class.ilADTFormBridge.php:11
ilADT
ADT base class.
Definition:
class.ilADT.php:11
ilADTFormBridge\addBasicFieldProperties
addBasicFieldProperties(ilFormPropertyGUI $a_field, ilADTDefinition $a_def)
Helper method to handle generic properties like setRequired(), setInfo()
Definition:
class.ilADTFormBridge.php:227
ilADTMultiText
Definition:
class.ilADTMultiText.php:3
ilADTMultiTextFormBridge\isValidADT
isValidADT(ilADT $a_adt)
Definition:
class.ilADTMultiTextFormBridge.php:7
ilADTFormBridge\getTitle
getTitle()
Get title.
Definition:
class.ilADTFormBridge.php:128
ilADTFormBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTFormBridge.php:68
ilADTFormBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTFormBridge.php:108
ilTextInputGUI
ilADTMultiTextFormBridge\addToForm
addToForm()
Definition:
class.ilADTMultiTextFormBridge.php:12
Services
ADT
classes
Types
MultiText
class.ilADTMultiTextFormBridge.php
Generated on Wed Apr 2 2025 20:01:07 for ILIAS by
1.8.13 (using
Doxyfile
)