ICanBoogie/Facets 0.4.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Facets
      • RecordCollection

Classes

  • BooleanCriterion
  • Criterion
  • CriterionList
  • CriterionNotDefined
  • CriterionValue
  • Fetcher
  • IntervalCriterionValue
  • QueryString
  • QueryStringWord
  • RecordCollection
  • SetCriterionValue

Interfaces

  • CriterionInterface
  • FetcherInterface

Traits

  • CriterionTrait
  • FetcherTrait
  • HumanizePairsTrait
  • ModelBindings
  • ParseQueryStringTrait

Class RecordCollection

A collection of records fetched by a ICanBoogie\Facets\Fetcher instance.

ICanBoogie\Facets\RecordCollection implements IteratorAggregate, Countable uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\Facets
Located at RecordCollection.php

Methods summary

protected
# get_fetcher( )
protected ICanBoogie\ActiveRecord
# get_one( )

Returns the first record in the collection.

Returns the first record in the collection.

Returns

ICanBoogie\ActiveRecord
protected integer
# get_total_count( )

Returns the number of records matching the query, without range limitation.

Returns the number of records matching the query, without range limitation.

Returns

integer
public
# __construct( array $records, ICanBoogie\Facets\Fetcher $fetcher )
public
# __get( $property )
public ArrayIterator
# getIterator( )

Returns

ArrayIterator

Implementation of

IteratorAggregate::getIterator()
public
# count( )

Inheritdoc

Implementation of

Countable::count()

Properties summary

Magic properties

public read-only ICanBoogie\Facets\Fetcher $fetcher
public read-only array $conditions

The conditions used to fetch the records.

public read-only integer $limit

The maximum number of records.

public read-only integer $page

The current page.

public read-only integer $total_count

The number of records matching the query, without range limitation.

public read-only ICanBoogie\ActiveRecord\Query $initial_query
public read-only ICanBoogie\ActiveRecord\Query $query
public read-only ICanBoogie\ActiveRecord $one

The first record in the collection.

ICanBoogie/Facets 0.4.x API documentation generated by ApiGen