&conf-LSattr_html_maildir;
&conf-LSattr_html_mailQuota;
&conf-LSattr_html_password;
+ &conf-LSattr_html_postaladdress;
&conf-LSattr_html_rss;
&conf-LSattr_html_select_box;
&conf-LSattr_html_select_list;
<!ENTITY conf-LSattr_html_maildir SYSTEM "LSattr_html_maildir.docbook">
<!ENTITY conf-LSattr_html_mailQuota SYSTEM "LSattr_html_mailQuota.docbook">
<!ENTITY conf-LSattr_html_password SYSTEM "LSattr_html_password.docbook">
+<!ENTITY conf-LSattr_html_postaladdress SYSTEM "LSattr_html_postaladdress.docbook">
<!ENTITY conf-LSattr_html_rss SYSTEM "LSattr_html_rss.docbook">
<!ENTITY conf-LSattr_html_select_box SYSTEM "LSattr_html_select_box.docbook">
<!ENTITY conf-LSattr_html_select_list SYSTEM "LSattr_html_select_list.docbook">
--- /dev/null
+<sect4 id="config-LSattr_html_postaladdress">
+ <title>LSattr_html_postaladdress</title>
+ <para>Ce type est utilisé pour la gestion des attributs du type de l'attribut
+ standard <emphasis>postalAddress</emphasis>. Ce type d'attribut permet d'afficher,
+ en plus de l'adresse, un lien composé à partir d'informations de l'objet permettant
+ par exemple d'afficher un lien vers une carte géocalisant l'adresse postale.</para>
+
+<programlisting linenumbering="unnumbered">
+<citetitle>Structure</citetitle>...
+<![CDATA['html_options' => array(
+ 'map_url_pattern_format' => '[LSformat]',
+ 'map_url_format' => '[LSformat]',
+),]]>
+...
+</programlisting>
+
+<variablelist>
+<title>Paramètres de configuration</title>
+
+<varlistentry>
+ <term>map_url_pattern_format</term>
+ <listitem>
+ <simpara>Ce &LSformat; doit permettre de générer la valeur de l'adresse postale
+ qui sera insérée dans l'URL du lien ajouté dans l'interface.</simpara>
+ </listitem>
+</varlistentry>
+
+<varlistentry>
+ <term>map_url_format</term>
+ <listitem>
+ <simpara>Ce &LSformat; doit permettre de générer l'URL du lien ajouté dans
+ l'interface à partir de la valeur de l'adresse postale générée via le paramètre
+ <literal>map_url_pattern_format</literal>.</simpara>
+ </listitem>
+</varlistentry>
+
+</variablelist>
+
+</sect4>
&conf-LSattr_ldap_image;
&conf-LSattr_ldap_numeric;
&conf-LSattr_ldap_password;
+ &conf-LSattr_ldap_postaladdress;
</sect3>
<!ENTITY conf-LSattr_ldap_image SYSTEM "LSattr_ldap_image.docbook">
<!ENTITY conf-LSattr_ldap_numeric SYSTEM "LSattr_ldap_numeric.docbook">
<!ENTITY conf-LSattr_ldap_password SYSTEM "LSattr_ldap_password.docbook">
+<!ENTITY conf-LSattr_ldap_postaladdress SYSTEM "LSattr_ldap_postaladdress.docbook">
--- /dev/null
+<sect4 id="config-LSattr_ldap_postaladdress">
+ <title>LSattr_ldap_postaladdress</title>
+ <para>Ce type est utilisé pour la gestion des attributs dont la valeur est construite
+ sur le modèle de l'attribut standard <emphasis>postalAddress</emphasis>, c'est à dire
+ dont les lignes sont séparées à l'aide du caractère de délimiteur <literal>$</literal>.
+ </para>
+
+ <para>Lors de la lecture des valeurs de ce type d'attribut dans l'annuaire, les
+ caractères <literal>$</literal> seront remplacés par des caractères <literal>\n</literal>
+ et, à l'inverse, lors de l'écriture des valeurs de ce type d'attribut dans l'annuaire,
+ les caractères <literal>\n</literal> seront remplacés par des caractères
+ <literal>$</literal>.</para>
+
+</sect4>
+++ /dev/null
-<?php
-/*******************************************************************************
- * Copyright (C) 2007 Easter-eggs
- * http://ldapsaisie.labs.libre-entreprise.org
- *
- * Author: See AUTHORS file in top-level directory.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License version 2
- * as published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-
-******************************************************************************/
-
-/**
- * Type d'attribut Ldap postalAddress
- * RFC4519 : les retours a la ligne sont remplace par des '$'
- */
-class LSattr_ldap_postalAddress extends LSattr_ldap {
-
- /**
- * Retourne la valeur d'affichage de l'attribut après traitement lié à son type ldap
- *
- * @param[in] $data mixed La valeur de l'attribut
- *
- * @retval mixed La valeur d'affichage de l'attribut
- */
- function getDisplayValue($data) {
- return str_replace("$","\n",$data);
- }
-
- /**
- * Retourne la valeur de l'attribut après traitement lié à son type ldap
- *
- * @param[in] $data mixed La valeur de l'attribut
- *
- * @retval mixed La valeur traitée de l'attribut
- */
- function getUpdateData($data) {
- return str_replace("\n","$",$data);
- }
-}
-
-?>
--- /dev/null
+<?php
+/*******************************************************************************
+ * Copyright (C) 2007 Easter-eggs
+ * http://ldapsaisie.labs.libre-entreprise.org
+ *
+ * Author: See AUTHORS file in top-level directory.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License version 2
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+******************************************************************************/
+
+/**
+ * Type d'attribut Ldap postaladdress
+ * RFC4519 : les retours a la ligne sont remplace par des '$'
+ */
+class LSattr_ldap_postaladdress extends LSattr_ldap {
+
+ /**
+ * Retourne la valeur d'affichage de l'attribut après traitement lié à son type ldap
+ *
+ * @param[in] $data mixed La valeur de l'attribut
+ *
+ * @retval mixed La valeur d'affichage de l'attribut
+ */
+ function getDisplayValue($data) {
+ return str_replace("$","\n",$data);
+ }
+
+ /**
+ * Retourne la valeur de l'attribut après traitement lié à son type ldap
+ *
+ * @param[in] $data mixed La valeur de l'attribut
+ *
+ * @retval mixed La valeur traitée de l'attribut
+ */
+ function getUpdateData($data) {
+ return str_replace("\n","$",$data);
+ }
+}
+
+?>