24 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
47 public function __construct($a_parent_class,$a_parent_cmd,$a_type)
52 $this->type = $a_type;
57 $this->
setTitle($this->lng->txt(
'obj_'.$this->type.
'_duplicate'));
58 $ilUser->getPref(
'search_max_hits');
60 $this->
addColumn($this->lng->txt(
'search_title_description'),
'title',
'99%');
63 $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
64 $this->
setRowTemplate(
"tpl.obj_copy_search_result_row.html",
"Services/Object");
69 if($objDefinition->isContainer($this->type))
75 $this->
addCommandButton(
'saveSource', $this->lng->txt(
'obj_'.$this->type.
'_duplicate'));
88 $this->selected_reference = $a_selected_reference;
107 foreach($a_res as $obj_id => $references)
111 $r[
'obj_id'] = $obj_id;
112 $r[
'refs'] = $references;
117 $this->
setData($rows ? $rows : array());
127 $this->tpl->setVariable(
'VAL_TITLE',$set[
'title']);
128 if(strlen($set[
'desc']))
130 $this->tpl->setVariable(
'VAL_DESC',$set[
'desc']);
132 $this->tpl->setVariable(
'TXT_PATHES',$this->lng->txt(
'pathes'));
134 foreach((array) $set[
'refs'] as $reference)
136 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
139 $this->tpl->setCurrentBlock(
'path');
140 $this->tpl->setVariable(
'VAL_ID',$reference);
141 $this->tpl->setVariable(
'VAL_PATH',$path->getPath(ROOT_FOLDER_ID, $reference));
145 $this->tpl->setVariable(
'VAL_CHECKED',
'checked="checked"');
148 $this->tpl->parseCurrentBlock();