[prev in list] [next in list] [prev in thread] [next in thread]
List: pear-cvs
Subject: [PEAR-CVS] cvs: pear /Net_LDAP2 package2.xml /Net_LDAP2/LDAP2 Entry.php
From: "Benedikt Hallinger" <beni () php ! net>
Date: 2008-05-29 12:23:37
Message-ID: cvsbeni1212063817 () cvsserver
[Download RAW message or body]
beni Thu May 29 12:23:37 2008 UTC
Modified files:
/pear/Net_LDAP2 package2.xml
/pear/Net_LDAP2/LDAP2 Entry.php
Log:
* New method Entry->isNew() to be able to tell if an entry is considered as new
http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/package2.xml?r1=1.10&r2=1.11&diff_format=u
Index: pear/Net_LDAP2/package2.xml
diff -u pear/Net_LDAP2/package2.xml:1.10 pear/Net_LDAP2/package2.xml:1.11
--- pear/Net_LDAP2/package2.xml:1.10 Mon Apr 21 05:37:01 2008
+++ pear/Net_LDAP2/package2.xml Thu May 29 12:23:37 2008
@@ -36,8 +36,9 @@
</stability>
<license>LGPL License</license>
<notes>
- * new constructor factory for Entry objects: createExisting()
+ * New constructor factory for Entry objects: createExisting()
* Some small bugfixes
+ * New method Entry->isNew()
</notes>
<contents>
http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Entry.php?r1=1.3&r2=1.4&diff_format=u
Index: pear/Net_LDAP2/LDAP2/Entry.php
diff -u pear/Net_LDAP2/LDAP2/Entry.php:1.3 pear/Net_LDAP2/LDAP2/Entry.php:1.4
--- pear/Net_LDAP2/LDAP2/Entry.php:1.3 Tue Apr 8 07:41:36 2008
+++ pear/Net_LDAP2/LDAP2/Entry.php Thu May 29 12:23:37 2008
@@ -15,7 +15,7 @@
* @author Jan Wagner <wagner@netsols.de>
* @author Tarjej Huse <tarjei@bergfald.no>
* @license http://www.gnu.org/copyleft/lesser.html LGPL
-* @version CVS: $Id: Entry.php,v 1.3 2008/04/08 07:41:36 beni Exp $
+* @version CVS: $Id: Entry.php,v 1.4 2008/05/29 12:23:37 beni Exp $
* @link http://pear.php.net/package/Net_LDAP22/
*/
@@ -938,6 +938,20 @@
}
/**
+ * Tells if the entry is consiedered as new (not present in the server)
+ *
+ * Please note, that this doesn't tell you if the entry is present on the server.
+ * Use {@link Net_LDAP2::dnExists()} to see if an entry is already there.
+ *
+ * @return boolean
+ */
+ public function isNew()
+ {
+ return $this->_new;
+ }
+
+
+ /**
* Is this entry going to be deleted once update() is called?
*
* @return boolean
--
PEAR CVS Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic