src/LdapTools/Query/LdapQuery.php
public function execute($hydratorType = HydratorFactory::TO_OBJECT)
    {
        if (is_string($this->operation->getFilter()) || empty($this->operation->getFilter()->getAliases())) {
            $results = $this->getResultsFromLdap(clone $this->operation, $hydratorType);
        } else {
            $results = $this->getResultsForAliases($hydratorType);
        }

        return $this->sortResults($results);
    }
public function execute($hydratorType = HydratorFactory::TO_OBJECT)
    {
        if (is_string($this->operation->getFilter()) || empty($this->operation->getFilter()->getAliases())) {
            $results = $this->getResultsFromLdap(clone $this->operation, $hydratorType);
        } else {
            $results = $this->getResultsForAliases($hydratorType);
        }

        return $this->sortResults($results);
    }
public function execute ( $ hydratorType = HydratorFactory :: TO_OBJECT ) { if ( is_string ( $ this -> operation -> getFilter ( ) ) || empty ( $ this -> operation -> getFilter ( ) -> getAliases ( ) ) ) { $ results = $ this -> getResultsFromLdap ( clone $ this -> operation , $ hydratorType ) ; } else { $ results = $ this -> getResultsForAliases ( $ hydratorType ) ; } return $ this -> sortResults ( $ results ) ; }
Execute a query based on the set parameters. Optionally choose a mode to hydrate the results in.

@param string $hydratorType A hyrdrator type constant from the factory.
@return mixed|\LdapTools\Object\LdapObject|\LdapTools\Object\LdapObjectCollection
Execute a query based on the set parameters . Optionally choose a mode to hydrate the results in .