ICanBoogie
  • Documentation
  • API Reference
  • bind-facets v0.5.0
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 fetch_records( array $conditions ) : ICanBoogie\Facets\RecordCollection

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 fetch_record( array $conditions, ICanBoogie\Facets\Fetcher & $fetcher = null ) : ICanBoogie\ActiveRecord|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 $criteria : array
public read-only $criterion_list : ICanBoogie\Facets\CriterionList
bind-facets v0.5.0 – Check on GitHub – API documentation generated by ApiGen