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) {
79 $set[
'id'] = $nonAvailablePool->getId();
80 $set[
'title'] = $nonAvailablePool->getTitle();
81 $set[
'path'] = $nonAvailablePool->getPath();
82 $set[
'status'] = $nonAvailablePool->getUnavailabilityStatus();
92 $this->ctrl->setParameter($this->parent_obj,
'derive_pool_id', $poolId);
94 $link = $this->ctrl->getLinkTarget(
106 $this->tpl->setCurrentBlock(
'single_action');
107 $this->tpl->setVariable(
'ACTION_HREF', $link);
108 $this->tpl->setVariable(
'ACTION_TEXT', $this->lng->txt(
'tst_derive_new_pool'));
109 $this->tpl->parseCurrentBlock();
112 $this->tpl->setVariable(
'TITLE', $set[
'title']);
113 $this->tpl->setVariable(
'PATH', $set[
'path']);
114 $this->tpl->setVariable(
'STATUS', $this->
getStatusText($set[
'status']));
119 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.
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.
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.
__construct(ilCtrl $ctrl, ilLanguage $lng, $parentGUI, $parentCMD)
while(count($oldTaskList) > 0) foreach(array_keys($newTaskList) as $task) init()
setLimit($a_limit=0, $a_default_limit=0)