Method |
Description |
|
__call ( string $method, array $parameters ) : mixed |
Handle dynamic method calls on the query builder
object to be directed to the query processor. |
|
__construct ( Adldap\Connections\ConnectionInterface $connection, Grammar $grammar, Adldap\Schemas\SchemaInterface $schema = null ) |
Constructor. |
|
addBinding ( Adldap\Query\Bindings\AbstractBinding $value, string $type = 'where' ) : Builder |
Adds a binding to the current query. |
|
clearBindings ( ) : Builder |
Clears all query bindings. |
|
dynamicWhere ( string $method, string $parameters ) |
Handles dynamic "where" clauses to the query. |
|
find ( string $anr, array | string $columns = [] ) : mixed |
Finds a record using ambiguous name resolution. |
|
findBaseDn ( ) : string | boolean |
Finds the Base DN of your domain controller. |
|
findBy ( string $attribute, string $value, array | string $columns = [] ) : mixed |
Finds a record by the specified attribute and value. |
|
findByDn ( string | array $dn, array | string $columns = [] ) : boolean | Model |
Finds a record by its distinguished name. |
|
findByDnOrFail ( string $dn, array | string $columns = [] ) : Model |
Finds a record by its distinguished name. |
|
findByOrFail ( string $attribute, string $value, array | string $columns = [] ) : mixed |
Finds a record by the specified attribute and value. |
|
findBySid ( string $sid, array | string $columns = [] ) : mixed |
Finds a record by its Object SID. |
|
findMany ( array $anrs = [], array $columns = [] ) : mixed |
Finds multiple records using ambiguous name resolution. |
|
findManyBy ( string $attribute, array $values = [], array $columns = [] ) : mixed |
Finds many records by the specified attribute. |
|
findOrFail ( string $anr, array | string $columns = [] ) : mixed |
Finds a record using ambiguous name resolution. If a record
is not found, an exception is thrown. |
|
first ( array | string $columns = [] ) : Model | array | null |
Returns the first entry in a search result. |
|
firstOrFail ( array | string $columns = [] ) : Model |
Returns the first entry in a search result. |
|
get ( ) : Collection | array |
Returns the current query. |
|
getBindings ( ) : array |
Returns all of the query builder bindings. |
|
getConnection ( ) : Adldap\Connections\ConnectionInterface |
Returns the current Connection instance. |
|
getDn ( ) : string |
Returns the builders DN to perform searches upon. |
|
getFilters ( ) : array |
Returns the filters on the current builder. |
|
getGrammar ( ) : Grammar |
Returns the current Grammar instance. |
|
getOrWheres ( ) : array |
Returns the or wheres on the current builder. |
|
getQuery ( ) : string |
Compiles and returns the current query string. |
|
getSchema ( ) : Adldap\Schemas\SchemaInterface |
Returns the current schema. |
|
getSelects ( ) : array |
Returns the current selected fields to retrieve. |
|
getSortByDirection ( ) : string |
Returns the query builders sort by direction. |
|
getSortByField ( ) : string |
Returns the query builders sort by field. |
|
getSortByFlags ( ) : integer |
Returns the query builders sort by flags. |
|
getUnescapedQuery ( ) : string |
Returns the unescaped query. |
|
getWheres ( ) : array |
Returns the wheres on the current builder. |
|
hasSelects ( ) : boolean |
Returns true / false depending if the current object
contains selects. |
|
in ( string $dn ) : Builder |
Alias for setting the base DN of the query. |
|
isPaginated ( ) : boolean |
Returns bool that determines whether the current
query builder will return paginated results. |
|
isRaw ( ) : boolean |
Returns bool that determines whether the current
query builder will return raw results. |
|
isSorted ( ) : boolean |
Returns bool that determines whether the current
query builder will return sorted results. |
|
newInstance ( ) : Builder |
Returns a new Query Builder instance. |
|
orWhere ( string $field, string | null $operator = null, string | null $value = null ) : Builder |
Adds an or where clause to the current query. |
|
orWhereApproximatelyEquals ( string $field, string $value ) : Builder |
Adds a or where approximately equals clause to the current query. |
|
orWhereContains ( string $field, string $value ) : Builder |
Adds an or where contains clause to the current query. |
|
orWhereEndsWith ( string $field, string $value ) : Builder |
Adds an or where ends with clause to the current query. |
|
orWhereEquals ( string $field, string $value ) : Builder |
Adds an or where equals clause to the current query. |
|
orWhereHas ( string $field ) : Builder |
Adds an or where has clause to the current query. |
|
orWhereNotContains ( string $field, string $value ) : Builder |
Adds an or where *not* contains clause to the current query. |
|
orWhereNotEndsWith ( string $field, string $value ) : Builder |
Adds an or where *not* ends with clause to the current query. |
|
orWhereNotHas ( string $field ) : Builder |
Adds a where not has clause to the current query. |
|
orWhereNotStartsWith ( string $field, string $value ) : Builder |
Adds an or where *not* starts with clause to the current query. |
|
orWhereStartsWith ( string $field, string $value ) : Builder |
Adds an or where starts with clause to the current query. |
|
paginate ( integer $perPage = 50, integer $currentPage, boolean $isCritical = true ) : Paginator | boolean |
Paginates the current LDAP query. |
|
query ( string $query ) : Collection | array |
Performs the specified query on the current LDAP connection. |
|
raw ( boolean $raw = true ) : Builder |
Sets the recursive property to tell the search
whether or not to return the LDAP results in
their raw format. |
|
rawFilter ( array | string $filters = [] ) : Builder |
Adds a raw filter to the current query. |
|
read ( boolean $read = true ) : Builder |
Sets the recursive property to tell the search
whether or not to search on the base scope and
return a single entry. |
|
recursive ( boolean $recursive = true ) : Builder |
Sets the recursive property to tell the search
whether or not to search recursively. |
|
select ( array | string $fields = [] ) : Builder |
Adds the inserted fields to query on the current LDAP connection. |
|
setConnection ( Adldap\Connections\ConnectionInterface $connection ) : Builder |
Sets the current connection. |
|
setDn ( string | null $dn = null ) : Builder |
Sets the DN to perform searches upon. |
|
setGrammar ( Grammar $grammar ) : Builder |
Sets the current filter grammar. |
|
setSchema ( Adldap\Schemas\SchemaInterface $schema = null ) : Builder |
Sets the current schema. |
|
sortBy ( string $field, string $direction = 'asc', integer | null $flags = null ) : Builder |
Sorts the LDAP search results by the
specified field and direction. |
|
where ( string | array $field, string $operator = null, string $value = null, string $type = 'and' ) : Builder |
Adds a where clause to the current query. |
|
whereApproximatelyEquals ( string $field, string $value ) : Builder |
Adds a where approximately equals clause to the current query. |
|
whereContains ( string $field, string $value ) : Builder |
Adds a where contains clause to the current query. |
|
whereDisabled ( ) : Builder |
Adds a disabled filter to the current query. |
|
whereEnabled ( ) : Builder |
Adds a enabled filter to the current query. |
|
whereEndsWith ( string $field, string $value ) : Builder |
Adds a where ends with clause to the current query. |
|
whereEquals ( string $field, string $value ) : Builder |
Adds a where equals clause to the current query. |
|
whereHas ( string $field ) : Builder |
Adds a where has clause to the current query. |
|
whereNotContains ( string $field, string $value ) : Builder |
Adds a where contains clause to the current query. |
|
whereNotHas ( string $field ) : Builder |
Adds a where not has clause to the current query. |
|
whereNotStartsWith ( string $field, string $value ) : Builder |
Adds a where *not* starts with clause to the current query. |
|
whereStartsWith ( string $field, string $value ) : Builder |
Adds a where starts with clause to the current query. |
|