Property | Type | Description | |
---|---|---|---|
$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. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
typecast ( mixed $value ) : mixed | Converts the input value according to [[phpType]] after retrieval from the database. |
public dbTypecast ( mixed $value ) : mixed | ||
$value | mixed | input value |
return | mixed | converted value. This may also be an array containing the value as the first element and the PDO type as the second element. |
public phpTypecast ( mixed $value ) : mixed | ||
$value | mixed | input value |
return | mixed | converted value |
public $dbType |
public $phpType |