19 declare(strict_types=1);
41 $this->
setId(self::IDENTIFIER);
50 $this->
setTitle($this->
lng->txt(
'tst_non_avail_pools_table'));
52 $this->
setRowTemplate(
'tpl.il_tst_non_avail_pools_row.html',
'Modules/Test');
79 foreach ($pools as $nonAvailablePool) {
84 $set[
'id'] = $nonAvailablePool->getId();
85 $set[
'title'] = $nonAvailablePool->getTitle();
86 $set[
'path'] = $nonAvailablePool->getPath();
87 $set[
'status'] = $nonAvailablePool->getUnavailabilityStatus();
97 $this->
ctrl->setParameter($this->parent_obj,
'derive_pool_id', $poolId);
99 $link = $this->
ctrl->getLinkTarget(
111 $this->tpl->setCurrentBlock(
'single_action');
112 $this->tpl->setVariable(
'ACTION_HREF', $link);
113 $this->tpl->setVariable(
'ACTION_TEXT', $this->
lng->txt(
'tst_derive_new_pool'));
114 $this->tpl->parseCurrentBlock();
117 $this->tpl->setVariable(
'TITLE', $a_set[
'title']);
118 $this->tpl->setVariable(
'PATH', $a_set[
'path']);
119 $this->tpl->setVariable(
'STATUS', $this->
getStatusText($a_set[
'status']));
124 return $this->
lng->txt(
'tst_non_avail_pool_msg_status_' . $status);
enable(string $a_module_name)
setFormAction(string $a_form_action, bool $a_multipart=false)
getDerivePoolLink($poolId)
const UNAVAILABILITY_STATUS_LOST
const CMD_SELECT_DERIVATION_TARGET
setFormName(string $a_name="")
setRowTemplate(string $a_template, string $a_template_dir="")
Set row template.
setTitle(string $a_title, string $a_icon="", string $a_icon_alt="")
setLimit(int $a_limit=0, int $a_default_limit=0)
addColumn(string $a_text, string $a_sort_field="", string $a_width="", bool $a_is_checkbox_action_column=false, string $a_class="", string $a_tooltip="", bool $a_tooltip_with_html=false)
disable(string $a_module_name)
__construct(ilCtrl $ctrl, ilLanguage $lng, $parentGUI, $parentCMD)
setExternalSegmentation(bool $a_val)
setPrefix(string $a_prefix)