Pdo::getParam
組み立てたクエリの値を取得します
説明
public array Pdo::getParam()
compileまたはexecuteで最後に組み立てたクエリの?プレースホルダーにバインドする値を、順番に返します。
例
Controller
$db = new \Fegg\Database\Pdo();
$db->setWhere('category = ? AND news_id IN (?)', 2, array(5, 6))->select('cms_news')->compile();
print_r($db->getParam());
// -> Array ( [0] => 2 [1] => 5 [2] => 6 )