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');
34 parent::__construct($record, $field);
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');
__construct(ilDataCollectionRecord $record, ilDataCollectionField $field)
const PROPERTYID_ILIAS_REFERENCE_LINK
static _getStaticLink($a_ref_id, $a_type='', $a_fallback_goto=true, $append="")
Get static link.
static _lookupObjectId($a_ref_id)
static _lookupTitle($a_id)
lookup object title
getProperties()
Get all properties of a field.
const DB_FETCHMODE_OBJECT
Class ilDataCollectionField.
Class ilDataCollectionRecord.
getLinkHTML($title, $show_action_menu=false)
if(!is_array($argv)) $options
static _lookupObjId($a_id)
getSingleHTML(array $options=array())
getHTML(array $options=array())
const PROPERTYID_DISPLAY_COPY_LINK_ACTION_MENU
Class ilDataCollectionField.
User interface class for advanced drop-down selection lists.
Class ilDataCollectionField.
static getTableCache($table_id=0)