ICanBoogie/ActiveRecord master
  • Namespace
  • Class

Namespaces

  • ICanBoogie
    • ActiveRecord
      • Driver

Classes

  • ActiveRecordCacheBase
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • DateTimePropertySupport
  • HasManyRelation
  • Helpers
  • Model
  • ModelCollection
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • RuntimeActiveRecordCache
  • Schema
  • SchemaColumn
  • Statement
  • Table

Interfaces

  • ActiveRecordCache
  • Driver
  • Exception

Traits

  • CreatedAtProperty
  • DateProperty
  • DateTimeProperty
  • FinishAtProperty
  • FinishedAtProperty
  • StartAtProperty
  • StartedAtProperty
  • UpdatedAtProperty

Exceptions

  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • DriverNotDefined
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • ScopeNotDefined
  • StatementInvocationFailed
  • StatementNotValid
  • UnableToSetFetchMode

Functions

  • extract_charset_and_collate
  • get_model

Class ConnectionCollection

Connection collection.

ICanBoogie\ActiveRecord\ConnectionCollection implements ArrayAccess, IteratorAggregate uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/ConnectionCollection.php

Methods summary

protected
# get_definitions( )
protected
# get_established( )
public
# __construct( array $definitions )

Initializes the $definitions property.

Initializes the $definitions property.

Parameters

$definitions
Connection definitions.
public boolean
# offsetExists( string $id )

Checks if a connection definition exists.

Checks if a connection definition exists.

Parameters

$id
Connection identifier.

Returns

boolean

Implementation of

ArrayAccess::offsetExists()
public
# offsetSet( string $id, array|string $definition )

Sets the definition of a connection.

Sets the definition of a connection.

Parameters

$id
Connection identifier.
$definition
Connection definition.

Throws

ICanBoogie\ActiveRecord\ConnectionAlreadyEstablished

in attempt to set the definition of an already established connection.

Implementation of

ArrayAccess::offsetSet()
public
# offsetUnset( string $id )

Removes a connection definition.

Removes a connection definition.

Parameters

$id
Connection identifier.

Throws

ICanBoogie\ActiveRecord\ConnectionAlreadyEstablished

in attempt to unset the definition of an already established connection.

Implementation of

ArrayAccess::offsetUnset()
public ICanBoogie\ActiveRecord\Connection
# offsetGet( string $id )

Returns a connection to the specified database.

Returns a connection to the specified database.

If the connection has not been established yet, it is created on the fly.

Parameters

$id
Connection identifier.

Returns

ICanBoogie\ActiveRecord\Connection

Throws

ICanBoogie\ActiveRecord\ConnectionNotDefined
when the connection requested is not defined.
ICanBoogie\ActiveRecord\ConnectionNotEstablished
when the connection failed.

Implementation of

ArrayAccess::offsetGet()
public
# getIterator( )

Returns an iterator for established connections.

Returns an iterator for established connections.

Implementation of

IteratorAggregate::getIterator()

Properties summary

Magic properties

public read-only array $definitions

Connection definitions.

ICanBoogie/ActiveRecord master API documentation generated by ApiGen