From c86874d4ba6093c390a2670de9f727acebd78d9d Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 20 Aug 2013 15:32:25 +0200 Subject: [PATCH] =?UTF-8?q?Rename=20namespace=20Monitoring=20to=20Icing?= =?UTF-8?q?=C3=A6\Module\Monitoring?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refs #4586 --- .../controllers/CommandController.php | 20 +++++++++---------- .../controllers/ListController.php | 3 +-- .../controllers/ShowController.php | 7 +++---- .../forms/Command/AcknowledgeForm.php | 2 +- .../application/forms/Command/CommandForm.php | 2 +- .../Command/CommandWithIdentifierForm.php | 2 +- .../application/forms/Command/CommentForm.php | 2 +- .../forms/Command/CustomNotificationForm.php | 2 +- .../forms/Command/DelayNotificationForm.php | 2 +- .../forms/Command/RescheduleNextCheckForm.php | 2 +- .../forms/Command/ScheduleDowntimeForm.php | 2 +- .../Command/SubmitPassiveCheckResultForm.php | 2 +- .../forms/Command/WithChildrenCommandForm.php | 2 +- .../views/helpers/MonitoringCommands.php | 2 +- .../application/views/helpers/Perfdata.php | 2 +- modules/monitoring/bin/action/list.inc.php | 2 +- .../monitoring/library/Monitoring/Backend.php | 5 ++--- .../Monitoring/Backend/AbstractBackend.php | 4 ++-- .../library/Monitoring/Backend/Ido.php | 2 +- .../Backend/Ido/Query/AbstractQuery.php | 2 +- .../Backend/Ido/Query/CommentQuery.php | 2 +- .../Backend/Ido/Query/ContactQuery.php | 2 +- .../Backend/Ido/Query/ContactgroupQuery.php | 2 +- .../Backend/Ido/Query/CustomvarQuery.php | 2 +- .../Backend/Ido/Query/DowntimeQuery.php | 2 +- .../Backend/Ido/Query/EventHistoryQuery.php | 2 +- .../Backend/Ido/Query/HostgroupQuery.php | 2 +- .../Backend/Ido/Query/HoststatusQuery.php | 2 +- .../Backend/Ido/Query/NotificationQuery.php | 2 +- .../Backend/Ido/Query/ServicegroupQuery.php | 2 +- .../Backend/Ido/Query/ServicestatusQuery.php | 2 +- .../Backend/Ido/Query/StatusQuery.php | 2 +- .../library/Monitoring/Backend/Livestatus.php | 2 +- .../Backend/Livestatus/Query/StatusQuery.php | 2 +- .../library/Monitoring/Backend/Statusdat.php | 2 +- .../Backend/Statusdat/Criteria/Filter.php | 2 +- .../Backend/Statusdat/Criteria/Order.php | 2 +- .../Statusdat/DataView/HostStatusView.php | 2 +- .../Statusdat/DataView/ServiceStatusView.php | 2 +- .../DataView/StatusdatServiceView.php | 2 +- .../Statusdat/Query/GroupsummaryQuery.php | 2 +- .../Statusdat/Query/HostgroupsummaryQuery.php | 2 +- .../Backend/Statusdat/Query/HostlistQuery.php | 2 +- .../Backend/Statusdat/Query/Query.php | 4 ++-- .../Query/ServicegroupsummaryQuery.php | 2 +- .../Statusdat/Query/ServicelistQuery.php | 2 +- .../Backend/Statusdat/Query/StatusQuery.php | 2 +- .../library/Monitoring/Command/Meta.php | 2 +- .../library/Monitoring/Environment.php | 2 +- .../Monitoring/Object/AbstractObject.php | 4 ++-- .../library/Monitoring/Object/Host.php | 2 +- .../library/Monitoring/Object/Service.php | 2 +- .../monitoring/library/Monitoring/Plugin.php | 2 +- .../library/Monitoring/Plugin/Perfdata.php | 2 +- .../library/Monitoring/Plugin/PerfdataSet.php | 2 +- .../library/Monitoring/View/CommentView.php | 2 +- .../library/Monitoring/View/ContactView.php | 2 +- .../Monitoring/View/ContactgroupView.php | 2 +- .../library/Monitoring/View/CustomvarView.php | 2 +- .../library/Monitoring/View/DowntimeView.php | 2 +- .../Monitoring/View/EventHistoryView.php | 2 +- .../library/Monitoring/View/HostgroupView.php | 2 +- .../Monitoring/View/HoststatusView.php | 2 +- .../Monitoring/View/MonitoringView.php | 4 ++-- .../Monitoring/View/NotificationView.php | 2 +- .../Monitoring/View/ServicegroupView.php | 2 +- .../library/Monitoring/View/StatusView.php | 2 +- .../forms/Command/AcknowledgeFormTest.php | 2 +- .../forms/Command/CommentFormTest.php | 2 +- .../forms/Command/ConfirmationFormTest.php | 3 +-- .../ConfirmationWithIdentifierFormTest.php | 2 +- .../Command/CustomNotificationFormTest.php | 2 +- .../Command/DelayNotificationFormTest.php | 2 +- .../Command/RescheduleNextCheckFormTest.php | 2 +- .../Command/ScheduleDowntimeFormTest.php | 2 +- .../Command/SubmitPassiveCheckResultTest.php | 2 +- .../views/helpers/MonitoringCommandsTest.php | 2 +- .../ServicegroupsummaryQueryTest.php | 4 ++-- .../test/php/library/Command/MetaTest.php | 2 +- .../php/testlib/MonitoringControllerTest.php | 6 +++--- .../Paginator/Adapter/QueryAdapterTest.php | 2 +- .../ScrollingStyle/SlidingWithBorderTest.php | 2 +- 82 files changed, 101 insertions(+), 105 deletions(-) diff --git a/modules/monitoring/application/controllers/CommandController.php b/modules/monitoring/application/controllers/CommandController.php index 2b3d05afa..ce1dad859 100644 --- a/modules/monitoring/application/controllers/CommandController.php +++ b/modules/monitoring/application/controllers/CommandController.php @@ -28,7 +28,6 @@ // {{{ICINGA_LICENSE_HEADER}}} use \Icinga\Application\Icinga; -use \Monitoring\Backend; use \Icinga\Application\Config; use \Icinga\Application\Logger; use \Icinga\Web\Form; @@ -36,15 +35,16 @@ use \Icinga\Web\Controller\ActionController; use \Icinga\Protocol\Commandpipe\CommandPipe; use \Icinga\Exception\ConfigurationError; use \Icinga\Exception\MissingParameterException; -use \Monitoring\Form\Command\AcknowledgeForm; -use \Monitoring\Form\Command\CommentForm; -use \Monitoring\Form\Command\CommandForm; -use \Monitoring\Form\Command\CommandWithIdentifierForm; -use \Monitoring\Form\Command\CustomNotificationForm; -use \Monitoring\Form\Command\DelayNotificationForm; -use \Monitoring\Form\Command\RescheduleNextCheckForm; -use \Monitoring\Form\Command\ScheduleDowntimeForm; -use \Monitoring\Form\Command\SubmitPassiveCheckResultForm; +use \Icinga\Module\Monitoring\Backend; +use \Icinga\Module\Monitoring\Form\Command\AcknowledgeForm; +use \Icinga\Module\Monitoring\Form\Command\CommentForm; +use \Icinga\Module\Monitoring\Form\Command\CommandForm; +use \Icinga\Module\Monitoring\Form\Command\CommandWithIdentifierForm; +use \Icinga\Module\Monitoring\Form\Command\CustomNotificationForm; +use \Icinga\Module\Monitoring\Form\Command\DelayNotificationForm; +use \Icinga\Module\Monitoring\Form\Command\RescheduleNextCheckForm; +use \Icinga\Module\Monitoring\Form\Command\ScheduleDowntimeForm; +use \Icinga\Module\Monitoring\Form\Command\SubmitPassiveCheckResultForm; /** * Class Monitoring_CommandController diff --git a/modules/monitoring/application/controllers/ListController.php b/modules/monitoring/application/controllers/ListController.php index b17412a9e..fc6c3c45e 100644 --- a/modules/monitoring/application/controllers/ListController.php +++ b/modules/monitoring/application/controllers/ListController.php @@ -27,7 +27,6 @@ */ // {{{ICINGA_LICENSE_HEADER}}} - use \Icinga\Application\Benchmark; use \Icinga\Data\Db\Query; use \Icinga\File\Csv; @@ -37,7 +36,7 @@ use \Icinga\Web\Widget\Tabextension\BasketAction; use \Icinga\Web\Widget\Tabextension\DashboardAction; use \Icinga\Web\Widget\Tabextension\OutputFormat; use \Icinga\Web\Widget\Tabs; -use \Monitoring\Backend; +use \Icinga\Module\Monitoring\Backend; class Monitoring_ListController extends ActionController { diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index 41187f832..059e76935 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -27,13 +27,12 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -use Monitoring\Backend; +use \Icinga\Module\Monitoring\Backend; use Icinga\Web\Controller\ActionController; use Icinga\Web\Hook; -use Monitoring\Object\Host; -use Monitoring\Object\Service; +use \Icinga\Module\Monitoring\Object\Host; +use \Icinga\Module\Monitoring\Object\Service; use Icinga\Application\Benchmark; - use Icinga\Web\Widget\Tabextension\OutputFormat; use Icinga\Web\Widget\Tabextension\DashboardAction; use Icinga\Web\Widget\Tabextension\BasketAction; diff --git a/modules/monitoring/application/forms/Command/AcknowledgeForm.php b/modules/monitoring/application/forms/Command/AcknowledgeForm.php index c671046a6..00b35343b 100644 --- a/modules/monitoring/application/forms/Command/AcknowledgeForm.php +++ b/modules/monitoring/application/forms/Command/AcknowledgeForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Icinga\Web\Form\Element\DateTimePicker; use \Icinga\Protocol\Commandpipe\Acknowledgement; diff --git a/modules/monitoring/application/forms/Command/CommandForm.php b/modules/monitoring/application/forms/Command/CommandForm.php index 04ef1150e..32bac99ce 100644 --- a/modules/monitoring/application/forms/Command/CommandForm.php +++ b/modules/monitoring/application/forms/Command/CommandForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Zend_Config; use \Icinga\Web\Form; diff --git a/modules/monitoring/application/forms/Command/CommandWithIdentifierForm.php b/modules/monitoring/application/forms/Command/CommandWithIdentifierForm.php index c59b737d3..cfc0bfaff 100644 --- a/modules/monitoring/application/forms/Command/CommandWithIdentifierForm.php +++ b/modules/monitoring/application/forms/Command/CommandWithIdentifierForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Zend_Form_Element_Hidden; diff --git a/modules/monitoring/application/forms/Command/CommentForm.php b/modules/monitoring/application/forms/Command/CommentForm.php index 28f79f444..a9175d1cb 100644 --- a/modules/monitoring/application/forms/Command/CommentForm.php +++ b/modules/monitoring/application/forms/Command/CommentForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Icinga\Protocol\Commandpipe\Comment; diff --git a/modules/monitoring/application/forms/Command/CustomNotificationForm.php b/modules/monitoring/application/forms/Command/CustomNotificationForm.php index c4c5fbfd9..1e07220d7 100644 --- a/modules/monitoring/application/forms/Command/CustomNotificationForm.php +++ b/modules/monitoring/application/forms/Command/CustomNotificationForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Icinga\Protocol\Commandpipe\CustomNotification; diff --git a/modules/monitoring/application/forms/Command/DelayNotificationForm.php b/modules/monitoring/application/forms/Command/DelayNotificationForm.php index acf15b445..34bda250e 100644 --- a/modules/monitoring/application/forms/Command/DelayNotificationForm.php +++ b/modules/monitoring/application/forms/Command/DelayNotificationForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; /** * Form for the delay notification command diff --git a/modules/monitoring/application/forms/Command/RescheduleNextCheckForm.php b/modules/monitoring/application/forms/Command/RescheduleNextCheckForm.php index a1b7f11dc..0aa18e903 100644 --- a/modules/monitoring/application/forms/Command/RescheduleNextCheckForm.php +++ b/modules/monitoring/application/forms/Command/RescheduleNextCheckForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Zend_Form_Element_Checkbox; use \Icinga\Web\Form\Element\DateTimePicker; diff --git a/modules/monitoring/application/forms/Command/ScheduleDowntimeForm.php b/modules/monitoring/application/forms/Command/ScheduleDowntimeForm.php index 5eb13f62b..2944aef21 100644 --- a/modules/monitoring/application/forms/Command/ScheduleDowntimeForm.php +++ b/modules/monitoring/application/forms/Command/ScheduleDowntimeForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Zend_Form_Element_Text; use \Zend_Validate_GreaterThan; diff --git a/modules/monitoring/application/forms/Command/SubmitPassiveCheckResultForm.php b/modules/monitoring/application/forms/Command/SubmitPassiveCheckResultForm.php index e70c18ec0..54471e4b3 100644 --- a/modules/monitoring/application/forms/Command/SubmitPassiveCheckResultForm.php +++ b/modules/monitoring/application/forms/Command/SubmitPassiveCheckResultForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; use \Icinga\Exception\ProgrammingError; diff --git a/modules/monitoring/application/forms/Command/WithChildrenCommandForm.php b/modules/monitoring/application/forms/Command/WithChildrenCommandForm.php index 4a6c6360c..ff5a4df62 100644 --- a/modules/monitoring/application/forms/Command/WithChildrenCommandForm.php +++ b/modules/monitoring/application/forms/Command/WithChildrenCommandForm.php @@ -26,7 +26,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\Form\Command; +namespace Icinga\Module\Monitoring\Form\Command; /** * Base class for command forms which allow to propagate the command to child objects too diff --git a/modules/monitoring/application/views/helpers/MonitoringCommands.php b/modules/monitoring/application/views/helpers/MonitoringCommands.php index 0c35460b9..abd9588ef 100644 --- a/modules/monitoring/application/views/helpers/MonitoringCommands.php +++ b/modules/monitoring/application/views/helpers/MonitoringCommands.php @@ -23,7 +23,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -use \Monitoring\Command\Meta; +use \Icinga\Module\Monitoring\Command\Meta; /** * Class MonitoringCommands diff --git a/modules/monitoring/application/views/helpers/Perfdata.php b/modules/monitoring/application/views/helpers/Perfdata.php index 2b7e938a6..3668f86ad 100644 --- a/modules/monitoring/application/views/helpers/Perfdata.php +++ b/modules/monitoring/application/views/helpers/Perfdata.php @@ -1,6 +1,6 @@ shift('backend')); diff --git a/modules/monitoring/library/Monitoring/Backend.php b/modules/monitoring/library/Monitoring/Backend.php index f5afce884..54579c09d 100644 --- a/modules/monitoring/library/Monitoring/Backend.php +++ b/modules/monitoring/library/Monitoring/Backend.php @@ -26,12 +26,11 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring; +namespace Icinga\Module\Monitoring; use \Exception; use \Icinga\Application\Config as IcingaConfig; use \Icinga\Authentication\Manager as AuthManager; -use \Monitoring\Backend\AbstractBackend; /** * Container for monitoring backends @@ -140,7 +139,7 @@ class Backend $config = self::$backendConfigs[$name]; $type = $config->type; $type[0] = strtoupper($type[0]); - $class = '\\Monitoring\\Backend\\' . $type; + $class = '\\Icinga\\Module\\Monitoring\\Backend\\' . $type; self::$instances[$name] = new $class($config); } return self::$instances[$name]; diff --git a/modules/monitoring/library/Monitoring/Backend/AbstractBackend.php b/modules/monitoring/library/Monitoring/Backend/AbstractBackend.php index 1c38fd2f8..581e0ac89 100644 --- a/modules/monitoring/library/Monitoring/Backend/AbstractBackend.php +++ b/modules/monitoring/library/Monitoring/Backend/AbstractBackend.php @@ -1,6 +1,6 @@ getName() // . '\\' . ucfirst($virtual_table) diff --git a/modules/monitoring/library/Monitoring/Backend/Ido.php b/modules/monitoring/library/Monitoring/Backend/Ido.php index 9af41fdd5..2290855cf 100644 --- a/modules/monitoring/library/Monitoring/Backend/Ido.php +++ b/modules/monitoring/library/Monitoring/Backend/Ido.php @@ -1,6 +1,6 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\View; +namespace Icinga\Module\Monitoring\View; /** * Class DowntimeView diff --git a/modules/monitoring/library/Monitoring/View/EventHistoryView.php b/modules/monitoring/library/Monitoring/View/EventHistoryView.php index 16a90158d..0feac0e17 100644 --- a/modules/monitoring/library/Monitoring/View/EventHistoryView.php +++ b/modules/monitoring/library/Monitoring/View/EventHistoryView.php @@ -1,6 +1,6 @@ - * use Monitoring\Backend; + * use \Icinga\Module\Monitoring\Backend; * $backend = Backend::getInstance(); * $query = $backend->select()->from('viewname', array( * 'one_column', diff --git a/modules/monitoring/library/Monitoring/View/NotificationView.php b/modules/monitoring/library/Monitoring/View/NotificationView.php index bad01cbde..b0372f6a9 100644 --- a/modules/monitoring/library/Monitoring/View/NotificationView.php +++ b/modules/monitoring/library/Monitoring/View/NotificationView.php @@ -23,7 +23,7 @@ */ // {{{ICINGA_LICENSE_HEADER}}} -namespace Monitoring\View; +namespace Icinga\Module\Monitoring\View; /** * NotificationView diff --git a/modules/monitoring/library/Monitoring/View/ServicegroupView.php b/modules/monitoring/library/Monitoring/View/ServicegroupView.php index da872a6c7..73fd1efa7 100644 --- a/modules/monitoring/library/Monitoring/View/ServicegroupView.php +++ b/modules/monitoring/library/Monitoring/View/ServicegroupView.php @@ -1,6 +1,6 @@