cvs: pear /Net_LDAP/LDAP Search.php

From: Date: Fri, 24 Feb 2006 03:36:52 +0000
Subject: cvs: pear /Net_LDAP/LDAP Search.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-38543@lists.php.net to get a copy of this message
delatbabel Fri Feb 24 03:36:52 2006 UTC Modified files: /pear/Net_LDAP/LDAP Search.php Log: WHITESPACE CHANGES ONLY http://cvs.php.net/viewcvs.cgi/pear/Net_LDAP/LDAP/Search.php?r1=1.8&r2=1.9&diff_format=u Index: pear/Net_LDAP/LDAP/Search.php diff -u pear/Net_LDAP/LDAP/Search.php:1.8 pear/Net_LDAP/LDAP/Search.php:1.9 --- pear/Net_LDAP/LDAP/Search.php:1.8 Thu Oct 7 13:12:31 2004 +++ pear/Net_LDAP/LDAP/Search.php Fri Feb 24 03:36:52 2006 @@ -22,13 +22,13 @@ // | Authors: Tarjej Huse | // +--------------------------------------------------------------------------+ // -// $Id: Search.php,v 1.8 2004/10/07 13:12:31 jw Exp $ +// $Id: Search.php,v 1.9 2006/02/24 03:36:52 delatbabel Exp $ /** * Result set of an LDAP search * * @author Tarjei Huse - * @version $Revision: 1.8 $ + * @version $Revision: 1.9 $ * @package Net_LDAP */ class Net_LDAP_Search extends PEAR @@ -40,7 +40,7 @@ * @var resource */ var $_search; - + /** * LDAP resource link * @@ -58,7 +58,7 @@ * @var object Net_LDAP */ var $_ldap; - + /** * Result entry identifier * @@ -69,19 +69,19 @@ /** * The errorcode the search got - * - * Some errorcodes might be of interest, but might not be best handled as errors. + * + * Some errorcodes might be of interest, but might not be best handled as errors. * examples: 4 - LDAP_SIZELIMIT_EXCEEDED - indecates a huge search. * Incomplete results are returned. If you just want to check if there's anything in the search. * than this is a point to handle. * 32 - no such object - search here returns a count of 0. - * + * * @access private * @var int */ var $_errorCode = 0; // if not set - sucess! - - /** + + /** * Constructor * * @access protected @@ -91,16 +91,16 @@ function Net_LDAP_Search (&$search, &$ldap) { $this->PEAR('Net_LDAP_Error'); - + $this->setSearch($search); - + if (is_a($ldap, 'Net_LDAP')) { $this->_ldap = $ldap; $this->setLink($this->_ldap->getLink()); } else { - $this->setLink($ldap); + $this->setLink($ldap); } - + $this->_errorCode = @ldap_errno($link); } @@ -112,14 +112,14 @@ function entries() { $entries = array(); - + while ($entry = $this->shiftEntry()) { $entries[] = $entry; } - + return $entries; } - + /** * Get the next entry in the searchresult. * @@ -133,49 +133,49 @@ if (is_null($this->_entry)) { $this->_entry = @ldap_first_entry($this->_link, $this->_search); - $entry = new Net_LDAP_Entry(&$this->_entry, &$this->_ldap); + $entry = new Net_LDAP_Entry($this->_entry, $this->_ldap); } else { if (!$this->_entry = @ldap_next_entry($this->_link, $this->_entry)) { return false; } - $entry = new Net_LDAP_Entry(&$this->_entry, &$this->_ldap); + $entry = new Net_LDAP_Entry($this->_entry, $this->_ldap); } return $entry; } - + /** * alias function of shiftEntry() for perl-ldap interface - * + * * @see shiftEntry() */ - function shift_entry() + function shift_entry() { $args = func_get_args(); return call_user_func_array(array( &$this, 'shiftEntry' ), $args); } - + /** * Retrieve the last entry of the searchset. NOT IMPLEMENTED * * @return object Net_LDAP_Error */ - function pop_entry () + function pop_entry () { PEAR::raiseError("Not implemented"); } - + /** * Return entries sorted NOT IMPLEMENTED * * @param array Array of sort attributes * @return object Net_LDAP_Error */ - function sorted ($attrs = array()) + function sorted ($attrs = array()) { PEAR::raiseError("Not implemented"); } - - /** + + /** * Return entries as object NOT IMPLEMENTED * * @return object Net_LDAP_Error @@ -193,7 +193,7 @@ * @return void */ function setSearch(&$search) - { + { $this->_search = $search; } @@ -205,10 +205,10 @@ * @return void */ function setLink(&$link) - { + { $this->_link = $link; } - + /** * Returns the number of entries in the searchresult * @@ -232,17 +232,17 @@ { return $this->_errorCode; } - - /** Destructor + + /** Destructor * * @access protected */ - function _Net_LDAP_Search() + function _Net_LDAP_Search() { @ldap_free_result($this->_search); } - - /** + + /** * Closes search result */ function done()

« previous php.pear.cvs (#38543) next »