24 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
53 parent::__construct($a_parent_class,$a_parent_cmd);
59 if(!$objDefinition->isPlugin($this->type))
61 $title = $this->lng->txt(
'obj_'.$this->type.
'_duplicate');
65 include_once
"Services/Component/classes/class.ilPlugin.php";
67 $title = $plugin->txt(
'obj_'.$this->type.
'_duplicate');
71 $ilUser->getPref(
'search_max_hits');
73 $this->
addColumn($this->lng->txt(
'search_title_description'),
'title',
'99%');
76 $this->
setRowTemplate(
"tpl.obj_copy_search_result_row.html",
"Services/Object");
82 if($objDefinition->isContainer($this->type))
101 $this->selected_reference = $a_selected_reference;
120 foreach($a_res as $obj_id => $references)
124 $r[
'obj_id'] = $obj_id;
125 $r[
'refs'] = $references;
140 $this->tpl->setVariable(
'VAL_TITLE',$set[
'title']);
141 if(strlen($set[
'desc']))
143 $this->tpl->setVariable(
'VAL_DESC',$set[
'desc']);
145 $this->tpl->setVariable(
'TXT_PATHES',$this->lng->txt(
'pathes'));
147 foreach((
array) $set[
'refs'] as $reference)
149 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
152 $this->tpl->setCurrentBlock(
'path');
153 $this->tpl->setVariable(
'VAL_ID',$reference);
154 $this->tpl->setVariable(
'VAL_PATH',
$path->getPath(ROOT_FOLDER_ID, $reference));
158 $this->tpl->setVariable(
'VAL_CHECKED',
'checked="checked"');
161 $this->tpl->parseCurrentBlock();
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
Creates a path for a start and endnode.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
Presentation of search results.
setEnableNumInfo($a_val)
Set enable num info.
getSelectedReference()
get selected reference
parseSearchResults($a_res)
Parse search results.
static _lookupTitle($a_id)
lookup object title
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
static _lookupDescription($a_id)
lookup object description
fillRow($set)
fill table rows
static getRepoPluginObjectByType($type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin...
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setSelectedReference($a_selected_reference)
Set selected reference.
__construct($a_parent_class, $a_parent_cmd, $a_type)
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="", $a_tooltip_with_html=false)
Add a column to the header.