Overview

Packages

  • application
    • commands
    • components
      • actions
      • filters
      • leftWidget
      • permissions
      • sortableWidget
      • util
      • webupdater
      • x2flow
        • actions
        • triggers
      • X2GridView
      • X2Settings
    • controllers
    • models
      • embedded
    • modules
      • accounts
        • controllers
        • models
      • actions
        • controllers
        • models
      • calendar
        • controllers
        • models
      • charts
        • models
      • contacts
        • controllers
        • models
      • docs
        • components
        • controllers
        • models
      • groups
        • controllers
        • models
      • marketing
        • components
        • controllers
        • models
      • media
        • controllers
        • models
      • mobile
        • components
      • opportunities
        • controllers
        • models
      • products
        • controllers
        • models
      • quotes
        • controllers
        • models
      • services
        • controllers
        • models
      • template
        • models
      • users
        • controllers
        • models
      • workflow
        • controllers
        • models
      • x2Leads
        • controllers
        • models
  • Net
  • None
  • PHP
  • system
    • base
    • caching
      • dependencies
    • collections
    • console
    • db
      • ar
      • schema
        • cubrid
        • mssql
        • mysql
        • oci
        • pgsql
        • sqlite
    • i18n
      • gettext
    • logging
    • test
    • utils
    • validators
    • web
      • actions
      • auth
      • filters
      • form
      • helpers
      • renderers
      • services
      • widgets
        • captcha
        • pagers
  • Text
    • Highlighter
  • zii
    • behaviors
    • widgets
      • grid
      • jui

Classes

  • CMssqlColumnSchema
  • CMssqlCommandBuilder
  • CMssqlPdoAdapter
  • CMssqlSchema
  • CMssqlSqlsrvPdoAdapter
  • CMssqlTableSchema
  • Overview
  • Package
  • Class
  • Tree

Class CMssqlColumnSchema

CMssqlColumnSchema class describes the column meta data of a MSSQL table.

CComponent
Extended by CDbColumnSchema
Extended by CMssqlColumnSchema
Package: system\db\schema\mssql
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Author: Christophe Boulain <Christophe.Boulain@gmail.com>
Located at x2engine/framework/db/schema/mssql/CMssqlColumnSchema.php
Methods summary
public
# init( string $dbType, mixed $defaultValue )

Initializes the column with its DB type and default value. This sets up the column's PHP type, size, precision, scale as well as default value.

Initializes the column with its DB type and default value. This sets up the column's PHP type, size, precision, scale as well as default value.

Parameters

$dbType
string
$dbType the column's DB type
$defaultValue
mixed
$defaultValue the default value

Overrides

CDbColumnSchema::init()
protected
# extractType( string $dbType )

Extracts the PHP type from DB type.

Extracts the PHP type from DB type.

Parameters

$dbType
string
$dbType DB type

Overrides

CDbColumnSchema::extractType()
protected
# extractDefault( mixed $defaultValue )

Extracts the default value for the column. The value is typecasted to correct PHP type.

Extracts the default value for the column. The value is typecasted to correct PHP type.

Parameters

$defaultValue
mixed
$defaultValue the default value obtained from metadata

Overrides

CDbColumnSchema::extractDefault()
protected
# extractLimit( string $dbType )

Extracts size, precision and scale information from column's DB type. We do nothing here, since sizes and precisions have been computed before.

Extracts size, precision and scale information from column's DB type. We do nothing here, since sizes and precisions have been computed before.

Parameters

$dbType
string
$dbType the column's DB type

Overrides

CDbColumnSchema::extractLimit()
public mixed
# typecast( mixed $value )

Converts the input value to the type that this column is of.

Converts the input value to the type that this column is of.

Parameters

$value
mixed
$value input value

Returns

mixed
converted value

Overrides

CDbColumnSchema::typecast()
Methods inherited from CComponent
__call(), __get(), __isset(), __set(), __unset(), asa(), attachBehavior(), attachBehaviors(), attachEventHandler(), canGetProperty(), canSetProperty(), detachBehavior(), detachBehaviors(), detachEventHandler(), disableBehavior(), disableBehaviors(), enableBehavior(), enableBehaviors(), evaluateExpression(), getEventHandlers(), hasEvent(), hasEventHandler(), hasProperty(), raiseEvent()
Properties inherited from CDbColumnSchema
$allowNull, $autoIncrement, $comment, $dbType, $defaultValue, $isForeignKey, $isPrimaryKey, $name, $precision, $rawName, $scale, $size, $type
API documentation generated by ApiGen 2.8.0