/** * 掲示板のアクセス履歴を登録する * * @param $bbs_id * @return 成功(true) / 失敗(false) */ static function set_bbs_access_history($user_community_id, $bbs_id) { // 掲示板アクセス履歴 $bbs_access_history_row = ACSBBS::get_bbs_access_history_row($user_community_id, $bbs_id); $bbs_access_history_form = array('user_community_id' => $user_community_id, 'bbs_id' => $bbs_id, 'access_date' => 'now'); if ($bbs_access_history_row) { // レコードが存在する場合はUPDATE ACSBBSAccessHistoryModel::update_bbs_access_history($bbs_access_history_form); } else { // レコードが存在しない場合はINSERT ACSBBSAccessHistoryModel::insert_bbs_access_history($bbs_access_history_form); } }