Source of file Collection.php
Size: 1,001 Bytes - Last Modified: 2014-03-12T23:21:18+01:00
/home/theseer/Downloads/ZendFramework-2.3.0/library/Zend/Ldap/Node/Collection.php
12345678910111213141516171819202122232425262728293031323334353637383940414243 | <?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ namespace Zend\Ldap\Node; use Zend\Ldap; /** * Zend\Ldap\Node\Collection provides a collection of nodes. */ class Collection extends Ldap\Collection { /** * Creates the data structure for the given entry data * * @param array $data * @return \Zend\Ldap\Node */ protected function createEntry(array $data) { $node = Ldap\Node::fromArray($data, true); $node->attachLDAP($this->iterator->getLDAP()); return $node; } /** * Return the child key (DN). * Implements Iterator and RecursiveIterator * * @return string */ public function key() { return $this->iterator->key(); } } |