Class Fetcher
Fetch records from a model.
- ICanBoogie\Facets\Fetcher implements ICanBoogie\Facets\FetcherInterface uses ICanBoogie\Accessor\AccessorTrait (not available) ICanBoogie\Facets\FetcherTrait
Methods summary
protected
ICanBoogie\ActiveRecord\Model
|
|
protected
array
|
|
protected
ICanBoogie\ActiveRecord\Query
|
|
protected
ICanBoogie\ActiveRecord\Query
|
|
protected
|
|
protected
array
|
|
protected
string|null
|
|
protected
integer|null
|
|
protected
|
|
protected
|
|
protected
integer
|
|
public
|
#
__construct( ICanBoogie\ActiveRecord\Model $model, array $options = [] )
Initializes the |
public
|
#
__clone( )
Clones the initial_query, query, and |
public
array
|
|
protected
ICanBoogie\ActiveRecord\Query
|
|
protected
array
|
Methods inherited from ICanBoogie\Facets\FetcherInterface
alter_conditions()
,
alter_criterion_list()
,
alter_query()
,
alter_query_with_conditions()
,
alter_query_with_limit()
,
alter_query_with_order()
,
alter_records()
,
count_records()
,
fetch_records()
,
parse_query_string()
Methods used from ICanBoogie\Facets\FetcherTrait
alter_conditions()
,
alter_criterion_list()
,
alter_query()
,
alter_query_with_conditions()
,
alter_query_with_limit()
,
alter_query_with_order()
,
alter_records()
,
count_records()
,
fetch_records()
,
get_criterion_list()
,
parse_query_string()
Properties summary
protected
ICanBoogie\ActiveRecord\Model
|
$model
The model from witch records are fetched. |
|
protected
array
|
$modifiers
Fetch modifiers. |
|
protected
array
|
$options
Options. |
#
[]
|
protected
|
$query_string
Query string resolved from the modifiers. |
|
protected
array
|
$conditions
Conditions resolved from the modifiers. |
#
[]
|
protected
string|null
|
$order
Order of the records, as found in the modifiers. |
|
protected
string|null
|
$limit
Limit of the number of records to fetch, as found in the modifiers. |
|
protected
|
$offset
|
|
protected
integer
|
$count
Number of records matching the query, before they are limited. |
Properties used from ICanBoogie\Facets\FetcherTrait
Magic properties
public read-only
ICanBoogie\ActiveRecord\Model
|
$model
The model from which record are fetched. |
public read-only
|
$criterion_list
List of criterion. |
public read-only
array
|
$modifiers
An array of key/value used to filter/order/qualify the records. |
public read-only
ICanBoogie\ActiveRecord\Query
|
$initial_query
The initial query, before it is altered by the criteria, conditions, order or limit. |
public read-only
ICanBoogie\ActiveRecord\Query
|
$query
The query used to fetch the records. |
public read-only
|
$query_string
A |
public read-only
array
|
$conditions
An array of conditions used to filter the fetched records. |
public read-only
string
|
$order
The order in which records are fetched, as defined by the |
public read-only
integer
|
$count
The number of records matching the query before the offset and limit is applied. |
public read-only
integer
|
$limit
The maximum number of records that can be fetched, as defined by the |