From 1400d3df977baa987da82ca89bfd178ec4d42afc Mon Sep 17 00:00:00 2001 From: Alexander Fuhr Date: Mon, 27 Jul 2015 17:23:48 +0200 Subject: [PATCH] DataTypeHook: Implement addSettingsFields... --- library/Director/Web/Hook/DataTypeHook.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/library/Director/Web/Hook/DataTypeHook.php b/library/Director/Web/Hook/DataTypeHook.php index ec7cad2a..3bb3dabe 100644 --- a/library/Director/Web/Hook/DataTypeHook.php +++ b/library/Director/Web/Hook/DataTypeHook.php @@ -6,6 +6,8 @@ use Icinga\Module\Director\Web\Form\QuickForm; abstract class DataTypeHook { + protected $settings = array(); + public function getName() { $parts = explode('\\', get_class($this)); @@ -27,4 +29,15 @@ abstract class DataTypeHook } abstract public function getFormElement($name, QuickForm $form); + + public static function addSettingsFormFields(QuickForm $form) + { + return $form; + } + + public function setSettings($settings) + { + $this->settings = $settings; + return $this; + } }