24include_once 
'./Services/Table/classes/class.ilTable2GUI.php';
 
   25require_once(
'./Services/Repository/classes/class.ilObjectPlugin.php');
 
   63    public function __construct($a_parent_class, $a_parent_cmd, $a_type)
 
   67        $this->
user = $DIC->user();
 
   68        $this->obj_definition = 
$DIC[
"objDefinition"];
 
   70        $ilCtrl = 
$DIC->ctrl();
 
   72        $objDefinition = 
$DIC[
"objDefinition"];
 
   74        $this->
setId(
'obj_copy_' . $a_type);
 
   76        $this->type = $a_type;
 
   79        $this->ctrl = $ilCtrl;
 
   81        if (!$objDefinition->isPlugin($this->type)) {
 
   82            $title = $this->lng->txt(
'obj_' . $this->type . 
'_duplicate');
 
   84            include_once 
"Services/Component/classes/class.ilPlugin.php";
 
   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();
 
An exception for terminatinating execution or to throw for unit testing.
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 getPluginObjectByType($type)
Return either a repoObject plugin or a orgunit extension plugin or null if the type is not a plugin.
static _lookupTitle($a_id)
lookup object title
static _lookupDescription($a_id)
lookup object description
Creates a path for a start and endnode.
setEnableHeader($a_enableheader)
Set Enable Header.
setShowRowsSelector($a_value)
Toggle rows-per-page selector.
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.
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.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
__construct(Container $dic, ilPlugin $plugin)
@inheritDoc