Model::setBindParam
Set Bind Parameter types
Description
public self Model::setBindParam( array $bind )
Arguments
Name | Data type | Default | Remarks |
---|---|---|---|
$bind | array | Bind Parameter types |
- Please see addBindParam about allowed bind type
Example
Controller
$model = new Model();
$model->setBindParam(array(
'news_id' => 'INTEGER',
'image_id' => 'INTEGER',
'file_id' => 'INTEGER',
'post_date' => 'DATETIME',
));
// Same with the following
$model = new Model(false, array(
'bind' => array(
'news_id' => 'INTEGER',
'image_id' => 'INTEGER',
'file_id' => 'INTEGER',
'post_date' => 'DATETIME',
),
));