4include_once(
"./Services/Table/classes/class.ilTable2GUI.php");
 
   24                $this->ref_id = $a_ref_id;
 
   26                $this->
setId(
'recf_'. $a_ref_id);
 
   27                parent::__construct($a_parent_obj, $a_parent_cmd);
 
   32                $this->
addColumn($this->lng->txt(
"type"), 
"", 
"1");
 
   33                $this->
addColumn($this->lng->txt(
"title"), 
"title");
 
   34                $this->
addColumn($this->lng->txt(
"last_change"), 
"last_update", 
"25%");
 
   38                $this->
setRowTemplate(
"tpl.admin_sub_items_row.html", 
"Services/Repository");
 
   75                                $this->
addMultiCommand(
"removeFromSystem", $lng->txt(
"btn_remove_system"));
 
   86                global $rbacsystem, $objDefinition, $tree;
 
   89                $childs = $tree->getChilds($this->ref_id);
 
   90                foreach ($childs as $key => $val)
 
   93                        if (!$rbacsystem->checkAccess(
"visible",$val[
"ref_id"]))
 
   99                        if ($objDefinition->getDevMode($val[
"type"]))
 
  105                        if ($val[
"type"] == 
"adm")
 
  109                        if (!$this->parent_obj->isVisible($val[
"ref_id"], $val[
"type"]))
 
  129                if (!$objDefinition->hasCheckbox($a_set[
"type"]) ||
 
  130                        $a_set[
"obj_id"] == SYSTEM_ROLE_ID ||
 
  131                        $a_set[
"obj_id"] == SYSTEM_USER_ID ||
 
  132                        $a_set[
"obj_id"] == ANONYMOUS_ROLE_ID)
 
  134                        $this->tpl->touchBlock(
"no_checkbox");
 
  138                        $this->tpl->setCurrentBlock(
"checkbox");
 
  139                        $this->tpl->setVariable(
"ID", $a_set[
"ref_id"]);
 
  140                        $this->tpl->parseCurrentBlock();
 
  144                $class_name = $objDefinition->getClassName($a_set[
"type"]);
 
  145                $class = strtolower(
"ilObj".$class_name.
"GUI");
 
  146                $ilCtrl->setParameterByClass($class, 
"ref_id", $a_set[
"ref_id"]);
 
  147                $this->tpl->setVariable(
"HREF_TITLE", 
$ilCtrl->getLinkTargetByClass($class, 
"view"));
 
  148                $ilCtrl->setParameterByClass($class, 
"ref_id", 
$_GET[
"ref_id"]);
 
  152                if (is_array(
$_SESSION[
"clipboard"][
"ref_ids"]))
 
  154                        if (in_array($a_set[
"ref_id"], 
$_SESSION[
"clipboard"][
"ref_ids"]))
 
  159                                                $title = 
"<del>".$title.
"</del>";
 
  163                                                $title = 
"<font color=\"green\">+</font>  ".$title;
 
  167                                                $title = 
"<font color=\"black\"><</font> ".$title;
 
  172                $this->tpl->setVariable(
"VAL_TITLE", 
$title);
 
  175                $alt = ($objDefinition->isPlugin($a_set[
"type"]))
 
  177                        : 
$lng->txt(
"icon").
" ".
$lng->txt(
"obj_".$a_set[
"type"]);
 
TableGUI class for sub items listed in repository administration.
__construct($a_parent_obj, $a_parent_cmd, $a_ref_id)
Constructor.
fillRow($a_set)
Fill table row.
static formatDate(ilDateTime $date)
Format a date @access public.
@classDescription Date and time handling
static _getIcon($a_obj_id="", $a_size="big", $a_type="", $a_offline=false)
Get icon for repository item.
static _lookupType($a_id, $a_reference=false)
lookup object type
static lookupTxt($a_mod_prefix, $a_pl_id, $a_lang_var)
Lookup language text.
setEnableHeader($a_enableheader)
Set Enable Header.
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.
setData($a_data)
set table data @access public
setEnableTitle($a_enabletitle)
Set Enable Title.
setRowTemplate($a_template, $a_template_dir="")
Set row template.
addMultiCommand($a_cmd, $a_text)
Add Command button.
setDefaultOrderField($a_defaultorderfield)
Set Default order field.
setSelectAllCheckbox($a_select_all_checkbox)
Set the name of the checkbox that should be toggled with a select all button.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
setDefaultOrderDirection($a_defaultorderdirection)
Set Default order direction.
addCommandButton($a_cmd, $a_text, $a_onclick='', $a_id="", $a_class=null)
Add Command button.
static shortenText($a_str, $a_len, $a_dots=false, $a_next_blank=false, $a_keep_extension=false)
shorten a string to given length.
static img($a_src, $a_alt="", $a_width="", $a_height="", $a_border=0, $a_id="", $a_class="")
Build img tag.