4 require_once
'Services/Table/classes/class.ilTable2GUI.php';
28 parent::__construct($parentGUI, $parentCMD);
36 $this->
setId(self::IDENTIFIER);
45 $this->
setTitle($this->lng->txt(
'tst_non_avail_pools_table'));
47 $this->
setRowTemplate(
'tpl.il_tst_non_avail_pools_row.html',
'Modules/Test');
55 $this->
setFormAction($this->ctrl->getFormAction($this->parent_obj));
62 $this->
addColumn($this->lng->txt(
'title'),
'',
'30%');
63 $this->
addColumn($this->lng->txt(
'path'),
'',
'30%');
64 $this->
addColumn($this->lng->txt(
'status'),
'',
'40%');
65 $this->
addColumn($this->lng->txt(
'actions'),
'',
'');
74 foreach($pools as $nonAvailablePool)
80 $set[
'id'] = $nonAvailablePool->getId();
81 $set[
'title'] = $nonAvailablePool->getTitle();
82 $set[
'path'] = $nonAvailablePool->getPath();
83 $set[
'status'] = $nonAvailablePool->getUnavailabilityStatus();
93 $this->ctrl->setParameter($this->parent_obj,
'derive_pool_id', $poolId);
95 $link = $this->ctrl->getLinkTarget(
107 $this->tpl->setCurrentBlock(
'single_action');
108 $this->tpl->setVariable(
'ACTION_HREF', $link);
109 $this->tpl->setVariable(
'ACTION_TEXT', $this->lng->txt(
'tst_derive_new_pool'));
110 $this->tpl->parseCurrentBlock();
113 $this->tpl->setVariable(
'TITLE', $set[
'title']);
114 $this->tpl->setVariable(
'PATH', $set[
'path']);
115 $this->tpl->setVariable(
'STATUS', $this->
getStatusText($set[
'status']));
120 return $this->lng->txt(
'tst_non_avail_pool_msg_status_'.$status);
This class provides processing control methods.
getDerivePoolLink($poolId)
setExternalSegmentation($a_val)
Set external segmentation.
const UNAVAILABILITY_STATUS_LOST
const CMD_SELECT_DERIVATION_TARGET
setTitle($a_title, $a_icon=0, $a_icon_alt=0)
Set title and title icon.
enable($a_module_name)
enables particular modules of table
setRowTemplate($a_template, $a_template_dir="")
Set row template.
Create styles array
The data for the language used.
setFormAction($a_form_action, $a_multipart=false)
Set Form action parameter.
disable($a_module_name)
diesables particular modules of table
setFormName($a_formname="")
Set Form name.
__construct(ilCtrl $ctrl, ilLanguage $lng, $parentGUI, $parentCMD)
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.
setLimit($a_limit=0, $a_default_limit=0)