From: hickert Date: Mon, 27 Sep 2010 13:37:40 +0000 (+0000) Subject: Added comments. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=35440818d30b6ced1d0018e40df3d5680def092a;p=gosa.git Added comments. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19803 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc index d686439c1..ef4ff99d6 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_TemplateWidget.inc @@ -1,5 +1,8 @@ config = &$config; @@ -22,18 +34,29 @@ class TemplateWidget $class = get_class(); $this->postName = "{$class}_{$this->name}"; } - + + + /*! \brief Returns the display-name for the current widget. + * @return String The display-name for the widget, this + * name will usually be rendered infront of input fields. + */ function getDisplayName() { return($this->display); } + /*! \brief Generates the HTML code for the widget. + * @return The HTML content for the widget. + */ function render() { return(""); } + + /*! \brief Keep track of posted values. + */ function save_object() { if(isset($_POST[$this->postName])){ @@ -41,21 +64,31 @@ class TemplateWidget } } + + /*! \brief Returns the current value. + * @return Mixed The widgets value. + */ function getValue() { return($this->value); } + + /*! \brief Returns the name of the widget. + * @param String The widgets name. + */ function getName() { return($this->name); } + + /*! \brief Sets a new value for the widget. + * @param String The new value. + */ function setValue($value) { $this->value = $value; } - } - ?>