Model::setBindParam
Set Bind Parameter types
Description
public self Model::setBindParam( array $bind )
Replaces every bind type set before. See addBindParam for the types and what they do.
Arguments
| Name | Data type | Default | Remarks |
|---|---|---|---|
| $bind | array | Bind types (column => type) |
Example
Controller
$model = new Model();
$model->setBindParam(array(
'category' => 'INTEGER',
'image_id' => 'INTEGER',
'file_id' => 'INTEGER',
'post_date' => 'DATETIME',
));
// Same as the following
$model = new Model(false, array(
'bind' => array(
'category' => 'INTEGER',
'image_id' => 'INTEGER',
'file_id' => 'INTEGER',
'post_date' => 'DATETIME',
),
));