private function logChange($table, $id) { $row_data = array(); $row_data[] = array('field' => 'table_name', 'value' => $table); $row_data[] = array('field' => 'record_id', 'value' => $id); $row_data[] = array('field' => 'action', 'value' => 'delete'); $row_data[] = array('field' => 'user_id', 'value' => _ControllerFront::$session->u_id); $row_data[] = array('field' => 'session_id', 'value' => session_id()); AdaptorMysql::insert(BLACKBIRD_TABLE_PREFIX . 'history', $row_data); }