IcingaObject: render assign_filter property

This commit is contained in:
Thomas Gelf 2016-10-21 18:15:41 +00:00
parent 0a6514928a
commit 6ed24f93da
1 changed files with 12 additions and 0 deletions

View File

@ -3,6 +3,7 @@
namespace Icinga\Module\Director\Objects; namespace Icinga\Module\Director\Objects;
use Icinga\Module\Director\CustomVariable\CustomVariables; use Icinga\Module\Director\CustomVariable\CustomVariables;
use Icinga\Module\Director\IcingaConfig\AssignRenderer;
use Icinga\Module\Director\Data\Db\DbObject; use Icinga\Module\Director\Data\Db\DbObject;
use Icinga\Module\Director\Db\Cache\PrefetchCache; use Icinga\Module\Director\Db\Cache\PrefetchCache;
use Icinga\Module\Director\Db; use Icinga\Module\Director\Db;
@ -1933,6 +1934,17 @@ abstract class IcingaObject extends DbObject implements IcingaConfigRenderer
return $str; return $str;
} }
/**
* @codingStandardsIgnoreStart
*/
public function renderAssign_Filter()
{
// @codingStandardsIgnoreEnd
return ' ' . AssignRenderer::forFilter(
Filter::fromQueryString($this->assign_filter)
)->renderAssign();
}
public function toLegacyConfigString() public function toLegacyConfigString()
{ {
$str = implode(array( $str = implode(array(