src/Classes/AbstractAdldapQueryable.php
public function all($fields = [], $sorted = true, $sortBy = 'cn', $sortByDirection = 'asc')
    {
        $search = $this->adldap->search()
            ->select($fields)
            ->where('objectClass', '=', $this->objectClass);

        if ($sorted) {
            $search->sortBy($sortBy, $sortByDirection);
        }

        return $search->get();
    }
public function all($fields = [], $sorted = true, $sortBy = 'cn', $sortByDirection = 'asc')
    {
        $search = $this->adldap->search()
            ->select($fields)
            ->where('objectClass', '=', $this->objectClass);

        if ($sorted) {
            $search->sortBy($sortBy, $sortByDirection);
        }

        return $search->get();
    }
public function all ( $ fields = [ ] , $ sorted = true , $ sortBy = 'cn' , $ sortByDirection = 'asc' ) { $ search = $ this -> adldap -> search ( ) -> select ( $ fields ) -> where ( 'objectClass' , '=' , $ this -> objectClass ) ; if ( $ sorted ) { $ search -> sortBy ( $ sortBy , $ sortByDirection ) ; } return $ search -> get ( ) ; }
Returns all entries with the current object class.

@param array  $fields
@param bool   $sorted
@param string $sortBy
@param string $sortByDirection

@return array|bool
Returns all entries with the current object class .