ILIAS
release_7 Revision v7.30-3-g800a261c036
◀ 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
r
s
t
w
+
Functions
_
a
b
c
f
g
h
i
r
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.ilADTInternalLinkFormBridge.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2009 ILIAS open source, Extended GPL, see docs/LICENSE */
4
11
class
ilADTInternalLinkFormBridge
extends
ilADTFormBridge
12
{
13
19
protected
function
isValidADT
(
ilADT
$a_adt)
20
{
21
return
$a_adt instanceof
ilADTInternalLink
;
22
}
23
27
public
function
addToForm
()
28
{
29
$def = $this->
getADT
()->getCopyOfDefinition();
30
31
$subitems =
new
ilRepositorySelector2InputGUI
(
32
$this->
getTitle
(),
33
$this->
getElementId
(),
34
false
35
);
36
$subitems->setValue($this->
getADT
()->getTargetRefId());
37
$exp = $subitems->getExplorerGUI();
38
$exp->setSkipRootNode(
false
);
39
$exp->setRootId(
ROOT_FOLDER_ID
);
40
$this->
addBasicFieldProperties
($subitems, $def);
41
$this->
addToParentElement
($subitems);
42
}
43
47
public
function
importFromPost
()
48
{
49
$this->
getADT
()->setTargetRefId($this->
getForm
()->getInput($this->
getElementId
()));
50
}
51
}
ilADTFormBridge\addToParentElement
addToParentElement(ilFormPropertyGUI $a_field)
Add form field to parent element.
Definition:
class.ilADTFormBridge.php:281
ROOT_FOLDER_ID
const ROOT_FOLDER_ID
Definition:
constants.php:30
ilADTFormBridge\getForm
getForm()
Get form.
Definition:
class.ilADTFormBridge.php:88
ilADTFormBridge
ADT form bridge base class.
Definition:
class.ilADTFormBridge.php:11
ilADTInternalLinkFormBridge
external link form bridge
Definition:
class.ilADTInternalLinkFormBridge.php:11
ilADTInternalLinkFormBridge\addToForm
addToForm()
Add element to form.
Definition:
class.ilADTInternalLinkFormBridge.php:27
ilADTInternalLinkFormBridge\importFromPost
importFromPost()
Import from post.
Definition:
class.ilADTInternalLinkFormBridge.php:47
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
ilADTFormBridge\getTitle
getTitle()
Get title.
Definition:
class.ilADTFormBridge.php:128
ilRepositorySelector2InputGUI
Select repository nodes.
Definition:
class.ilRepositorySelector2InputGUI.php:16
ilADTFormBridge\getADT
getADT()
Get ADT.
Definition:
class.ilADTFormBridge.php:68
ilADTFormBridge\getElementId
getElementId()
Get element id.
Definition:
class.ilADTFormBridge.php:108
ilADTInternalLinkFormBridge\isValidADT
isValidADT(ilADT $a_adt)
Is valid type.
Definition:
class.ilADTInternalLinkFormBridge.php:19
ilADTInternalLink
Definition:
class.ilADTInternalLink.php:3
Services
ADT
classes
Types
InternalLink
class.ilADTInternalLinkFormBridge.php
Generated on Sat Apr 5 2025 21:01:13 for ILIAS by
1.8.13 (using
Doxyfile
)