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

Model::deleteWhere

Execute Logical Delete the records by specified condition

Description

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

Arguments

NameData typeDefaultRemarks
$wherestringDeleting condition query
$wh_dataarrayDeleting condition data

Example

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

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