Метод | Описание | |
---|---|---|
__construct ( |
CollectionProvider constructor. | |
prepareForProcessing ( OpenSkill\Datatable\Queries\QueryConfiguration $queryConfiguration, array $columnConfiguration ) : mixed | Here the DTQueryConfiguration is passed to prepare the provider for the processing of the request. | |
process ( ) : |
This method should process all configurations and prepare the underlying data for the view. It will arrange the data and provide the results in a DTData object. |
Метод | Описание | |
---|---|---|
compileColumnNames ( ) | Get a list of all the column names for the SELECT query. | |
compileColumnQuery ( ) : |
When a global query is being performed (ie, a query against a single column) | |
compileGlobalQuery ( ) : |
When a global (single) search has been done against data in the datatable. | |
compileQuery ( ) : |
Will compile the collection into the final collection where operations like search and order can be applied. | |
createQueryForColumn ( OpenSkill\Datatable\Columns\ColumnConfiguration $column, $searchValue ) : |
Create the query w/ QueryBuilder | |
getColumnFromName ( string $name ) : OpenSkill\Datatable\Columns\ColumnConfiguration | Get the requested column configuration from the name of a column | |
getTotalNumberOfRows ( ) : integer | Get the total number of rows for the original query. | |
limitQuery ( ) | Will limit a query based on the start and length given | |
sortQuery ( ) | Will sort the query based on the given datatable query configuration. |
public __construct ( |
||
$query | The query to base the built query on |
public prepareForProcessing ( OpenSkill\Datatable\Queries\QueryConfiguration $queryConfiguration, array $columnConfiguration ) : mixed | ||
$queryConfiguration | OpenSkill\Datatable\Queries\QueryConfiguration | |
$columnConfiguration | array | |
Результат | mixed |
public process ( ) : |
||
Результат | The processed data |