cvs: pear /Net_LDAP2/LDAP2 Search.php
| From: | Benedikt Hallinger | Date: | Thu, 30 Apr 2009 08:11:35 +0000 |
| Subject: | cvs: pear /Net_LDAP2/LDAP2 Search.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-56013@lists.php.net to get a copy of this message | ||
beni Thu Apr 30 08:11:35 2009 UTC
Modified files:
/pear/Net_LDAP2/LDAP2 Search.php
Log:
* phpcs
http://cvs.php.net/viewvc.cgi/pear/Net_LDAP2/LDAP2/Search.php?r1=1.4&r2=1.5&diff_format=u
Index: pear/Net_LDAP2/LDAP2/Search.php
diff -u pear/Net_LDAP2/LDAP2/Search.php:1.4 pear/Net_LDAP2/LDAP2/Search.php:1.5
--- pear/Net_LDAP2/LDAP2/Search.php:1.4 Thu Apr 30 07:36:21 2009
+++ pear/Net_LDAP2/LDAP2/Search.php Thu Apr 30 08:11:35 2009
@@ -11,7 +11,7 @@
* @author Benedikt Hallinger <beni@php.net>
* @copyright 2009 Tarjej Huse, Benedikt Hallinger
* @license http://www.gnu.org/copyleft/lesser.html LGPL
-* @version CVS $Id: Search.php,v 1.4 2009/04/30 07:36:21 beni Exp $
+* @version CVS $Id: Search.php,v 1.5 2009/04/30 08:11:35 beni Exp $
* @link http://pear.php.net/package/Net_LDAP2/
*/
@@ -93,10 +93,10 @@
*
* The $attributes array contains the names of the searched attributes and gets
* passed from $Net_LDAP2->search() so the Net_LDAP2_Search object can tell
- * what attributes was searched for ({@link _searchedAttrs())
+ * what attributes was searched for ({@link searchedAttrs())
*
* This variable gets set from the constructor and returned
- * from {@link _searchedAttrs()}
+ * from {@link searchedAttrs()}
*
* @access protected
* @var array
@@ -116,9 +116,9 @@
/**
* Constructor
*
- * @param resource &$search Search result identifier
+ * @param resource &$search Search result identifier
* @param Net_LDAP2|resource &$ldap Net_LDAP2 object or just a LDAP-Link resource
- * @param array $attributes (optional) Array with searched attribute names. (see
{@link $_searchedAttrs})
+ * @param array $attributes (optional) Array with searched attribute names. (see
{@link $_searchedAttrs})
*
* @access public
*/
@@ -193,6 +193,7 @@
* Alias function of shiftEntry() for perl-ldap interface
*
* @see shiftEntry()
+ * @return Net_LDAP2_Entry|false
*/
public function shift_entry()
{
@@ -223,6 +224,7 @@
* Alias function of popEntry() for perl-ldap interface
*
* @see popEntry()
+ * @return Net_LDAP2_Entry|false
*/
public function pop_entry()
{
@@ -366,7 +368,7 @@
return $sorted;
}
foreach ($sorted as $key => $row) {
- $entry = $this->_ldap->getEntry($row['dn'],
$this->_searchedAttrs());
+ $entry = $this->_ldap->getEntry($row['dn'], $this->searchedAttrs());
if (!PEAR::isError($entry)) {
array_push($return, $entry);
} else {
@@ -499,7 +501,7 @@
* @see $_searchedAttrs
* @access protected
*/
- public function _searchedAttrs()
+ protected function searchedAttrs()
{
return $this->_searchedAttrs;
}