Added the zend framework 2 library, the path is specified in line no.26 in zend_modul...
[openemr.git] / interface / modules / zend_modules / library / Zend / Ldap / Node / Collection.php
blobf46eabbc0fc24a8a55c2370251eb3730cf00f34a
1 <?php
2 /**
3 * Zend Framework (http://framework.zend.com/)
5 * @link http://github.com/zendframework/zf2 for the canonical source repository
6 * @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
7 * @license http://framework.zend.com/license/new-bsd New BSD License
8 */
10 namespace Zend\Ldap\Node;
12 use Zend\Ldap;
14 /**
15 * Zend\Ldap\Node\Collection provides a collection of nodes.
17 class Collection extends Ldap\Collection
19 /**
20 * Creates the data structure for the given entry data
22 * @param array $data
23 * @return \Zend\Ldap\Node
25 protected function createEntry(array $data)
27 $node = Ldap\Node::fromArray($data, true);
28 $node->attachLDAP($this->iterator->getLDAP());
29 return $node;
32 /**
33 * Return the child key (DN).
34 * Implements Iterator and RecursiveIterator
36 * @return string
38 public function key()
40 return $this->iterator->key();