From: hickert Date: Tue, 28 Jun 2005 09:47:54 +0000 (+0000) Subject: added doxy comments X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=b7b1808d887a31ad071475a8f6e3f037db1cf254;p=gosa.git added doxy comments git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@890 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/gofon/macro/class_gofonMacro.inc b/plugins/gofon/macro/class_gofonMacro.inc index bba2898f7..3f0ef4bde 100755 --- a/plugins/gofon/macro/class_gofonMacro.inc +++ b/plugins/gofon/macro/class_gofonMacro.inc @@ -1,28 +1,50 @@ "Eins ist toll", "zwei" => "Zwei ist noch besser"); - /* application attributes */ - var $cn= ""; - var $description= ""; - var $base= ""; - var $displayName = ""; - var $goFonMacroContent; - var $goFonMacroVisible=0; + /*! Macro attributes, */ + + /*! The name of the Macro in the openldap drirectory */ + var $cn = ""; + + /*! This ist the variable that contains the description of the macro*/ + var $description = ""; - /* attribute list for save action */ - var $attributes= array("cn","base", "description","displayName","goFonMacroContent","goFonMacroVisible"); - var $objectclasses= array("top", "goFonMacro"); + /*! The base of the macro, is used to save the macro in the correct directory tree */ + var $base = ""; + /*! This is the name of the macro which the enduser will see, instead of the cn */ + var $displayName = ""; + + /*! Here is the macro content, the real macroscript */ + var $goFonMacroContent= ""; - /*! - Konstructor, load class with attributes of the given dn - */ - function macro ($config, $dn= NULL) + /*! To allow user to use this macro this var must be true, else false * / + var $goFonMacroVisible= 0; + + /*! attribute list for save action */ + var $attributes = array("cn","base", "description","displayName","goFonMacroContent","goFonMacroVisible"); + + /*! Objectclasses that this calls handles */ + var $objectclasses = array("top", "goFonMacro"); + + //! The Konstructor + /*! Konstructor, load class with attributes of the given dn*/ + function macro::macro ($config, $dn= NULL) { plugin::plugin ($config, $dn); @@ -44,9 +66,7 @@ class macro extends plugin } } - /*! - Execute this plugin - */ + /*! Execute this plugin */ function execute() { /* Variables */ diff --git a/plugins/gofon/macro/class_gofonMacroParameters.inc b/plugins/gofon/macro/class_gofonMacroParameters.inc index a6c328ac9..12d62343e 100755 --- a/plugins/gofon/macro/class_gofonMacroParameters.inc +++ b/plugins/gofon/macro/class_gofonMacroParameters.inc @@ -1,26 +1,45 @@ "Eins ist toll", "zwei" => "Zwei ist noch besser"); - /* application attributes */ + /*! macro base */ var $base= ""; + + /*! This array contains all Parameter defined for the macro*/ var $goFonMacroParameter =array(); + + /*! This are the available types for a macro */ var $type_shortcut= array("string" => array("selected", "", ""), "combo" => array("", "selected", ""), "bool" => array("", "", "selected")); - /* attribute list for save action */ + /*! attribute list for save action */ var $attributes= array("base","goFonMacroParameter"); + + /*! Objectclasses needed by the class*/ var $objectclasses= array("top", "goFonMacro"); - /*! - Konstructor - */ + //! The konstructor of macroParameter + /*! The konstructor of macroParameter... + - reads goFonMacroParameter and parses them to an array + - Set attributes from openldap (edit) + - Set attributes from default (new) + */ function macroParameter ($config, $dn= NULL) { plugin::plugin ($config, $dn); @@ -76,8 +95,13 @@ class macroParameter extends plugin $this->goFonMacroParameter = $tmp2; } - /*! - Check given parameters from content and from object and compare them + //! Perform Parameter check + /*! + Compares the given parameters (goFonMacroParameters) with the parameters defined in goFonContent\n + -> Decide which attrs are new and which are unused\n + -> Sort result array (containing both parameters 'goFonMacroParameters/goFonContent' and new / unused info)\n + \param $content The given goFonContent for this macro\n + \param $goFonMacroParameter Array with the already given parameters \n */ function check_paras($content,$goFonMacroParameter) { @@ -132,7 +156,12 @@ class macroParameter extends plugin } - + //! Execute this Plugin + /*! + Perform Parameter check \n + Draw paramter table\n + Show tpl \n + */ function execute() { /* Variables */ @@ -218,14 +247,22 @@ class macroParameter extends plugin /* Show main page */ return($smarty->fetch (get_template_path('parameter.tpl', TRUE))); } - - + + //! Unused here + /*! + Unused here because goFonMacro will remove this Macro\n + */ function remove_from_parent() { } - - /* Save data to object */ + //! Save our data + /*! + Save POST data to object \n + This gives us the possibility to leave a tab, without losing our typed informations\n + \n + Read the POST fields for the parameters and saves their info the the class\n + */ function save_object() { if (isset($_POST['phoneparameters'])){ @@ -259,7 +296,12 @@ class macroParameter extends plugin } - /* Check values */ + //! Checks given values + /*! + Check values\n + If a user enters an invalid value, then this function will output an error msg\n + (In better words :prepare the errormessages that will be put out )\n + */ function check() { $message = array(); @@ -290,8 +332,11 @@ class macroParameter extends plugin return $message; } - - /* Save to LDAP */ + //! Save changes to openldap + /*! + Save to LDAP + This function saves given attributes to the ldap + */ function save() { /* Post checks */