PHP Класс yii\sphinx\ColumnSchema

С версии: 2.0
Автор: Paul Klimov ([email protected])
Наследование: extends yii\base\Object
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$dbType the DB type of this column. Possible DB types vary according to the type of DBMS.
$isAttribute whether this column is an attribute
$isField whether this column is a indexed field
$isMva whether this column is a multi value attribute (MVA)
$isPrimaryKey whether this column is a primary key
$name name of this column (without quotes).
$phpType the PHP type of this column. Possible PHP types include: string, boolean, integer, double.
$type abstract type of this column. Possible abstract types include: string, text, boolean, smallint, integer, bigint, float, decimal, datetime, timestamp, time, date, binary, and money.

Открытые методы

Метод Описание
dbTypecast ( mixed $value ) : mixed Converts the input value according to [[type]] and [[dbType]] for use in a db query.
phpTypecast ( mixed $value ) : mixed Converts the input value according to [[phpType]] after retrieval from the database.

Защищенные методы

Метод Описание
typecast ( mixed $value ) : mixed Converts the input value according to [[phpType]] after retrieval from the database.

Описание методов

dbTypecast() публичный метод

If the value is null or an [[Expression]], it will not be converted.
public dbTypecast ( mixed $value ) : mixed
$value mixed input value
Результат mixed converted value. This may also be an array containing the value as the first element and the PDO type as the second element.

phpTypecast() публичный метод

If the value is null or an [[Expression]], it will not be converted.
public phpTypecast ( mixed $value ) : mixed
$value mixed input value
Результат mixed converted value

typecast() защищенный метод

If the value is null or an [[Expression]], it will not be converted.
С версии: 2.0.3
protected typecast ( mixed $value ) : mixed
$value mixed input value
Результат mixed converted value

Описание свойств

$dbType публичное свойство

the DB type of this column. Possible DB types vary according to the type of DBMS.
public $dbType

$isAttribute публичное свойство

whether this column is an attribute
public $isAttribute

$isField публичное свойство

whether this column is a indexed field
public $isField

$isMva публичное свойство

whether this column is a multi value attribute (MVA)
public $isMva

$isPrimaryKey публичное свойство

whether this column is a primary key
public $isPrimaryKey

$name публичное свойство

name of this column (without quotes).
public $name

$phpType публичное свойство

the PHP type of this column. Possible PHP types include: string, boolean, integer, double.
public $phpType

$type публичное свойство

abstract type of this column. Possible abstract types include: string, text, boolean, smallint, integer, bigint, float, decimal, datetime, timestamp, time, date, binary, and money.
public $type