forked from zendframework/zendframework
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Renamed directories and filenames from LDAP to Ldap - Renamed namespaces and classnames from LDAP to Ldap - Renamed LDIF -> Ldif - Renamed RootDSE -> RootDse - Renamed DN -> Dn - Renamed OpenLDAP -> OpenLdap
- Loading branch information
1 parent
228b607
commit 057d695
Showing
66 changed files
with
1,303 additions
and
1,303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @version $Id$ | ||
|
@@ -22,13 +22,13 @@ | |
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\LDAP; | ||
namespace Zend\Ldap; | ||
|
||
/** | ||
* Zend_LDAP_Attribute is a collection of LDAP attribute related functions. | ||
* Zend_Ldap_Attribute is a collection of LDAP attribute related functions. | ||
* | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @version $Id$ | ||
|
@@ -22,15 +22,15 @@ | |
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\LDAP; | ||
namespace Zend\Ldap; | ||
|
||
/** | ||
* Zend_LDAP_Collection wraps a list of LDAP entries. | ||
* Zend_Ldap_Collection wraps a list of LDAP entries. | ||
* | ||
* @uses Countable | ||
* @uses Iterator | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
@@ -39,7 +39,7 @@ class Collection implements \Iterator, \Countable | |
/** | ||
* Iterator | ||
* | ||
* @var \Zend\LDAP\Collection\DefaultIterator | ||
* @var \Zend\Ldap\Collection\DefaultIterator | ||
*/ | ||
protected $_iterator = null; | ||
|
||
|
@@ -60,7 +60,7 @@ class Collection implements \Iterator, \Countable | |
/** | ||
* Constructor. | ||
* | ||
* @param \Zend\LDAP\Collection\DefaultIterator $iterator | ||
* @param \Zend\Ldap\Collection\DefaultIterator $iterator | ||
*/ | ||
public function __construct(Collection\DefaultIterator $iterator) | ||
{ | ||
|
@@ -114,7 +114,7 @@ public function getFirst() | |
/** | ||
* Returns the underlying iterator | ||
* | ||
* @return \Zend\LDAP\Collection\DefaultIterator | ||
* @return \Zend\Ldap\Collection\DefaultIterator | ||
*/ | ||
public function getInnerIterator() | ||
{ | ||
|
@@ -137,7 +137,7 @@ public function count() | |
* Implements Iterator | ||
* | ||
* @return array|null | ||
* @throws \Zend\LDAP\Exception | ||
* @throws \Zend\Ldap\Exception | ||
*/ | ||
public function current() | ||
{ | ||
|
@@ -208,7 +208,7 @@ public function key() | |
* Move forward to next result item | ||
* Implements Iterator | ||
* | ||
* @throws \Zend\LDAP\Exception | ||
* @throws \Zend\Ldap\Exception | ||
*/ | ||
public function next() | ||
{ | ||
|
@@ -220,7 +220,7 @@ public function next() | |
* Rewind the Iterator to the first result item | ||
* Implements Iterator | ||
* | ||
* @throws \Zend\LDAP\Exception | ||
* @throws \Zend\Ldap\Exception | ||
*/ | ||
public function rewind() | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @version $Id$ | ||
|
@@ -22,18 +22,18 @@ | |
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\LDAP\Collection; | ||
use Zend\LDAP; | ||
namespace Zend\Ldap\Collection; | ||
use Zend\Ldap; | ||
|
||
/** | ||
* Zend_LDAP_Collection_Iterator_Default is the default collection iterator implementation | ||
* Zend_Ldap_Collection_Iterator_Default is the default collection iterator implementation | ||
* using ext/ldap | ||
* | ||
* @uses Countable | ||
* @uses Iterator | ||
* @uses \Zend\LDAP\Exception | ||
* @uses \Zend\Ldap\Exception | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
@@ -46,7 +46,7 @@ class DefaultIterator implements \Iterator, \Countable | |
/** | ||
* LDAP Connection | ||
* | ||
* @var \Zend\LDAP\LDAP | ||
* @var \Zend\Ldap\Ldap | ||
*/ | ||
protected $_ldap = null; | ||
|
||
|
@@ -81,17 +81,17 @@ class DefaultIterator implements \Iterator, \Countable | |
/** | ||
* Constructor. | ||
* | ||
* @param \Zend\LDAP\LDAP $ldap | ||
* @param \Zend\Ldap\Ldap $ldap | ||
* @param resource $resultId | ||
* @return void | ||
*/ | ||
public function __construct(LDAP\LDAP $ldap, $resultId) | ||
public function __construct(Ldap\Ldap $ldap, $resultId) | ||
{ | ||
$this->_ldap = $ldap; | ||
$this->_resultId = $resultId; | ||
$this->_itemCount = @ldap_count_entries($ldap->getResource(), $resultId); | ||
if ($this->_itemCount === false) { | ||
throw new LDAP\Exception($this->_ldap, 'counting entries'); | ||
throw new Ldap\Exception($this->_ldap, 'counting entries'); | ||
} | ||
} | ||
|
||
|
@@ -119,7 +119,7 @@ public function close() | |
/** | ||
* Gets the current LDAP connection. | ||
* | ||
* @return \Zend\LDAP\LDAP | ||
* @return \Zend\Ldap\Ldap | ||
*/ | ||
public function getLDAP() | ||
{ | ||
|
@@ -130,14 +130,14 @@ public function getLDAP() | |
* Sets the attribute name treatment. | ||
* | ||
* Can either be one of the following constants | ||
* - Zend_LDAP_Collection_Iterator_Default::ATTRIBUTE_TO_LOWER | ||
* - Zend_LDAP_Collection_Iterator_Default::ATTRIBUTE_TO_UPPER | ||
* - Zend_LDAP_Collection_Iterator_Default::ATTRIBUTE_NATIVE | ||
* - Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_TO_LOWER | ||
* - Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_TO_UPPER | ||
* - Zend_Ldap_Collection_Iterator_Default::ATTRIBUTE_NATIVE | ||
* or a valid callback accepting the attribute's name as it's only | ||
* argument and returning the new attribute's name. | ||
* | ||
* @param integer|callback $attributeNameTreatment | ||
* @return \Zend\LDAP\Collection\DefaultIterator Provides a fluent interface | ||
* @return \Zend\Ldap\Collection\DefaultIterator Provides a fluent interface | ||
*/ | ||
public function setAttributeNameTreatment($attributeNameTreatment) | ||
{ | ||
|
@@ -192,7 +192,7 @@ public function count() | |
* Implements Iterator | ||
* | ||
* @return array|null | ||
* @throws \Zend\LDAP\Exception | ||
* @throws \Zend\Ldap\Exception | ||
*/ | ||
public function current() | ||
{ | ||
|
@@ -247,7 +247,7 @@ public function key() | |
if (is_resource($this->_current)) { | ||
$currentDn = @ldap_get_dn($this->_ldap->getResource(), $this->_current); | ||
if ($currentDn === false) { | ||
throw new LDAP\Exception($this->_ldap, 'getting dn'); | ||
throw new Ldap\Exception($this->_ldap, 'getting dn'); | ||
} | ||
return $currentDn; | ||
} else { | ||
|
@@ -259,19 +259,19 @@ public function key() | |
* Move forward to next result item | ||
* Implements Iterator | ||
* | ||
* @throws \Zend\LDAP\Exception | ||
* @throws \Zend\Ldap\Exception | ||
*/ | ||
public function next() | ||
{ | ||
if (is_resource($this->_current)) { | ||
$this->_current = @ldap_next_entry($this->_ldap->getResource(), $this->_current); | ||
if ($this->_current === false) { | ||
$msg = $this->_ldap->getLastError($code); | ||
if ($code === LDAP\Exception::LDAP_SIZELIMIT_EXCEEDED) { | ||
if ($code === Ldap\Exception::LDAP_SIZELIMIT_EXCEEDED) { | ||
// we have reached the size limit enforced by the server | ||
return; | ||
} else if ($code > LDAP\Exception::LDAP_SUCCESS) { | ||
throw new LDAP\Exception($this->_ldap, 'getting next entry (' . $msg . ')'); | ||
} else if ($code > Ldap\Exception::LDAP_SUCCESS) { | ||
throw new Ldap\Exception($this->_ldap, 'getting next entry (' . $msg . ')'); | ||
} | ||
} | ||
} | ||
|
@@ -281,15 +281,15 @@ public function next() | |
* Rewind the Iterator to the first result item | ||
* Implements Iterator | ||
* | ||
* @throws \Zend\LDAP\Exception | ||
* @throws \Zend\Ldap\Exception | ||
*/ | ||
public function rewind() | ||
{ | ||
if (is_resource($this->_resultId)) { | ||
$this->_current = @ldap_first_entry($this->_ldap->getResource(), $this->_resultId); | ||
if ($this->_current === false && | ||
$this->_ldap->getLastErrorCode() > LDAP\Exception::LDAP_SUCCESS) { | ||
throw new LDAP\Exception($this->_ldap, 'getting first entry'); | ||
$this->_ldap->getLastErrorCode() > Ldap\Exception::LDAP_SUCCESS) { | ||
throw new Ldap\Exception($this->_ldap, 'getting first entry'); | ||
} | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
* to [email protected] so we can send you a copy immediately. | ||
* | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @version $Id$ | ||
|
@@ -22,13 +22,13 @@ | |
/** | ||
* @namespace | ||
*/ | ||
namespace Zend\LDAP; | ||
namespace Zend\Ldap; | ||
|
||
/** | ||
* Zend_LDAP_Converter is a collection of useful LDAP related conversion functions. | ||
* Zend_Ldap_Converter is a collection of useful LDAP related conversion functions. | ||
* | ||
* @category Zend | ||
* @package Zend_LDAP | ||
* @package Zend_Ldap | ||
* @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
*/ | ||
|
Oops, something went wrong.