PHP Class Adldap\Query\Processor

Show file Open project: adldap2/adldap2

Protected Properties

Property Type Description
$builder Builder
$connection Adldap\Connections\ConnectionInterface
$schema Adldap\Schemas\SchemaInterface

Public Methods

Method Description
__construct ( Builder $builder ) Constructor.
map ( ) : array Returns the object class model class mapping.
newCollection ( array $items = [] ) : Collection Returns a new doctrine array collection instance.
newLdapEntry ( array $attributes = [] ) : Entry Returns a new LDAP Entry instance.
newModel ( array $attributes = [], string | null $model = null ) : mixed | Entry Creates a new model instance.
newPaginator ( array $models = [], integer $perPage = 25, integer $currentPage, integer $pages = 1 ) : Paginator Returns a new Paginator object instance.
process ( resource $results ) : array Processes LDAP search results and constructs their model instances.
processPaginated ( array $pages = [], integer $perPage = 50, integer $currentPage ) : Paginator Processes paginated LDAP results.

Protected Methods

Method Description
processSort ( array $models = [] ) : Collection Sorts LDAP search results.

Method Details

__construct() public method

Constructor.
public __construct ( Builder $builder )
$builder Builder

map() public method

Returns the object class model class mapping.
public map ( ) : array
return array

newCollection() public method

Returns a new doctrine array collection instance.
public newCollection ( array $items = [] ) : Collection
$items array
return Illuminate\Support\Collection

newLdapEntry() public method

Returns a new LDAP Entry instance.
public newLdapEntry ( array $attributes = [] ) : Entry
$attributes array
return Adldap\Models\Entry

newModel() public method

Creates a new model instance.
public newModel ( array $attributes = [], string | null $model = null ) : mixed | Entry
$attributes array
$model string | null
return mixed | Adldap\Models\Entry

newPaginator() public method

Returns a new Paginator object instance.
public newPaginator ( array $models = [], integer $perPage = 25, integer $currentPage, integer $pages = 1 ) : Paginator
$models array
$perPage integer
$currentPage integer
$pages integer
return Adldap\Objects\Paginator

process() public method

Processes LDAP search results and constructs their model instances.
public process ( resource $results ) : array
$results resource
return array

processPaginated() public method

Processes paginated LDAP results.
public processPaginated ( array $pages = [], integer $perPage = 50, integer $currentPage ) : Paginator
$pages array
$perPage integer
$currentPage integer
return Adldap\Objects\Paginator

processSort() protected method

Sorts LDAP search results.
protected processSort ( array $models = [] ) : Collection
$models array
return Illuminate\Support\Collection

Property Details

$builder protected property

protected Builder,Adldap\Query $builder
return Builder

$connection protected property

protected ConnectionInterface,Adldap\Connections $connection
return Adldap\Connections\ConnectionInterface

$schema protected property

protected SchemaInterface,Adldap\Schemas $schema
return Adldap\Schemas\SchemaInterface