2013-06-03 16:36:10 +02:00
|
|
|
<?php
|
2013-06-06 16:52:54 +02:00
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
// {{{ICINGA_LICENSE_HEADER}}}
|
|
|
|
|
2013-06-03 16:36:10 +02:00
|
|
|
namespace Icinga\Backend\Statusdat;
|
2013-06-06 16:52:54 +02:00
|
|
|
|
2013-06-03 16:36:10 +02:00
|
|
|
use Icinga\Protocol\Statusdat;
|
|
|
|
use Icinga\Exception;
|
|
|
|
|
2013-06-06 16:52:54 +02:00
|
|
|
/**
|
|
|
|
* Class HostListQuery
|
|
|
|
* @package Icinga\Backend\Statusdat
|
|
|
|
*/
|
2013-06-03 16:36:10 +02:00
|
|
|
class HostListQuery extends Query
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var \Icinga\Protocol\Statusdat\Query
|
|
|
|
*/
|
|
|
|
protected $query;
|
2013-06-06 16:52:54 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*/
|
2013-06-03 16:36:10 +02:00
|
|
|
protected $view = 'Icinga\Backend\Statusdat\DataView\StatusdatHostView';
|
|
|
|
|
2013-06-06 16:52:54 +02:00
|
|
|
/**
|
|
|
|
* @return mixed|void
|
|
|
|
*/
|
|
|
|
public function init()
|
|
|
|
{
|
2013-06-03 16:36:10 +02:00
|
|
|
$this->reader = $this->backend->getReader();
|
2013-06-06 16:52:54 +02:00
|
|
|
$this->query = $this->reader->select()->from("hosts", array());
|
2013-06-03 16:36:10 +02:00
|
|
|
}
|
|
|
|
}
|