24 include_once
'./Services/Table/classes/class.ilTable2GUI.php';
25 require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
67 $this->
user = $DIC->user();
68 $this->obj_definition = $DIC[
"objDefinition"];
69 $lng = $DIC->language();
72 $objDefinition = $DIC[
"objDefinition"];
75 parent::__construct($a_parent_class, $a_parent_cmd);
81 if (!$objDefinition->isPlugin($this->type)) {
82 $title = $this->lng->txt(
'obj_' . $this->type .
'_duplicate');
84 include_once
"Services/Component/classes/class.ilPlugin.php";
86 $title = $plugin->txt(
'obj_' . $this->type .
'_duplicate');
90 $ilUser->getPref(
'search_max_hits');
92 $this->
addColumn($this->lng->txt(
'search_title_description'),
'title',
'99%');
95 $this->
setRowTemplate(
"tpl.obj_copy_search_result_row.html",
"Services/Object");
101 if ($objDefinition->isContainer($this->type)) {
117 $this->selected_reference = $a_selected_reference;
136 foreach ($a_res as $obj_id => $references) {
139 $r[
'obj_id'] = $obj_id;
140 $r[
'refs'] = $references;
155 $this->tpl->setVariable(
'VAL_TITLE', $set[
'title']);
156 if (strlen($set[
'desc'])) {
157 $this->tpl->setVariable(
'VAL_DESC', $set[
'desc']);
159 $this->tpl->setVariable(
'TXT_PATHES', $this->lng->txt(
'pathes'));
161 foreach ((
array) $set[
'refs'] as $reference) {
162 include_once
'./Services/Tree/classes/class.ilPathGUI.php';
165 $this->tpl->setCurrentBlock(
'path');
166 $this->tpl->setVariable(
'VAL_ID', $reference);
167 $this->tpl->setVariable(
'VAL_PATH',
$path->getPath(ROOT_FOLDER_ID, $reference));
170 $this->tpl->setVariable(
'VAL_CHECKED',
'checked="checked"');
173 $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)
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.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
setEnableHeader($a_enableheader)
Set Enable Header.
setEnableTitle($a_enabletitle)
Set Enable Title.