ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord v2.2.0
Namespaces
  • ICanBoogie
    • ActiveRecord
Classes
  • ActiveRecordCacheBase
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • DateTimePropertySupport
  • HasManyRelation
  • Helpers
  • Model
  • ModelCollection
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • RunTimeActiveRecordCache
  • Statement
  • Table
Interfaces
  • ActiveRecordCache
  • Exception
Traits
  • CreatedAtProperty
  • DateTimeProperty
  • UpdatedAtProperty
Exceptions
  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • ScopeNotDefined
  • StatementNotValid
  • UnableToSetFetchMode

Class RunTimeActiveRecordCache

Cache records during run time.

ICanBoogie\ActiveRecord\ActiveRecordCacheBase implements ICanBoogie\ActiveRecord\ActiveRecordCache
┗ ICanBoogie\ActiveRecord\RunTimeActiveRecordCache implements IteratorAggregate
Namespace: ICanBoogie\ActiveRecord
Located at RunTimeActiveRecordCache.php

Methods summary

public store( ICanBoogie\ActiveRecord $record )

Stores an ICanBoogie\ActiveRecord instance in the cache.

Stores an ICanBoogie\ActiveRecord instance in the cache.

Parameters

$record
public retrieve( integer $key ) : ICanBoogie\ActiveRecord|null

Retrieves an ICanBoogie\ActiveRecord instance from the cache.

Retrieves an ICanBoogie\ActiveRecord instance from the cache.

Parameters

$key

Returns

ICanBoogie\ActiveRecord|null
public eliminate( integer $key )

Eliminates an ICanBoogie\ActiveRecord instance from the cache.

Eliminates an ICanBoogie\ActiveRecord instance from the cache.

Parameters

$key
public clear( void )

Clears the cache.

Clears the cache.

public getIterator( void )

Implementation of

IteratorAggregate::getIterator()

Methods inherited from ICanBoogie\ActiveRecord\ActiveRecordCacheBase

__construct()

Properties summary

protected $records : ICanBoogie\ActiveRecord[]

Cached records.

Cached records.

[]

Properties inherited from ICanBoogie\ActiveRecord\ActiveRecordCacheBase

$model

ActiveRecord v2.2.0 – Check on GitHub – API documentation generated by ApiGen