ICanBoogie
  • Documentation
  • API Reference
  • ActiveRecord 4.0.x
Namespaces
  • ICanBoogie
    • ActiveRecord
      • ActiveRecordCache
      • Driver
      • Property
      • Validate
        • Reader
        • Validator
        • ValidatorProvider
Classes
  • BelongsToRelation
  • Connection
  • ConnectionCollection
  • ConnectionOptions
  • HasManyRelation
  • Model
  • ModelCollection
  • ModelProvider
  • Query
  • Relation
  • RelationCollection
  • RelationNotDefined
  • Schema
  • SchemaColumn
  • Statement
  • Table
Interfaces
  • ActiveRecordCache
  • Driver
  • Exception
Exceptions
  • ActiveRecordClassNotValid
  • ConnectionAlreadyEstablished
  • ConnectionNotDefined
  • ConnectionNotEstablished
  • DriverNotDefined
  • ModelAlreadyInstantiated
  • ModelNotDefined
  • RecordNotFound
  • RecordNotValid
  • ScopeNotDefined
  • StatementInvocationFailed
  • StatementNotValid
  • UnableToSetFetchMode

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( void )
public __construct( array $options )

Parameters

$options
protected get_formatted_type( void ) : string

Returns the formatted type, including the size.

Returns the formatted type, including the size.

Returns

string
protected get_formatted_default( void ) : string

Returns the formatted default.

Returns the formatted default.

Returns

string
protected get_formatted_attributes( void ) : string

Returns the formatted attributes.

Returns the formatted attributes.

Returns

string
protected get_formatted_null( void ) : string

Returns the formatted null.

Returns the formatted null.

Returns

string
protected get_formatted_index( void ) : string

Returns the formatted index.

Returns the formatted index.

Returns

string
protected get_formatted_comment( void ) : string

Returns the formatted comment.

Returns the formatted comment.

Returns

string
protected get_formatted_charset( void ) : string

Returns the formatted charset.

Returns the formatted charset.

Returns

string
protected get_formatted_auto_increment( void ) : string

Returns the formatted auto increment.

Returns the formatted auto increment.

Returns

string
protected get_is_serial( void ) : boolean

Whether the column is a serial column.

Whether the column is a serial column.

Returns

boolean
public render( void ) : string

Renders the column into a string.

Renders the column into a string.

Returns

string
public __toString( void )

Constants summary

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

Properties summary

public $type : string

		
public $size : string|integer

		
public $unsigned : boolean
false
public $default : mixed

		
public $null : boolean
false
public $unique : boolean
false
protected $primary : boolean
false
public $auto_increment : boolean
false
public $indexed : boolean
false
public $charset : string

		
public $comment : string

		

Magic properties

public read-only $formatted_attributes : string
public read-only $formatted_auto_increment : string
public read-only $formatted_charset : string
public read-only $formatted_comment : string
public read-only $formatted_default : string
public read-only $formatted_index : string
public read-only $formatted_null : string
public read-only $formatted_type : string
public read-only $primary : string|array
ActiveRecord 4.0.x – Check on GitHub – API documentation generated by ApiGen