1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Column
Граф наследования:Column:
BaseObject

Открытые члены

 getLength ($charWidth, $maxLength=null)
 getDdlType ()
 getCreateDdl ($dbType='')
 getDropDdl ($dbType='')
Открытые члены унаследованные от BaseObject
 __construct ($name='')
 setBody ($body)
 setParent (BaseObject $parent=null)
 getUnquotedName ($name=null)
 getLowercasedName ()
 compareName ($name)
 getModifyDdl (BaseObject $target, $dbType='')

Открытые статические члены

static checkType ($type)
static create (Tokenizer $tokenizer, $parent=null)
Открытые статические члены унаследованные от BaseObject
static getCompareName ($name)

Поля данных

 $parent = null
 $type = ''
 $typeAddition = ''
 $unsigned = false
 $length = ''
 $precision = 0
 $nullable = true
 $default = null
 $enum = []
Поля данных унаследованные от BaseObject
 $parent = null
 $name = ''
 $body = ''

Статические защищенные данные

static $types

Дополнительные унаследованные члены

Защищенные данные унаследованные от BaseObject
 $ciName = ''

Подробное описание

См. определение в файле column.php строка 6

Методы

◆ checkType()

checkType ( $type)
static

Checks the $type against type list:

  • INT
  • INTEGER
  • TINYINT
  • NUMERIC
  • NUMBER
  • FLOAT
  • DOUBLE
  • DECIMAL
  • BIGINT
  • SMALLINT
  • MEDIUMINT
  • VARCHAR
  • CHAR
  • TIMESTAMP
  • DATETIME
  • DATE
  • TIME
  • TEXT
  • LONGTEXT
  • MEDIUMTEXT
  • TINYTEXT
  • BLOB
  • MEDIUMBLOB
  • LONGBLOB
  • TINYBLOB
  • BINARY
  • VARBINARY
  • ENUM
  • SET
  • BOOLEAN
Аргументы
string$typeType of a column.
Возвращает
bool

См. определение в файле column.php строка 92

◆ create()

create ( Tokenizer $tokenizer,
$parent = null )
static

Creates column object from tokens.

Current position should point to the name of the column.

Аргументы
Tokenizer$tokenizerTokens collection.
Table$parentColumn owner Table object.
Возвращает
Column
Исключения
NotSupportedException

См. определение в файле column.php строка 180

◆ getCreateDdl()

getCreateDdl ( $dbType = '')

Return DDL for table column creation.

Аргументы
string$dbTypeDatabase type (MYSQL, ORACLE or MSSQL).
Возвращает
array|string

Переопределяет метод предка BaseObject.

См. определение в файле column.php строка 353

◆ getDdlType()

getDdlType ( )

Returns DDL presentation of column data type.

Возвращает
string

См. определение в файле column.php строка 338

◆ getDropDdl()

getDropDdl ( $dbType = '')

Return DDL for column destruction.

Аргументы
string$dbTypeDatabase type (MYSQL, ORACLE or MSSQL).
Возвращает
array|string

Переопределяет метод предка BaseObject.

См. определение в файле column.php строка 376

◆ getLength()

getLength ( $charWidth,
$maxLength = null )

Returns storage size for the column.

Аргументы
int$charWidthCollation defined maximum character size in bytes.
int$maxLengthOverwrite column definition length.
Возвращает
int
Исключения
NotSupportedException

См. определение в файле column.php строка 106

Поля

◆ $default

$default = null

См. определение в файле column.php строка 16

◆ $enum

$enum = []

См. определение в файле column.php строка 17

◆ $length

$length = ''

См. определение в файле column.php строка 13

◆ $nullable

$nullable = true

См. определение в файле column.php строка 15

◆ $parent

$parent = null

См. определение в файле column.php строка 9

◆ $precision

$precision = 0

См. определение в файле column.php строка 14

◆ $type

$type = ''

См. определение в файле column.php строка 10

◆ $typeAddition

$typeAddition = ''

См. определение в файле column.php строка 11

◆ $types

$types
staticprotected

См. определение в файле column.php строка 19

◆ $unsigned

$unsigned = false

См. определение в файле column.php строка 12


Объявления и описания членов класса находятся в файле: