From c6cf4b46a142ef86be2aad73dd384fd481552092 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 22 Jan 2009 14:11:09 +0000 Subject: [PATCH] =?UTF-8?q?LSformElement=5Fmaildir=20:=20=09->=20Correctio?= =?UTF-8?q?n=20d'un=20bug=20idiot=20;)=20=09->=20Ajout=20d'un=20commentair?= =?UTF-8?q?e=20concernant=20les=20options=20HTML=20g=C3=A9r=C3=A9es?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../class/class.LSformElement_maildir.php | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/trunk/includes/class/class.LSformElement_maildir.php b/trunk/includes/class/class.LSformElement_maildir.php index 6f94af23..dd68f9b8 100644 --- a/trunk/includes/class/class.LSformElement_maildir.php +++ b/trunk/includes/class/class.LSformElement_maildir.php @@ -28,6 +28,25 @@ $GLOBALS['LSsession'] -> loadLSaddon('maildir'); * * Cette classe définis les éléments maildir des formulaires. * Elle étant la classe LSformElement_text. + * + * Options HTML : + * // ************************************* + * 'html_options' => array ( + * // Required + * 'LSform' => array ( // To define if the user can active triggers for the LSform + * 'create' => 1, // Example : LSform 'create' => Triggers active by default + * 'modify' => 0 // Example : LSform 'create' => Triggers disable by default + * ), + * // Optional + * 'remoteRootPathRegex' => "^\/home\/vmail\/([^\/]*)\/+$", // Regex to determine the path of + * // maildir from the attribute value + * 'archiveNameFormat' => "archives/%{old}" // To archive rather than destroyed : + * // At the elimination, the maildir is moved + * // rather than deleted. The new name / path + * // of the maildir is determined from the old + * // name and LSformat. + * ), + * // ************************************* * * @author Benjamin Renard */ @@ -69,7 +88,7 @@ class LSformElement_maildir extends LSformElement_text { $retval = parent :: getPostData($return); // Si une valeur est recupérée - if ($retval&&$_POST['LSformElement_maildir_description_do']) { + if ($retval&&$_POST['LSformElement_maildir_'.$this -> name.'_do']) { $cur = $this -> form -> ldapObject -> attrs[$this -> name] -> getValue(); $cur=$cur[0]; $new = $return[$this -> name][0];