DataviewExtensionHook: we always want an array

This way implementors do not need to care
This commit is contained in:
Thomas Gelf 2015-11-13 15:09:15 +01:00
parent 35d3342b05
commit ff2c96e553
1 changed files with 8 additions and 1 deletions

View File

@ -5,5 +5,12 @@ namespace Icinga\Module\Monitoring\Hook;
abstract class DataviewExtensionHook
{
abstract public function getAdditionalQueryColumns($queryName);
public function getAdditionalQueryColumns($queryName)
{
$cols = $this->provideAdditionalQueryColumns($queryName);
return $cols;
}
abstract public function provideAdditionalQueryColumns($queryName);
}