/**
  * Get a search entry by resource
  *
  * @param   int offset
  * @return  peer.ldap.LDAPEntry or FALSE if none exists by this offset
  * @throws  peer.ldap.LDAPException in case of a read error
  */
 public function getEntry($offset)
 {
     if (!$this->entries) {
         $this->entries = ldap_get_entries($this->_hdl, $this->_res);
         if (!is_array($this->entries)) {
             throw new LDAPException('Could not read result entries.', ldap_errno($this->_hdl));
         }
     }
     if (!isset($this->entries[$offset])) {
         return FALSE;
     }
     return LDAPEntry::fromData($this->entries[$offset]);
 }