From 4461a35a76321aabc2bb4c0155e932bbcc278315 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 10 Aug 2012 12:35:19 +0200 Subject: [PATCH] SUPANN : ajout du support de l'attribut supannTypeEntiteAffectation --- ...Sattr_html_supannTypeEntiteAffectation.php | 34 +++++++++++++ ...ormElement_supannTypeEntiteAffectation.php | 50 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 public_html/includes/class/class.LSattr_html_supannTypeEntiteAffectation.php create mode 100644 public_html/includes/class/class.LSformElement_supannTypeEntiteAffectation.php diff --git a/public_html/includes/class/class.LSattr_html_supannTypeEntiteAffectation.php b/public_html/includes/class/class.LSattr_html_supannTypeEntiteAffectation.php new file mode 100644 index 00000000..58052554 --- /dev/null +++ b/public_html/includes/class/class.LSattr_html_supannTypeEntiteAffectation.php @@ -0,0 +1,34 @@ + + */ +class LSattr_html_supannTypeEntiteAffectation extends LSattr_html { + + var $LSformElement_type = 'supannTypeEntiteAffectation'; + +} + +?> diff --git a/public_html/includes/class/class.LSformElement_supannTypeEntiteAffectation.php b/public_html/includes/class/class.LSformElement_supannTypeEntiteAffectation.php new file mode 100644 index 00000000..b712fccd --- /dev/null +++ b/public_html/includes/class/class.LSformElement_supannTypeEntiteAffectation.php @@ -0,0 +1,50 @@ + + */ + +class LSformElement_supannTypeEntiteAffectation 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('type',$value); + } + + +} +