cvs: pear /Net_LDAP2/LDAP2 Schema.php /Net_LDAP2/tests Net_LDAP2Test.php

[email protected] ("Benedikt Hallinger")
Newsgroups php.pear.cvs
Message-ID <cvsbeni1208757155@cvsserver>
beni		Mon Apr 21 05:52:35 2008 UTC

  Modified files:              
    /pear/Net_LDAP2/LDAP2	Schema.php 
    /pear/Net_LDAP2/tests	Net_LDAP2Test.php 
  Log:
  * Adjustet unittest for version
  * Added a comment for an idea for schema handling.
  
  
http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Schema.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/Net_LDAP2/LDAP2/Schema.php
diff -u pear/Net_LDAP2/LDAP2/Schema.php:1.3 pear/Net_LDAP2/LDAP2/Schema.php:1.4
--- pear/Net_LDAP2/LDAP2/Schema.php:1.3	Mon Apr 21 05:37:01 2008
+++ pear/Net_LDAP2/LDAP2/Schema.php	Mon Apr 21 05:52:35 2008
@@ -31,7 +31,7 @@
 * @author   Jan Wagner <[email protected]>
 * @author   Benedikt Hallinger <[email protected]>
 * @license  http://www.gnu.org/copyleft/lesser.html LGPL
-* @version  CVS: $Id: Schema.php,v 1.3 2008/04/21 05:37:01 beni Exp $
+* @version  CVS: $Id: Schema.php,v 1.4 2008/04/21 05:52:35 beni Exp $
 * @link     http://pear.php.net/package/Net_LDAP22/
 */
 class Net_LDAP2_Schema extends PEAR
@@ -478,5 +478,10 @@
             return $return;
         }
     }
+
+    // [TODO] add method that allows us to see to which objectclasses a certain attribute belongs to
+    // it should return the result structured, e.g. sorted in "may" and "must". Optionally ot should
+    // be able to return it just "flat", e.g. array_merge()d.
+    // We could use get_all() to achieve this easily, i think
 }
 ?>
\ No newline at end of file
http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/tests/Net_LDAP2Test.php?r1=1.1&r2=1.2&diff_format=u
Index: pear/Net_LDAP2/tests/Net_LDAP2Test.php
diff -u pear/Net_LDAP2/tests/Net_LDAP2Test.php:1.1 pear/Net_LDAP2/tests/Net_LDAP2Test.php:1.2
--- pear/Net_LDAP2/tests/Net_LDAP2Test.php:1.1	Tue Mar 18 16:10:12 2008
+++ pear/Net_LDAP2/tests/Net_LDAP2Test.php	Mon Apr 21 05:52:35 2008
@@ -127,7 +127,7 @@
      * Tests if getVersion() works correctly
      */
     public function testGetVersion() {
-            $this->assertTrue(defined('NET_LDAP_VERSION'));
+            $this->assertTrue(defined('NET_LDAP2_VERSION'));
             $this->assertEquals(NET_LDAP_VERSION, Net_LDAP2::getVersion());
     }
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.