Thomas Gelf d95512ce08 CustomvarVariants: one more table, showing...
...distinct values for a specific var
2017-07-26 11:53:42 +02:00

18 lines
564 B
PHP

<?php
namespace Icinga\Module\Director\Controllers;
use Icinga\Module\Director\Web\Controller\ActionController;
use Icinga\Module\Director\Web\Table\CustomvarVariantsTable;
class CustomvarController extends ActionController
{
public function variantsAction()
{
$varName = $this->params->getRequired('name');
$this->addSingleTab($this->translate('Custom Variable'))
->addTitle($this->translate('Custom Variable variants: %s'), $varName);
CustomvarVariantsTable::create($this->db(), $varName)->renderTo($this);
}
}