From: hickert Date: Mon, 27 Sep 2010 11:54:48 +0000 (+0000) Subject: Added string widget X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=da83f20045740fb985e1004acbf8910d53e667f6;p=gosa.git Added string widget git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19798 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateEngine.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateEngine.inc index 8060ed3ec..258a54732 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateEngine.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateEngine.inc @@ -42,7 +42,7 @@ class TemplateEngine $widgetClassName = "TemplateWidget_{$item['type']}"; if(!class_available($widgetClassName)){ echo "Unknown widget class {$widgetClassName}! Falling back to default widget.
"; - $widgetClassName = "TemplateWidget"; + $widgetClassName = "TemplateWidget_string"; } $this->widgets[$name] = new $widgetClassName($this->config, $name, diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget_string.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget_string.inc new file mode 100644 index 000000000..159f97a3d --- /dev/null +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget_string.inc @@ -0,0 +1,53 @@ +config = &$config; + $this->name = $name; + $this->value = $value; + $this->description = $description; + $this->required = $required; + $this->type = $type; + $this->display = $display; + $class = get_class(); + $this->postName = "{$class}_{$this->name}"; + } + + + function render() + { + return(""); + } + + function save_object() + { + } + + function getValue() + { + return($this->value); + } + + function getName() + { + return($this->name); + } + + function setValue($value) + { + $this->value = $value; + } + +} + +?>