icingaweb2-module-director/library/Director/Web/Table/ObjectsTableCommand.php

39 lines
784 B
PHP
Raw Normal View History

<?php
namespace Icinga\Module\Director\Web\Table;
use Zend_Db_Select as ZfSelect;
class ObjectsTableCommand extends ObjectsTable
{
// TODO: Notifications separately?
protected $searchColumns = [
'o.object_name',
'o.command',
];
protected $columns = [
'object_name' => 'o.object_name',
2017-07-04 01:34:19 +02:00
'disabled' => 'o.disabled',
'command' => 'o.command',
];
protected $showColumns = [
'object_name' => 'Command',
'command' => 'Command line'
];
private $objectType;
public function setType($type)
{
$this->getQuery()->where('object_type = ?', $type);
return $this;
}
protected function applyObjectTypeFilter(ZfSelect $query)
{
return $query;
}
}