ILIAS
release_4-3 Revision
|
This class represents a external and/or internal link in a property form. More...
Public Member Functions | |
__construct ($a_title="", $a_postvar="") | |
Constructor. | |
setAllowedLinkTypes ($a_val) | |
Set allowed link types (BOTH, INT, EXT) | |
getAllowedLinkTypes () | |
Get allowed link types (BOTH, INT, EXT) | |
setInternalLinkDefault ($a_type, $a_obj=0) | |
Set internal link default. | |
setInternalLinkFilterTypes (array $a_val) | |
Set internal link filter types. | |
executeCommand () | |
Execute current command. | |
setValue ($a_value) | |
Set Value. | |
getValue () | |
Get Value. | |
setValueByArray ($a_values) | |
Set value by array. | |
checkInput () | |
Check input, strip slashes etc. | |
render () | |
Render item. | |
insert (&$a_tpl) | |
Insert property html. | |
Public Member Functions inherited from ilFormPropertyGUI | |
getType () | |
Get Type. | |
setTitle ($a_title) | |
Set Title. | |
getTitle () | |
Get Title. | |
setPostVar ($a_postvar) | |
Set Post Variable. | |
getPostVar () | |
Get Post Variable. | |
getFieldId () | |
Get Post Variable. | |
setInfo ($a_info) | |
Set Information Text. | |
getInfo () | |
Get Information Text. | |
setAlert ($a_alert) | |
Set Alert Text. | |
getAlert () | |
Get Alert Text. | |
setRequired ($a_required) | |
Set Required. | |
getRequired () | |
Get Required. | |
setDisabled ($a_disabled) | |
Set Disabled. | |
getDisabled () | |
Get Disabled. | |
setParentForm ($a_parentform) | |
Set Parent Form. | |
getParentForm () | |
Get Parent Form. | |
setParent ($a_val) | |
Set Parent GUI object. | |
getParent () | |
Get Parent GUI object. | |
getSubForm () | |
Get sub form html. | |
hideSubForm () | |
Sub form hidden on init? | |
setHiddenTitle ($a_val) | |
Set hidden title (for screenreaders) | |
getHiddenTitle () | |
Get hidden title. | |
getItemByPostVar ($a_post_var) | |
Get item by post var. | |
serializeData () | |
serialize data | |
unserializeData ($a_data) | |
unserialize data | |
writeToSession () | |
Write to session. | |
clearFromSession () | |
Clear session value. | |
readFromSession () | |
Read from session. | |
getHiddenTag ($a_post_var, $a_value) | |
Get hidden tag (used for disabled properties) | |
setMulti ($a_multi) | |
Set Multi. | |
getMulti () | |
Get Multi. | |
setMultiValues (array $a_values) | |
Set multi values. | |
getMultiValues () | |
Get multi values. |
Static Public Member Functions | |
static | isInternalLink ($a_value) |
static | getTranslatedValue ($a_value) |
Data Fields | |
const | BOTH = "both" |
const | INT = "int" |
const | EXT = "ext" |
Protected Attributes | |
$allowed_link_types = self::BOTH | |
$int_link_default_type = "RepositoryItem" | |
$int_link_default_obj = 0 | |
$int_link_filter_types = array("RepositoryItem") | |
Protected Attributes inherited from ilFormPropertyGUI | |
$type | |
$title | |
$postvar | |
$info | |
$alert | |
$required = false | |
$parentgui | |
$parentform | |
$hidden_title = "" | |
$multi | |
$multi_values |
Additional Inherited Members | |
Protected Member Functions inherited from ilFormPropertyGUI | |
setType ($a_type) | |
Set Type. | |
getMultiIconsHTML ($a_sortable=false) | |
Get HTML for multiple value icons. |
This class represents a external and/or internal link in a property form.
ilLinkInputGUI: ilFormPropertyDispatchGUI ilLinkInputGUI: ilInternalLinkGUI
Definition at line 15 of file class.ilLinkInputGUI.php.
ilLinkInputGUI::__construct | ( | $a_title = "" , |
|
$a_postvar = "" |
|||
) |
Constructor.
string | $a_title | Title |
string | $a_postvar | Post Variable |
Reimplemented from ilFormPropertyGUI.
Definition at line 31 of file class.ilLinkInputGUI.php.
References ilFormPropertyGUI\setType().
ilLinkInputGUI::checkInput | ( | ) |
Check input, strip slashes etc.
set alert, if input is not ok.
Reimplemented from ilFormPropertyGUI.
Definition at line 171 of file class.ilLinkInputGUI.php.
References $_POST, $lng, ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), and ilFormPropertyGUI\setAlert().
ilLinkInputGUI::executeCommand | ( | ) |
Execute current command.
Reimplemented from ilFormPropertyGUI.
Definition at line 82 of file class.ilLinkInputGUI.php.
References $cmd, $ilCtrl, $lng, $ret, and $t.
ilLinkInputGUI::getAllowedLinkTypes | ( | ) |
Get allowed link types (BOTH, INT, EXT)
Definition at line 52 of file class.ilLinkInputGUI.php.
References $allowed_link_types.
Referenced by render().
|
static |
Definition at line 400 of file class.ilLinkInputGUI.php.
References $lng, ilFormPropertyGUI\$type, ilGlossaryTerm\_lookGlossaryTerm(), ilObject\_lookupObjId(), ilLMObject\_lookupTitle(), and ilObject\_lookupTitle().
Referenced by ilWebResourceEditableLinkTableGUI\fillRow(), and render().
ilLinkInputGUI::getValue | ( | ) |
Get Value.
Definition at line 129 of file class.ilLinkInputGUI.php.
Referenced by render().
ilLinkInputGUI::insert | ( | & | $a_tpl | ) |
Insert property html.
Definition at line 439 of file class.ilLinkInputGUI.php.
References render().
|
static |
Definition at line 379 of file class.ilLinkInputGUI.php.
Referenced by ilObjLinkResourceGUI\callDirectLink(), and ilObjLinkResourceGUI\callLink().
ilLinkInputGUI::render | ( | ) |
Render item.
Definition at line 224 of file class.ilLinkInputGUI.php.
References $ilCtrl, $lng, ilFormPropertyGUI\$title, ilRadioOption\addSubItem(), getAllowedLinkTypes(), ilInternalLinkGUI\getInitHTML(), ilFormPropertyGUI\getParent(), ilFormPropertyGUI\getPostVar(), getTranslatedValue(), and getValue().
Referenced by insert().
ilLinkInputGUI::setAllowedLinkTypes | ( | $a_val | ) |
Set allowed link types (BOTH, INT, EXT)
string | $a_val | self::BOTH|self::INT|self::EXT |
Definition at line 42 of file class.ilLinkInputGUI.php.
Referenced by ilPageObjectGUI\initOpenedContentForm().
ilLinkInputGUI::setInternalLinkDefault | ( | $a_type, | |
$a_obj = 0 |
|||
) |
Set internal link default.
string | $a_type | link type |
int | $a_obj | object id |
Definition at line 63 of file class.ilLinkInputGUI.php.
ilLinkInputGUI::setInternalLinkFilterTypes | ( | array | $a_val | ) |
Set internal link filter types.
array | $a_val | filter types |
Definition at line 74 of file class.ilLinkInputGUI.php.
Referenced by ilObjLinkResourceGUI\initFormLink().
ilLinkInputGUI::setValue | ( | $a_value | ) |
Set Value.
string | $a_value | Value |
Definition at line 119 of file class.ilLinkInputGUI.php.
Referenced by setValueByArray().
ilLinkInputGUI::setValueByArray | ( | $a_values | ) |
Set value by array.
array | $a_values | value array |
Definition at line 139 of file class.ilLinkInputGUI.php.
References ilFormPropertyGUI\getPostVar(), and setValue().
|
protected |
Definition at line 20 of file class.ilLinkInputGUI.php.
Referenced by getAllowedLinkTypes().
|
protected |
Definition at line 22 of file class.ilLinkInputGUI.php.
|
protected |
Definition at line 21 of file class.ilLinkInputGUI.php.
|
protected |
Definition at line 23 of file class.ilLinkInputGUI.php.
const ilLinkInputGUI::BOTH = "both" |
Definition at line 17 of file class.ilLinkInputGUI.php.
const ilLinkInputGUI::EXT = "ext" |
Definition at line 19 of file class.ilLinkInputGUI.php.
const ilLinkInputGUI::INT = "int" |
Definition at line 18 of file class.ilLinkInputGUI.php.
Referenced by ilPageObjectGUI\initOpenedContentForm().