61 public function getLinkHTML($title, $show_action_menu =
false)
67 if ($show_action_menu) {
72 $list->setId(
'adv_list_copy_link_' . $field->getId() . $record->getId());
73 $list->setListTitle($title);
75 $list->addItem(
$lng->txt(
'view'),
'view', $link);
77 $list->addItem(
$lng->txt(
'copy'),
'copy', $this->getActionLink(
'copy'));
78 $list->addItem(
$lng->txt(
'link'),
'link', $this->getActionLink(
'link'));
80 return $list->getHTML();
82 return "<a href=\"$link\">$title</a>";
100 $ilCtrl->setParameterByClass(
'ilobjrootfoldergui',
'item_ref_id', $this->
getRecordField()->getValue());
103 return $ilCtrl->getLinkTargetByClass(
'ilobjectcopygui',
'initTargetSelection');
105 return $ilCtrl->getLinkTargetByClass(array(
'ilrepositorygui',
'ilobjrootfoldergui'),
'link');
An exception for terminatinating execution or to throw for unit testing.
User interface class for advanced drop-down selection lists.
const PROP_DISPLAY_COPY_LINK_ACTION_MENU
const PROP_ILIAS_REFERENCE_LINK
Class ilDclBaseRecordRepresentation.
getRecordField()
Get Record Field.
getField()
Getter shortcut for field.
Class ilDclIliasRecordRepresentation.
getSingleHTML(array $options=null, $link=true)
Returns data for single record view.
getLinkHTML($title, $show_action_menu=false)
static _getStaticLink( $a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _lookupObjId($a_id)
static _lookupTitle($a_id)
lookup object title