From 43dd042955b36da7624b287b95dad35e0cd89dbd Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 10 Aug 2012 12:34:19 +0200 Subject: [PATCH] SUPANN : ajout du support de l'attribut supannRoleGenerique --- .../class.LSattr_html_supannRoleGenerique.php | 34 +++++++++++++ ...lass.LSformElement_supannRoleGenerique.php | 51 +++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 public_html/includes/class/class.LSattr_html_supannRoleGenerique.php create mode 100644 public_html/includes/class/class.LSformElement_supannRoleGenerique.php diff --git a/public_html/includes/class/class.LSattr_html_supannRoleGenerique.php b/public_html/includes/class/class.LSattr_html_supannRoleGenerique.php new file mode 100644 index 00000000..05f5a404 --- /dev/null +++ b/public_html/includes/class/class.LSattr_html_supannRoleGenerique.php @@ -0,0 +1,34 @@ + + */ +class LSattr_html_supannRoleGenerique extends LSattr_html { + + var $LSformElement_type = 'supannRoleGenerique'; + +} + +?> diff --git a/public_html/includes/class/class.LSformElement_supannRoleGenerique.php b/public_html/includes/class/class.LSformElement_supannRoleGenerique.php new file mode 100644 index 00000000..5639af2d --- /dev/null +++ b/public_html/includes/class/class.LSformElement_supannRoleGenerique.php @@ -0,0 +1,51 @@ + + */ + +class LSformElement_supannRoleGenerique extends LSformElement_supannLabeledValue { + + /** + * Traduit une valeur + * + * @param[in] $value La valeur + * + * @retval array Un tableau cle->valeur contenant translated et label ou False + **/ + function translate($value) { + return supannTranslateRoleEntiteValue('role',$value); + } + + +} + +?>