PHP 클래스 yii\sphinx\ColumnSchema

부터: 2.0
저자: Paul Klimov ([email protected])
상속: extends yii\base\Object
파일 보기 프로젝트 열기: yiisoft/yii2-sphinx 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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