web/lib/Zend/Ldap.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    13  * obtain it through the world-wide-web, please send an email
    13  * obtain it through the world-wide-web, please send an email
    14  * to license@zend.com so we can send you a copy immediately.
    14  * to license@zend.com so we can send you a copy immediately.
    15  *
    15  *
    16  * @category   Zend
    16  * @category   Zend
    17  * @package    Zend_Ldap
    17  * @package    Zend_Ldap
    18  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @version    $Id: Ldap.php 22996 2010-09-22 17:01:46Z sgehrig $
    20  * @version    $Id: Ldap.php 24593 2012-01-05 20:35:02Z matthew $
    21  */
    21  */
    22 
    22 
    23 /**
    23 /**
    24  * @category   Zend
    24  * @category   Zend
    25  * @package    Zend_Ldap
    25  * @package    Zend_Ldap
    26  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    26  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    27  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    28  */
    28  */
    29 class Zend_Ldap
    29 class Zend_Ldap
    30 {
    30 {
    31     const SEARCH_SCOPE_SUB  = 1;
    31     const SEARCH_SCOPE_SUB  = 1;
   920      * @param  string|Zend_Ldap_Dn|null               $basedn
   920      * @param  string|Zend_Ldap_Dn|null               $basedn
   921      * @param  integer                                $scope
   921      * @param  integer                                $scope
   922      * @param  array                                  $attributes
   922      * @param  array                                  $attributes
   923      * @param  string|null                            $sort
   923      * @param  string|null                            $sort
   924      * @param  string|null                            $collectionClass
   924      * @param  string|null                            $collectionClass
   925      * @param  integer                            	  $sizelimit
   925      * @param  integer                                  $sizelimit
   926      * @param  integer                            	  $timelimit
   926      * @param  integer                                  $timelimit
   927      * @return Zend_Ldap_Collection
   927      * @return Zend_Ldap_Collection
   928      * @throws Zend_Ldap_Exception
   928      * @throws Zend_Ldap_Exception
   929      */
   929      */
   930     public function search($filter, $basedn = null, $scope = self::SEARCH_SCOPE_SUB, array $attributes = array(),
   930     public function search($filter, $basedn = null, $scope = self::SEARCH_SCOPE_SUB, array $attributes = array(),
   931         $sort = null, $collectionClass = null, $sizelimit = 0, $timelimit = 0)
   931         $sort = null, $collectionClass = null, $sizelimit = 0, $timelimit = 0)
  1006     }
  1006     }
  1007 
  1007 
  1008     /**
  1008     /**
  1009      * Extension point for collection creation
  1009      * Extension point for collection creation
  1010      *
  1010      *
  1011      * @param  Zend_Ldap_Collection_Iterator_Default	$iterator
  1011      * @param  Zend_Ldap_Collection_Iterator_Default    $iterator
  1012      * @param  string|null								$collectionClass
  1012      * @param  string|null                                $collectionClass
  1013      * @return Zend_Ldap_Collection
  1013      * @return Zend_Ldap_Collection
  1014      * @throws Zend_Ldap_Exception
  1014      * @throws Zend_Ldap_Exception
  1015      */
  1015      */
  1016     protected function _createCollection(Zend_Ldap_Collection_Iterator_Default $iterator, $collectionClass)
  1016     protected function _createCollection(Zend_Ldap_Collection_Iterator_Default $iterator, $collectionClass)
  1017     {
  1017     {
  1105      * @param  string|Zend_Ldap_Dn|null               $basedn
  1105      * @param  string|Zend_Ldap_Dn|null               $basedn
  1106      * @param  integer                                $scope
  1106      * @param  integer                                $scope
  1107      * @param  array                                  $attributes
  1107      * @param  array                                  $attributes
  1108      * @param  string|null                            $sort
  1108      * @param  string|null                            $sort
  1109      * @param  boolean                                $reverseSort
  1109      * @param  boolean                                $reverseSort
  1110      * @param  integer                            	  $sizelimit
  1110      * @param  integer                                  $sizelimit
  1111      * @param  integer                            	  $timelimit
  1111      * @param  integer                                  $timelimit
  1112      * @return array
  1112      * @return array
  1113      * @throws Zend_Ldap_Exception
  1113      * @throws Zend_Ldap_Exception
  1114      */
  1114      */
  1115     public function searchEntries($filter, $basedn = null, $scope = self::SEARCH_SCOPE_SUB,
  1115     public function searchEntries($filter, $basedn = null, $scope = self::SEARCH_SCOPE_SUB,
  1116         array $attributes = array(), $sort = null, $reverseSort = false, $sizelimit = 0, $timelimit = 0)
  1116         array $attributes = array(), $sort = null, $reverseSort = false, $sizelimit = 0, $timelimit = 0)