ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
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
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
$def
$def
Definition:
croninfo.php:21
ilADTInternalLink
Definition:
class.ilADTInternalLink.php:3
Services
ADT
classes
Types
InternalLink
class.ilADTInternalLinkFormBridge.php
Generated on Sat Jan 18 2025 19:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)