yii\db\PdoValue - Yii2 类参考手册
Final Class yii\db\PdoValue
全部
| 方法 Methods
Inheritance | yii\db\PdoValue |
---|---|
Implements | yii\db\ExpressionInterface |
Available since version | 2.0.14 |
Class PdoValue represents a $value that should be bound to PDO with exact $type.
For example, it will be useful when you need to bind binary data to BLOB column in DBMS:
[':name' => 'John', ':profile' => new PdoValue($profile, \PDO::PARAM_LOB)]`.
To see possible types, check PDO::PARAM_* constants.
请参阅 https://secure.php.net/manual/en/pdostatement.bindparam.php.
Public Methods
隐藏继承的方法 Hide inherited methods
方法 Method | 简介 Description | 定义在 Defined By |
---|---|---|
__construct() | PdoValue constructor. | yii\db\PdoValue |
getType() | yii\db\PdoValue | |
getValue() | yii\db\PdoValue |
方法详情 Method Details
PdoValue constructor.
public void __construct ( $value, $type ) | ||
$value | ||
$type |
public integer getType ( ) |
public mixed getValue ( ) |