2015-11-13 15:03:08 +01:00
|
|
|
<?php
|
2016-02-08 15:41:00 +01:00
|
|
|
/* Icinga Web 2 | (c) 2015 Icinga Development Team | GPLv2+ */
|
2015-11-13 15:03:08 +01:00
|
|
|
|
|
|
|
namespace Icinga\Module\Monitoring\Hook;
|
|
|
|
|
|
|
|
abstract class DataviewExtensionHook
|
|
|
|
{
|
2015-11-13 15:09:15 +01:00
|
|
|
public function getAdditionalQueryColumns($queryName)
|
|
|
|
{
|
|
|
|
$cols = $this->provideAdditionalQueryColumns($queryName);
|
|
|
|
|
2015-11-13 15:12:30 +01:00
|
|
|
if (! is_array($cols)) {
|
|
|
|
return array();
|
|
|
|
}
|
|
|
|
|
2015-11-13 15:09:15 +01:00
|
|
|
return $cols;
|
|
|
|
}
|
|
|
|
|
|
|
|
abstract public function provideAdditionalQueryColumns($queryName);
|
2015-11-13 15:03:08 +01:00
|
|
|
}
|