本文整理匯總了PHP中Modelo::eliminar方法的典型用法代碼示例。如果您正苦於以下問題:PHP Modelo::eliminar方法的具體用法?PHP Modelo::eliminar怎麽用?PHP Modelo::eliminar使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Modelo
的用法示例。
在下文中一共展示了Modelo::eliminar方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: array
$BD->query($SQLforeign_keys_delete);
//_logs
$campos_log = array();
$log[id] = '';
$log[id_user] = $mensajeControlador->id_user;
$log[time] = date('Y-m-d H:i:s');
$log[table_name] = $thirdTableName;
$log[id_registry] = $ID;
$log[action] = '3';
$log[info] = '....';
array_push($campos_log, $log);
$objetoModelo->crear("_logs", $campos_log);
$objetoModelo->escribirLog("<br/>LOG ..." . $mensajeControlador->id_user . "..... <br/>");
//INSERT INTO `db155458_dejusticia`.`_logs` (`id`, `id_user`, `time`, `table_name`, `id_registry`, `action`) VALUES ('', '2', 'CURRENT_TIMESTAMP', '2', '2', '2');
}
$objetoModelo->eliminar($modelo, 'id', $ID);
//_logs
$campos_log = array();
$log[id] = '';
$log[id_user] = $mensajeControlador->id_user;
$log[time] = date('Y-m-d H:i:s');
$log[table_name] = $modelo;
$log[id_registry] = $ID;
$log[action] = '3';
$log[info] = '..' . $ID . '..';
array_push($campos_log, $log);
$objetoModelo->crear("_logs", $campos_log);
$objetoModelo->escribirLog("<br/>LOG ..." . $mensajeControlador->id_user . "..... <br/>");
//INSERT INTO `db155458_dejusticia`.`_logs` (`id`, `id_user`, `time`, `table_name`, `id_registry`, `action`) VALUES ('', '2', 'CURRENT_TIMESTAMP', '2', '2', '2');
//$objetoModelo->cerrarLog();
foreach ($archivosBorrar as $campo) {