Autodoc
  • Namespace
  • Class
  • Tree

Namespaces

  • BlueTihi
    • Context
  • Brickrouge
    • Element
      • Nodes
    • Renderer
    • Widget
  • ICanBoogie
    • ActiveRecord
    • AutoConfig
    • CLDR
    • Composer
    • Core
    • Event
    • Exception
    • HTTP
      • Dispatcher
      • Request
    • I18n
      • Translator
    • Mailer
    • Modules
      • Taxonomy
        • Support
      • Thumbnailer
        • Versions
    • Object
    • Operation
      • Dispatcher
    • Prototype
    • Routes
    • Routing
      • Dispatcher
    • Session
  • Icybee
    • ActiveRecord
      • Model
    • ConfigOperation
    • Document
    • EditBlock
    • Element
      • ActionbarContextual
      • ActionbarSearch
      • ActionbarToolbar
    • FormBlock
    • Installer
    • ManageBlock
    • Modules
      • Articles
      • Cache
        • Collection
        • ManageBlock
      • Comments
        • ManageBlock
      • Contents
        • ManageBlock
      • Dashboard
      • Editor
        • Collection
      • Files
        • File
        • ManageBlock
      • Forms
        • Form
        • ManageBlock
      • I18n
      • Images
        • ManageBlock
      • Members
      • Modules
        • ManageBlock
      • Nodes
        • ManageBlock
        • Module
      • Pages
        • BreadcrumbElement
        • LanguagesElement
        • ManageBlock
        • NavigationBranchElement
        • NavigationElement
        • Page
        • PageController
      • Registry
      • Search
      • Seo
      • Sites
        • ManageBlock
      • Taxonomy
        • Terms
          • ManageBlock
        • Vocabulary
          • ManageBlock
      • Users
        • ManageBlock
        • NonceLogin
        • Roles
      • Views
        • ActiveRecordProvider
        • Collection
        • View
    • Operation
      • ActiveRecord
      • Constructor
      • Module
      • Widget
    • Rendering
  • None
  • Patron
  • PHP

Classes

  • ActiveRecordCache
  • CollectDependenciesEvent
  • Connection
  • Connections
  • DateTimePropertySupport
  • Helpers
  • Hooks
  • Model
  • Models
  • Query
  • RunTimeActiveRecordCache
  • Statement
  • Table

Interfaces

  • ActiveRecordCacheInterface

Traits

  • CreatedAtProperty
  • DateTimeProperty
  • UpdatedAtProperty

Exceptions

  • ActiveRecordException
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • ScopeNotDefined
  • StatementInvalid

Functions

  • get_model

Class Models

Model collection.

ICanBoogie\ActiveRecord\Models implements ArrayAccess

Direct known subclasses

ICanBoogie\Models

Namespace: ICanBoogie\ActiveRecord
Located at vendor/icanboogie/activerecord/lib/models.php

Methods summary

public
# __construct( ICanBoogie\ActiveRecord\Connections $connections, array $definitions = [] )

Initializes the ICanBoogie\ActiveRecord\Models::$connections and ICanBoogie\ActiveRecord\Models::$definitions properties.

Initializes the ICanBoogie\ActiveRecord\Models::$connections and ICanBoogie\ActiveRecord\Models::$definitions properties.

Parameters

$connections
ICanBoogie\ActiveRecord\Connections
$connections Connections manager.
$definitions
array[string]array
$definitions Model definitions.
public
# __get( mixed $property )
public boolean
# offsetExists( mixed $id )

Checks if a model is defined.

Checks if a model is defined.

Returns

boolean

Implementation of

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

Sets the definition of a model.

Sets the definition of a model.

The ICanBoogie\ActiveRecord\Model::ID and ICanBoogie\ActiveRecord\Table::NAME are set to the provided id if they are not defined.

Parameters

$id
string
$id Identifier of the model.
$definition
array
$definition Definition of the model.

Throws

ICanBoogie\ActiveRecord\ModelAlreadyInstantiated
in attempt to write a model already instantiated.

Implementation of

ArrayAccess::offsetSet()
public ICanBoogie\ActiveRecord\Model
# offsetGet( string $id )

Returns a ICanBoogie\ActiveRecord\Model instance.

Returns a ICanBoogie\ActiveRecord\Model instance.

Parameters

$id
string
$id Identifier of the model.

Returns

ICanBoogie\ActiveRecord\Model

Throws

ICanBoogie\ActiveRecord\ModelNotDefined
when the model is not defined.

Implementation of

ArrayAccess::offsetGet()
public
# offsetUnset( mixed $id )

Unset the definition of a model.

Unset the definition of a model.

Throws

ICanBoogie\ActiveRecord\ModelAlreadyInstantiated
in attempt to unset the definition of an already instantiated model.

Implementation of

ArrayAccess::offsetUnset()

Magic methods summary

Properties summary

protected array[string]Model $instances
#

Instanciated models.

Instanciated models.

protected array[string]array $definitions
#

Models definitions.

Models definitions.

protected ICanBoogie\ActiveRecord\Connections $connections
#

Connections manager.

Connections manager.

Magic properties

public read-only ICanBoogie\ActiveRecord\Connections $connections
#
Autodoc API documentation generated by ApiGen 2.8.0