Inheritance | yii\sphinx\ColumnSchema » yii\base\Object |
---|---|
Implements | yii\base\Configurable |
Available since version | 2.0 |
Source Code | https://github.com/yiisoft/yii2-sphinx/blob/master/ColumnSchema.php |
ColumnSchema class describes the metadata of a column in a Sphinx index.
Property | Type | Description | Defined By |
---|---|---|---|
$dbType | string | The DB type of this column. | yii\sphinx\ColumnSchema |
$isAttribute | boolean | Whether this column is an attribute | yii\sphinx\ColumnSchema |
$isField | boolean | Whether this column is a indexed field | yii\sphinx\ColumnSchema |
$isMva | boolean | Whether this column is a multi value attribute (MVA) | yii\sphinx\ColumnSchema |
$isPrimaryKey | boolean | Whether this column is a primary key | yii\sphinx\ColumnSchema |
$name | string | Name of this column (without quotes). | yii\sphinx\ColumnSchema |
$phpType | string | The PHP type of this column. | yii\sphinx\ColumnSchema |
$type | string | Abstract type of this column. | yii\sphinx\ColumnSchema |
Method | Description | Defined By |
---|---|---|
__call() | Calls the named method which is not a class method. | yii\base\Object |
__construct() | Constructor. | yii\base\Object |
__get() | Returns the value of an object property. | yii\base\Object |
__isset() | Checks if a property is set, i.e. defined and not null. | yii\base\Object |
__set() | Sets value of an object property. | yii\base\Object |
__unset() | Sets an object property to null. | yii\base\Object |
canGetProperty() | Returns a value indicating whether a property can be read. | yii\base\Object |
canSetProperty() | Returns a value indicating whether a property can be set. | yii\base\Object |
className() | Returns the fully qualified name of this class. | yii\base\Object |
dbTypecast() | Converts the input value according to $type and $dbType for use in a db query. | yii\sphinx\ColumnSchema |
hasMethod() | Returns a value indicating whether a method is defined. | yii\base\Object |
hasProperty() | Returns a value indicating whether a property is defined. | yii\base\Object |
init() | Initializes the object. | yii\base\Object |
phpTypecast() | Converts the input value according to $phpType after retrieval from the database. | yii\sphinx\ColumnSchema |
Method | Description | Defined By |
---|---|---|
typecast() | Converts the input value according to $phpType after retrieval from the database. | yii\sphinx\ColumnSchema |
The DB type of this column. Possible DB types vary according to the type of DBMS.
public string $dbType = null
Whether this column is an attribute
public boolean $isAttribute = null
Whether this column is a indexed field
public boolean $isField = null
Whether this column is a multi value attribute (MVA)
public boolean $isMva = null
Whether this column is a primary key
public boolean $isPrimaryKey = null
Name of this column (without quotes).
public string $name = null
The PHP type of this column. Possible PHP types include: string, boolean, integer, double.
public string $phpType = null
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 string $type = null
Converts the input value according to $type and $dbType for use in a db query.
If the value is null or an yii\db\Expression, it will not be converted.
public mixed dbTypecast ( $value ) | ||
---|---|---|
$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. |
Converts the input value according to $phpType after retrieval from the database.
If the value is null or an yii\db\Expression, it will not be converted.
public mixed phpTypecast ( $value ) | ||
---|---|---|
$value | mixed |
Input value |
return | mixed |
Converted value |
Converts the input value according to $phpType after retrieval from the database.
If the value is null or an yii\db\Expression, it will not be converted.
protected mixed typecast ( $value ) | ||
---|---|---|
$value | mixed |
Input value |
return | mixed |
Converted value |
© 2008–2017 by Yii Software LLC
Licensed under the three clause BSD license.
http://www.yiiframework.com/doc-2.0/yii-sphinx-columnschema.html