メインコンテンツまでスキップ

Model::eraseWhere

Execute Physical Delete the records by specified condition

Description

public void Model::eraseWhere( string $where, array $wh_data )

Arguments

NameData typeDefaultRemarks
$wherestringErasing condition query
$wh_dataarrayErasing condition data

Example

Controller
$model = new Model(false, array(
'table' => 'cms_news',
'id' => 'news_id',
'visible' => 'visible',
));

$model->eraseWhere($item, $data, 'id = ?', [1]);