From: hickert Date: Thu, 14 Apr 2011 13:02:25 +0000 (+0000) Subject: Updated template file to send contents in b64 format X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e6ca4ac26f2470896c8facbb3c940d77dcef7b8b;p=gosa.git Updated template file to send contents in b64 format git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20733 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_file.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_file.inc index 1e41cd9be..d73f64641 100644 --- a/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_file.inc +++ b/gosa-plugins/goto-ng/admin/newConfigManagement/TemplateEngine/class_TemplateWidget_file.inc @@ -2,6 +2,31 @@ class TemplateWidget_file extends TemplateWidget { + /*! \brief Constructs the template widget and sets the default values. + * @param Config The GOsa configuration object. + * @param String A name for the widget. + * @param String The initial value. + * @param String A description. + * @param String True/False Must-Value/Optional-Value. + * @param String The widget type. + * @param String A display name for the widget. + */ + function __construct(&$config, $name, $value, $description,$syntax,$required,$type,$display, $values=array()) + { + $value = base64_decode($value); + TemplateWidget::__construct($config, $name, $value, $description,$syntax,$required,$type,$display, $values); + } + + + /*! \brief Returns the current value. + * @return Mixed The widgets value. + */ + function getValue() + { + return(base64_encode($this->value)); + } + + function render() { $title = set_post($this->description);