public function SaveHistory($param) { // decrypt member_id $param['member_id'] = $this->decrypt($param['member_id']); $history = parent::CheckHistoryProcess($param); if ($history['hi_id'] == '') { // Save new History. parent::SaveHistoryProcess($param); } else { // Update total Read of place. $param['view'] = ++$history['hi_view']; parent::UpdateViewHistoryProcess($param); } }