private function search(AbstractFilter $filter)
    {
        if ($this->ldapSearchOptions) {
            $ldapResource = $this->ldap->getResource();
            foreach ($this->ldapSearchOptions as $name => $options) {
                ldap_set_option($ldapResource, $name, $options);
            }
        }

        return $this->ldap->searchEntries($filter, null, Ldap::SEARCH_SCOPE_SUB, $this->entryAttributesToFetch);
    }
private function search(AbstractFilter $filter)
    {
        if ($this->ldapSearchOptions) {
            $ldapResource = $this->ldap->getResource();
            foreach ($this->ldapSearchOptions as $name => $options) {
                ldap_set_option($ldapResource, $name, $options);
            }
        }

        return $this->ldap->searchEntries($filter, null, Ldap::SEARCH_SCOPE_SUB, $this->entryAttributesToFetch);
    }
private function search ( AbstractFilter $ filter ) { if ( $ this -> ldapSearchOptions ) { $ ldapResource = $ this -> ldap -> getResource ( ) ; foreach ( $ this -> ldapSearchOptions as $ name => $ options ) { ldap_set_option ( $ ldapResource , $ name , $ options ) ; } } return $ this -> ldap -> searchEntries ( $ filter , null , Ldap :: SEARCH_SCOPE_SUB , $ this -> entryAttributesToFetch ) ; }
Performs ldap search by filter

@param AbstractFilter $filter ldap filter

@return array list of fetched entries
Performs ldap search by filter