Renamed MonitoringView to AbstractView

This commit is contained in:
Thomas Gelf 2013-08-21 00:16:15 +02:00 committed by Eric Lippmann
parent 258d7dbafb
commit bb99358a21
15 changed files with 19 additions and 19 deletions

View File

@ -6,7 +6,7 @@ use Icinga\Data\AbstractQuery;
use Icinga\Data\Filter;
/**
* MonitoringView provides consistent views to our Icinga Backends
* AbstractView provides consistent views to our Icinga Backends
*
* TODO: * This could be renamed to AbstractView
* * We might need more complex filters (let's do the simple ones first)
@ -32,7 +32,7 @@ use Icinga\Data\Filter;
* * you can (and should) use a defined set of columns when issueing a query
* * you can use proper alias names to have an influence on column names
* in the result set
* * the MonitoringView behaves like any Query object and provides useful
* * the AbstractView behaves like any Query object and provides useful
* methods such as fetchAll, count, fetchPairs and so on
*
* If you want to fill a dropdown form element with all your hostgroups
@ -48,11 +48,11 @@ use Icinga\Data\Filter;
* $formElement->setMultiOptions($pairs);
* </code>
*
* MonitoringView is a proxy to your Backend Query. While both are Query objects
* AbstractView is a proxy to your Backend Query. While both are Query objects
* providing partially the same interface, they are not directly related to
* each other.
*/
class MonitoringView extends AbstractQuery
class AbstractView extends AbstractQuery
{
/**
* Stores the backend-specific Query Object
@ -177,7 +177,7 @@ class MonitoringView extends AbstractQuery
}
// TODO: applyAuthFilters(Auth $auth = null)
// MonitoringView will enforce restrictions as provided by the Auth
// AbstractView will enforce restrictions as provided by the Auth
// backend
/**

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class CommentView extends MonitoringView
class CommentView extends AbstractView
{
protected $query;

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class ContactView extends MonitoringView
class ContactView extends AbstractView
{
protected $query;

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class ContactgroupView extends MonitoringView
class ContactgroupView extends AbstractView
{
protected $query;

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class CustomvarView extends MonitoringView
class CustomvarView extends AbstractView
{
protected $query;

View File

@ -27,7 +27,7 @@ namespace Icinga\Module\Monitoring\View;
/**
* Class DowntimeView
*/
class DowntimeView extends MonitoringView
class DowntimeView extends AbstractView
{
/**
* Query object

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class EventHistoryView extends MonitoringView
class EventHistoryView extends AbstractView
{
protected $query;

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class HostgroupView extends MonitoringView
class HostgroupView extends AbstractView
{
protected $query;

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class HoststatusView extends MonitoringView
class HoststatusView extends AbstractView
{
protected $query;
protected $searchColumn = 'host';

View File

@ -28,7 +28,7 @@ namespace Icinga\Module\Monitoring\View;
/**
* NotificationView
*/
class NotificationView extends MonitoringView
class NotificationView extends AbstractView
{
/**
* Available columns provided by this view

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class ServicegroupView extends MonitoringView
class ServicegroupView extends AbstractView
{
protected $query;

View File

@ -2,7 +2,7 @@
namespace Icinga\Module\Monitoring\View;
class StatusView extends MonitoringView
class StatusView extends AbstractView
{
protected $query;
// protected $searchColumn = 'host'; -> besser in der Query, 'search' mitgeben

View File

@ -170,7 +170,7 @@ abstract class MonitoringControllerTest extends Zend_Test_PHPUnit_ControllerTest
private function requireViews()
{
$module = $this->moduleDir;
require_once($module.'library/Monitoring/View/MonitoringView.php');
require_once($module.'library/Monitoring/View/AbstractView.php');
$this->requireFolder('library/Monitoring/View/');
}

View File

@ -20,7 +20,7 @@ require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat/Quer
require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat.php';
require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat/Query/StatusQuery.php';
require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat/DataView/HostStatusView.php';
require_once '../../modules/monitoring/library/Monitoring/View/MonitoringView.php';
require_once '../../modules/monitoring/library/Monitoring/View/AbstractView.php';
require_once '../../modules/monitoring/library/Monitoring/View/StatusView.php';
require_once '../../library/Icinga/Protocol/AbstractQuery.php';

View File

@ -24,7 +24,7 @@ require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat/Quer
require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat.php';
require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat/Query/StatusQuery.php';
require_once '../../modules/monitoring/library/Monitoring/Backend/Statusdat/DataView/HostStatusView.php';
require_once '../../modules/monitoring/library/Monitoring/View/MonitoringView.php';
require_once '../../modules/monitoring/library/Monitoring/View/AbstractView.php';
require_once '../../modules/monitoring/library/Monitoring/View/StatusView.php';
require_once '../../library/Icinga/Web/Paginator/ScrollingStyle/SlidingWithBorder.php';