Skip to main content

Model::setBindParam

Set Bind Parameter types

Description

public self Model::setBindParam( array $bind )

Arguments

NameData typeDefaultRemarks
$bindarrayBind Parameter types

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',
),
));