<?xml version="1.0" encoding="UTF-8"?>
<!-- EN-Revision: 24249 -->
<!-- Reviewed: no -->
<sect1 id="zend.ldap.tools">
    <title>Outils</title>

    <sect2 id="zend.ldap.tools.dn">
        <title>Création et modification de chaines DN</title>
        <para/>
    </sect2>

    <sect2 id="zend.ldap.tools.filter">
        <title>Utilisation de l'API des filtres pour créer des filtres de recherche</title>

        <example>
            <title>Création de filtres LDAP simples</title>

            <programlisting language="php"><![CDATA[
$f1  = Zend_Ldap_Filter::equals('name', 'value');         // (name=value)
$f2  = Zend_Ldap_Filter::begins('name', 'value');         // (name=value*)
$f3  = Zend_Ldap_Filter::ends('name', 'value');           // (name=*value)
$f4  = Zend_Ldap_Filter::contains('name', 'value');       // (name=*value*)
$f5  = Zend_Ldap_Filter::greater('name', 'value');        // (name>value)
$f6  = Zend_Ldap_Filter::greaterOrEqual('name', 'value'); // (name>=value)
$f7  = Zend_Ldap_Filter::less('name', 'value');           // (name<value)
$f8  = Zend_Ldap_Filter::lessOrEqual('name', 'value');    // (name<=value)
$f9  = Zend_Ldap_Filter::approx('name', 'value');         // (name~=value)
$f10 = Zend_Ldap_Filter::any('name');                     // (name=*)
]]></programlisting>
        </example>

        <example>
            <title>Création de filtres LDAP plus complexes</title>

            <programlisting language="php"><![CDATA[
$f1 = Zend_Ldap_Filter::ends('name', 'value')->negate(); // (!(name=*value))

$f2 = Zend_Ldap_Filter::equals('name', 'value');
$f3 = Zend_Ldap_Filter::begins('name', 'value');
$f4 = Zend_Ldap_Filter::ends('name', 'value');

// (&(name=value)(name=value*)(name=*value))
$f5 = Zend_Ldap_Filter::andFilter($f2, $f3, $f4);

// (|(name=value)(name=value*)(name=*value))
$f6 = Zend_Ldap_Filter::orFilter($f2, $f3, $f4);
]]></programlisting>
        </example>
    </sect2>

    <sect2 id="zend.ldap.tools.attribute">
        <title>Modifier les entrées LDAP en utilisant l'API Attribute</title>
        <para/>
    </sect2>
</sect1>
