ICanBoogie/bind-activerecord v0.2.0
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • Binding
      • ActiveRecord

Classes

  • Hooks

Class Hooks

Namespace: ICanBoogie\Binding\ActiveRecord
Located at Hooks.php

Methods summary

public static array
# synthesize_connections_config( array $fragments )

Synthesizes the activerecord_connections config from activerecord#connections fragments.

Synthesizes the activerecord_connections config from activerecord#connections fragments.

Parameters

$fragments

Returns

array
public static array
# synthesize_models_config( array $fragments )

Synthesizes the activerecord_models config from activerecord#models fragments.

Synthesizes the activerecord_models config from activerecord#models fragments.

Parameters

$fragments

Returns

array
public static ICanBoogie\ActiveRecord\ConnectionCollection
# core_lazy_get_connections( ICanBoogie\Core $app )

Returns a @{link ConnectionCollection} instance configured with the activerecord_connections config.

Returns a @{link ConnectionCollection} instance configured with the activerecord_connections config.

Parameters

$app

Returns

ICanBoogie\ActiveRecord\ConnectionCollection
public static ICanBoogie\ActiveRecord\ModelCollection
# core_lazy_get_models( ICanBoogie\Core $app )

Returns a @{link ModelCollection} instance configured with the activerecord_models config.

Returns a @{link ModelCollection} instance configured with the activerecord_models config.

Parameters

$app

Returns

ICanBoogie\ActiveRecord\ModelCollection
public static ICanBoogie\ActiveRecord\Connection
# core_lazy_get_db( ICanBoogie\Core $app )

Getter for the "primary" database connection.

Getter for the "primary" database connection.

Parameters

$app

Returns

ICanBoogie\ActiveRecord\Connection
public static ICanBoogie\ActiveRecord\RunTimeActiveRecordCache
# model_lazy_get_activerecord_cache( ICanBoogie\ActiveRecord\Model $model )

Returns the records cache associated with the model.

Returns the records cache associated with the model.

Parameters

$model

Returns

ICanBoogie\ActiveRecord\RunTimeActiveRecordCache
ICanBoogie/bind-activerecord v0.2.0 API documentation generated by ApiGen