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
get_model( void )
: ICanBoogie\ActiveRecord\Model
Return the ICanBoogie\Facets\Fetcher::$model
property.
protected
get_initial_query( void )
: ICanBoogie\ActiveRecord\Query
Return the $initial_query property.
protected
get_query( void )
: ICanBoogie\ActiveRecord\Query
Return the query used to fetch the records.
protected
get_query_string( void )
: ICanBoogie\Facets\QueryString
Return the ICanBoogie\Facets\Fetcher::$query_string
property.
protected
get_conditions( void )
: array
Return the ICanBoogie\Facets\Fetcher::$conditions
property.
public
__construct( ICanBoogie\ActiveRecord\Model $model
, array $options
= [] )
Initializes the ICanBoogie\Facets\Fetcher::$model
, ICanBoogie\Facets\Fetcher::$options
and ICanBoogie\Facets\Fetcher::$criterion_list
properties.
public
__clone( void )
Clones the initial_query, query, and ICanBoogie\Facets\Fetcher::$query_string
properties.
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
Properties used from ICanBoogie\Facets\FetcherTrait
Magic properties
public read-only
$initial_query
: ICanBoogie\ActiveRecord\Query
The initial query, before it is altered by the criteria, conditions, order or limit.
public read-only
$query_string
: ICanBoogie\Facets\QueryString
A ICanBoogie\Facets\QueryString
instance resolved from the q
modifier.
public read-only
$order
: string
The order in which records are fetched, as defined by the order
modifier.