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 SchemaColumn

Representation of a schema column.

ICanBoogie\ActiveRecord\SchemaColumn uses ICanBoogie\Accessor\AccessorTrait (not available)
Namespace: ICanBoogie\ActiveRecord
Located at ActiveRecord/SchemaColumn.php

Methods summary

protected
# get_primary( )
public
# __construct( array $options )

Parameters

$options
protected string
# get_formatted_type( )

Returns the formatted type, including the size.

Returns the formatted type, including the size.

Returns

string
protected string
# get_formatted_default( )

Returns the formatted default.

Returns the formatted default.

Returns

string
protected string
# get_formatted_attributes( )

Returns the formatted attributes.

Returns the formatted attributes.

Returns

string
protected string
# get_formatted_null( )

Returns the formatted null.

Returns the formatted null.

Returns

string
protected string
# get_formatted_index( )

Returns the formatted index.

Returns the formatted index.

Returns

string
protected string
# get_formatted_comment( )

Returns the formatted comment.

Returns the formatted comment.

Returns

string
protected string
# get_formatted_charset( )

Returns the formatted charset.

Returns the formatted charset.

Returns

string
protected string
# get_formatted_auto_increment( )

Returns the formatted auto increment.

Returns the formatted auto increment.

Returns

string
protected boolean
# get_is_serial( )

Whether the column is a serial column.

Whether the column is a serial column.

Returns

boolean
public string
# render( )

Renders the column into a string.

Renders the column into a string.

Returns

string
public
# __toString( )

Constants summary

string TYPE_BLOB
# 'blob'
string TYPE_BOOLEAN
# 'boolean'
string TYPE_INTEGER
# 'integer'
string TYPE_TEXT
# 'text'
string TYPE_VARCHAR
# 'varchar'

Properties summary

public string $type
#
public string|integer $size
#
public boolean $unsigned
# false
public mixed $default
#
public boolean $null
# false
public boolean $unique
# false
protected boolean $primary
# false
public boolean $auto_increment
# false
public boolean $indexed
# false
public string $charset
#
public string $comment
#

Magic properties

public read-only string $formatted_attributes
public read-only string $formatted_auto_increment
public read-only string $formatted_charset
public read-only string $formatted_comment
public read-only string $formatted_default
public read-only string $formatted_index
public read-only string $formatted_null
public read-only string $formatted_type
public read-only string|array $primary
ICanBoogie/ActiveRecord master API documentation generated by ApiGen