cvs: peardoc /en/package/networking net-ldap.xml /en/package/networking/net-ldap attributes.xml fetching.xml filter.xml

[email protected] ("Benedikt Hallinger")
Newsgroups php.pear.doc
Message-ID <cvsbeni1243498316@cvsserver>
beni		Thu May 28 08:11:56 2009 UTC

  Modified files:              
    /peardoc/en/package/networking	net-ldap.xml 
    /peardoc/en/package/networking/net-ldap	attributes.xml fetching.xml 
                                           	filter.xml 
  Log:
  * Adjusted doc because of Net_LDAP2 release
  
  
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ldap.xml?r1=1.13&r2=1.14&diff_format=u
Index: peardoc/en/package/networking/net-ldap.xml
diff -u peardoc/en/package/networking/net-ldap.xml:1.13 peardoc/en/package/networking/net-ldap.xml:1.14
--- peardoc/en/package/networking/net-ldap.xml:1.13	Thu Oct  9 22:35:26 2008
+++ peardoc/en/package/networking/net-ldap.xml	Thu May 28 08:11:56 2009
@@ -10,6 +10,10 @@
     <para>
         Detailed usage examples are available at: <literal>/your/pear/path/docs/Net_LDAP/examples/</literal>
     </para>
+    <para>
+        Please note, that as of 2009-05-28 Net_LDAP2 has become stable. Please use
+        <xlink href="&url.pear.package;Net_LDAP2">Net_LDAP2</xlink> instead.
+    </para>
   </abstract>
  </info>
 
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ldap/attributes.xml?r1=1.7&r2=1.8&diff_format=u
Index: peardoc/en/package/networking/net-ldap/attributes.xml
diff -u peardoc/en/package/networking/net-ldap/attributes.xml:1.7 peardoc/en/package/networking/net-ldap/attributes.xml:1.8
--- peardoc/en/package/networking/net-ldap/attributes.xml:1.7	Thu Oct 16 10:48:45 2008
+++ peardoc/en/package/networking/net-ldap/attributes.xml	Thu May 28 08:11:56 2009
@@ -223,7 +223,7 @@
 // existing entry with all changes already applied (the local copy).
 // It is important, that at fetching time of $entry all attributes where selected!
 // Only the selected attributes will get copied.
-$changed_entry = Net_LDAP2_Entry::createFresh($entry->dn(), $entry->getValues());
+$changed_entry = Net_LDAP_Entry::createFresh($entry->dn(), $entry->getValues());
 
 // Now delete the old entry and add the new one:
 $ldap->delete($entry);
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ldap/fetching.xml?r1=1.9&r2=1.10&diff_format=u
Index: peardoc/en/package/networking/net-ldap/fetching.xml
diff -u peardoc/en/package/networking/net-ldap/fetching.xml:1.9 peardoc/en/package/networking/net-ldap/fetching.xml:1.10
--- peardoc/en/package/networking/net-ldap/fetching.xml:1.9	Thu Oct  9 15:16:43 2008
+++ peardoc/en/package/networking/net-ldap/fetching.xml	Thu May 28 08:11:56 2009
@@ -148,27 +148,4 @@
 
     </refsection>
 
-    <refsection><info><title>Retrieving entries via iteration (foreach)</title></info>
-        
-
-        <para>
-        Since Net_LDAP2 you are able to use PHPs Standard Library (SPL) to iterate over
-        search results. This is done easily by just using the <classname>Net_LDAP_Search</classname>
-        search result object inside an foreach loop similar to an array.
-        You may optionally retrieve the DN of each entry by the same mechanism you use to
-        retrieve the key of an associative array.
-        </para>
-
-        <example><info><title>Fetching entries via foreach()</title></info>
-        
-        <programlisting role="php"><![CDATA[
-foreach ($search as $dn => $entry) {
-    // do something:
-    $sn = $entry->getValue('sn', 'single');
-    echo "Fetched DN: $dn; Surname: $sn";
-}
-]]></programlisting>
-        </example>
-
-    </refsection>
 </refentry>
http://cvs.php.net/viewvc.cgi/peardoc/en/package/networking/net-ldap/filter.xml?r1=1.5&r2=1.6&diff_format=u
Index: peardoc/en/package/networking/net-ldap/filter.xml
diff -u peardoc/en/package/networking/net-ldap/filter.xml:1.5 peardoc/en/package/networking/net-ldap/filter.xml:1.6
--- peardoc/en/package/networking/net-ldap/filter.xml:1.5	Thu Oct  9 15:16:43 2008
+++ peardoc/en/package/networking/net-ldap/filter.xml	Thu May 28 08:11:56 2009
@@ -122,9 +122,9 @@
                 In this case, you need to pass <literal>FALSE</literal> as fourth parameter to <function>create</function>
                 which causes <literal>value</literal> to be threaten as-is. This of course also means, that you need to
                 escape the parts of the value that may contain restricted characters yourself using
-                <classname>Net_LDAP2_Util::</classname><function>escape_filter_value</function>. To learn what characters
+                <classname>Net_LDAP_Util::</classname><function>escape_filter_value</function>. To learn what characters
                 are restricted, refer to <link xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="http://www.ietf.org/rfc/rfc2254.txt">RFC 2254</link> or the documentation of
-                <classname>Net_LDAP2_Util::</classname><function>escape_filter_value</function>; otherwise its safe to always escape.
+                <classname>Net_LDAP_Util::</classname><function>escape_filter_value</function>; otherwise its safe to always escape.
             </para>
             <para>
                 The matching rules partly follow the basic filter matching rules described above, but are enhanced to
@@ -170,7 +170,7 @@
 // For this to work, we need to disable automatic escaping of $value by passing
 // false as fourth parameter. This however implies, that we take care of
 // proper escaping, which is showed in the example.
-$escaped_values = Net_LDAP2_Util::escape_filter_value(array('Foo', 'Bar'));
+$escaped_values = Net_LDAP_Util::escape_filter_value(array('Foo', 'Bar'));
 $foo =& $escaped_values[0];
 $bar =& $escaped_values[1];
 $filter = Net_LDAP_Filter::create('givenName', 'contains', "$foo*$bar", false);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.