ICanBoogie/bind-facets 0.7.x
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Binding
      • Facets

Classes

  • Hooks

Interfaces

  • HasCriteriaProperty
  • HasCriterionListProperty
  • HasFetchRecordMethod
  • HasFetchRecordsMethod

Traits

  • ModelBindings

Trait ModelBindings

ICanBoogie\ActiveRecord\Model prototype bindings.

Namespace: ICanBoogie\Binding\Facets
Located at ModelBindings.php

Methods summary

public ICanBoogie\Facets\RecordCollection
# fetch_records( array $conditions )

Fetches the records matching the specified conditions.

Fetches the records matching the specified conditions.

A ICanBoogie\Facets\Fetcher instance is used to fetch the records.

Parameters

$conditions

Returns

ICanBoogie\Facets\RecordCollection
public ICanBoogie\ActiveRecord|null
# fetch_record( array $conditions, ICanBoogie\Facets\Fetcher & $fetcher = null )

Fetches a record matching the specified conditions.

Fetches a record matching the specified conditions.

The model's ICanBoogie\Binding\Facets\ModelBindings::fetch_records() prototype method is used to retrieve the record.

Parameters

$conditions
$fetcher

If the parameter fetcher is present, the ICanBoogie\Facets\Fetcher instance created to fetch the record is stored inside.

Returns

ICanBoogie\ActiveRecord|null

Properties summary

Magic properties

public read-only array $criteria
public read-only ICanBoogie\Facets\CriterionList $criterion_list
ICanBoogie/bind-facets 0.7.x API documentation generated by ApiGen