mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-26 11:52:59 +01:00
Add documentation about LSformRule :: callable
This commit is contained in:
parent
bf5fcf3244
commit
e0641191b7
3 changed files with 26 additions and 0 deletions
|
@ -45,6 +45,7 @@ règles.</para>
|
||||||
</variablelist>
|
</variablelist>
|
||||||
|
|
||||||
&conf-LSattribute-check-data-alphanumeric;
|
&conf-LSattribute-check-data-alphanumeric;
|
||||||
|
&conf-LSattribute-check-data-callable;
|
||||||
&conf-LSattribute-check-data-date;
|
&conf-LSattribute-check-data-date;
|
||||||
&conf-LSattribute-check-data-email;
|
&conf-LSattribute-check-data-email;
|
||||||
&conf-LSattribute-check-data-filesize;
|
&conf-LSattribute-check-data-filesize;
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<!ENTITY conf-LSattribute-check-data-alphanumeric SYSTEM "alphanumeric.docbook">
|
<!ENTITY conf-LSattribute-check-data-alphanumeric SYSTEM "alphanumeric.docbook">
|
||||||
|
<!ENTITY conf-LSattribute-check-data-callable SYSTEM "callable.docbook">
|
||||||
<!ENTITY conf-LSattribute-check-data-date SYSTEM "date.docbook">
|
<!ENTITY conf-LSattribute-check-data-date SYSTEM "date.docbook">
|
||||||
<!ENTITY conf-LSattribute-check-data-email SYSTEM "email.docbook">
|
<!ENTITY conf-LSattribute-check-data-email SYSTEM "email.docbook">
|
||||||
<!ENTITY conf-LSattribute-check-data-filesize SYSTEM "filesize.docbook">
|
<!ENTITY conf-LSattribute-check-data-filesize SYSTEM "filesize.docbook">
|
||||||
|
|
24
doc/conf/LSattribute/check_data/callable.docbook
Normal file
24
doc/conf/LSattribute/check_data/callable.docbook
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
<sect4 id="config-LSattribute-check-data-callable">
|
||||||
|
<title>callable</title>
|
||||||
|
<para>Cette règle vérifie que la valeur saisie est correcte en utilisant une
|
||||||
|
fonction personnalisée. Cette fonction devra prendre en paramètres la valeur à
|
||||||
|
valider, le tableau des paramètres de la règle ainsi qu'un pointeur sur l'objet
|
||||||
|
<emphasis>LSformElement</emphasis>. Sur la base de ses informations, elle devra
|
||||||
|
valider la valeur et retourner <literal>True</literal> si la valeur est valide
|
||||||
|
et <literal>False</literal> sinon.</para>
|
||||||
|
|
||||||
|
<variablelist>
|
||||||
|
<title>Paramètres de configuration</title>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term>callable</term>
|
||||||
|
<listitem>
|
||||||
|
<simpara>Le nom de la fonction (ou tout autre <literal>callable</literal> au sens PHP)
|
||||||
|
de validation.</simpara>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
|
||||||
|
</variablelist>
|
||||||
|
|
||||||
|
</sect4>
|
Loading…
Reference in a new issue