メインコンテンツまでスキップ
Version: Fegg 5.x(開発版)

Model::getBindParam

Get Bind Parameter types

Description​

public array Model::getBindParam()

The types are returned in upper case.

Example​

Controller
$model = new Model(false, array(
'bind' => array(
'category' => 'integer',
'post_date' => 'DATETIME',
),
));

var_dump($model->getBindParam());
Output
array(2) {
["category"]=> string(7) "INTEGER"
["post_date"]=> string(8) "DATETIME"
}