5 require_once
'class.ilDataCollectionRecordField.php';
6 require_once(
"./Services/Rating/classes/class.ilRatingGUI.php");
7 require_once(
"./Services/Link/classes/class.ilLink.php");
8 require_once(
'./Services/UIComponent/AdvancedSelectionList/classes/class.ilAdvancedSelectionListGUI.php');
36 $this->dcl_obj_id = $dclTable->getCollectionObject()->getId();
83 public function getLinkHTML($title, $show_action_menu=
false) {
86 if ($show_action_menu) {
88 $list->setId(
'adv_list_copy_link_' . $this->field->getId() . $this->record->getId());
89 $list->setListTitle($title);
91 $list->addItem($lng->txt(
'view'),
'view', $link);
93 $list->addItem($lng->txt(
'copy'),
'copy', $this->
getActionLink(
'copy'));
94 $list->addItem($lng->txt(
'link'),
'link', $this->
getActionLink(
'link'));
95 return $list->getHTML();
97 return "<a href=\"$link\">$title</a>";
109 $usr_id = $ilUser->getId();
112 $query =
" SELECT status_changed, status
114 WHERE usr_id = ".$usr_id.
" AND obj_id = ".$obj_id.
"
130 $ilCtrl->setParameterByClass(
'ilobjectcopygui',
'item_ref_id', $this->
getValue());
131 $ilCtrl->setParameterByClass(
'ilobjrootfoldergui',
'item_ref_id', $this->
getValue());
132 $ilCtrl->setParameterByClass(
'ilobjectcopygui',
'source_id', $this->
getValue());
133 return $ilCtrl->getLinkTargetByClass(
'ilobjectcopygui',
'initTargetSelection');
135 return $ilCtrl->getLinkTargetByClass(array(
'ilrepositorygui',
'ilobjrootfoldergui'),
'link');