Declare property `$view` for helpers in monitoring modules
The property `$view` with type `Icinga\Web\View` is declared for helpers in `modules/monitoring/application/views/helpers` directory.
This commit is contained in:
parent
d22d2fb1e0
commit
a780d9790b
|
@ -1,8 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
/* Icinga Web 2 | (c) 2014 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
use Icinga\Web\View;
|
||||||
|
|
||||||
class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract
|
class Zend_View_Helper_Customvar extends Zend_View_Helper_Abstract
|
||||||
{
|
{
|
||||||
|
/** @var View */
|
||||||
|
public $view;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create dispatch instance
|
* Create dispatch instance
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
use Icinga\Web\View;
|
||||||
|
|
||||||
class Zend_View_Helper_HostFlags extends Zend_View_Helper_Abstract
|
class Zend_View_Helper_HostFlags extends Zend_View_Helper_Abstract
|
||||||
{
|
{
|
||||||
|
/** @var View */
|
||||||
|
public $view;
|
||||||
|
|
||||||
public function hostFlags($host)
|
public function hostFlags($host)
|
||||||
{
|
{
|
||||||
$icons = array();
|
$icons = array();
|
||||||
|
|
|
@ -2,12 +2,17 @@
|
||||||
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
use Icinga\Module\Monitoring\Object\Macro;
|
use Icinga\Module\Monitoring\Object\Macro;
|
||||||
|
use Icinga\Module\Monitoring\Object\MonitoredObject;
|
||||||
|
use Icinga\Web\View;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generate icons to describe a given hosts state
|
* Generate icons to describe a given hosts state
|
||||||
*/
|
*/
|
||||||
class Zend_View_Helper_IconImage extends Zend_View_Helper_Abstract
|
class Zend_View_Helper_IconImage extends Zend_View_Helper_Abstract
|
||||||
{
|
{
|
||||||
|
/** @var View */
|
||||||
|
public $view;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create dispatch instance
|
* Create dispatch instance
|
||||||
*
|
*
|
||||||
|
|
|
@ -4,9 +4,13 @@
|
||||||
use Icinga\Module\Monitoring\Plugin\Perfdata;
|
use Icinga\Module\Monitoring\Plugin\Perfdata;
|
||||||
use Icinga\Module\Monitoring\Plugin\PerfdataSet;
|
use Icinga\Module\Monitoring\Plugin\PerfdataSet;
|
||||||
use Icinga\Util\StringHelper;
|
use Icinga\Util\StringHelper;
|
||||||
|
use Icinga\Web\View;
|
||||||
|
|
||||||
class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
||||||
{
|
{
|
||||||
|
/** @var View */
|
||||||
|
public $view;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Display the given perfdata string to the user
|
* Display the given perfdata string to the user
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,8 +1,13 @@
|
||||||
<?php
|
<?php
|
||||||
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
||||||
|
|
||||||
|
use Icinga\Web\View;
|
||||||
|
|
||||||
class Zend_View_Helper_ServiceFlags extends Zend_View_Helper_Abstract
|
class Zend_View_Helper_ServiceFlags extends Zend_View_Helper_Abstract
|
||||||
{
|
{
|
||||||
|
/** @var View */
|
||||||
|
public $view;
|
||||||
|
|
||||||
public function serviceFlags($service)
|
public function serviceFlags($service)
|
||||||
{
|
{
|
||||||
$icons = array();
|
$icons = array();
|
||||||
|
|
Loading…
Reference in New Issue