24include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
   47        public function __construct($a_parent_class,$a_parent_cmd,$a_type)
 
   51                parent::__construct($a_parent_class,$a_parent_cmd);
 
   52                $this->type = $a_type;
 
   57                if(!$objDefinition->isPlugin($this->type))
 
   59                        $title = $this->lng->txt(
'obj_'.$this->type.
'_duplicate');
 
   63                        include_once 
"Services/Component/classes/class.ilPlugin.php";
 
   66                        $title = $plugin->txt(
'obj_'.$this->type.
'_duplicate');
 
   70                $ilUser->getPref(
'search_max_hits');
 
   72                $this->
addColumn($this->lng->txt(
'search_title_description'),
'title',
'99%');
 
   75                $this->
setFormAction($ilCtrl->getFormAction($this->getParentObject()));
 
   76                $this->
setRowTemplate(
"tpl.obj_copy_search_result_row.html", 
"Services/Object");
 
   81                if($objDefinition->isContainer($this->type))
 
  100                $this->selected_reference = $a_selected_reference;
 
  119                foreach($a_res as $obj_id => $references)
 
  123                        $r[
'obj_id']    = $obj_id;
 
  124                        $r[
'refs']              = $references;
 
  129                $this->
setData($rows ? $rows : array());
 
  139                $this->tpl->setVariable(
'VAL_TITLE',$set[
'title']);
 
  140                if(strlen($set[
'desc']))
 
  142                        $this->tpl->setVariable(
'VAL_DESC',$set[
'desc']);
 
  144                $this->tpl->setVariable(
'TXT_PATHES',$this->lng->txt(
'pathes'));
 
  146                foreach((array) $set[
'refs'] as $reference)
 
  148                        include_once 
'./Services/Tree/classes/class.ilPathGUI.php';
 
  151                        $this->tpl->setCurrentBlock(
'path');
 
  152                        $this->tpl->setVariable(
'VAL_ID',$reference);
 
  153                        $this->tpl->setVariable(
'VAL_PATH',
$path->getPath(ROOT_FOLDER_ID, $reference));
 
  157                                $this->tpl->setVariable(
'VAL_CHECKED',
'checked="checked"');
 
  160                        $this->tpl->parseCurrentBlock();
 
Presentation of search results.
__construct($a_parent_class, $a_parent_cmd, $a_type)
getSelectedReference()
get selected reference
setSelectedReference($a_selected_reference)
Set selected reference.
fillRow($set)
fill table rows
parseSearchResults($a_res)
Parse search results.
static _lookupTitle($a_id)
lookup object title
static _lookupDescription($a_id)
lookup object description
Creates a path for a start and endnode.
static getPluginObject($a_ctype, $a_cname, $a_slot_id, $a_pname)
Get plugin object.
lookupNameForId($a_ctype, $a_cname, $a_slot_id, $a_plugin_id)
Lookup name for id.
addColumn($a_text, $a_sort_field="", $a_width="", $a_is_checkbox_action_column=false, $a_class="", $a_tooltip="")
Add a column to the header.
setEnableHeader($a_enableheader)
Set Enable Header.
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setEnableNumInfo($a_val)
Set enable num info.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.