public function isChangedContentsSortLastModified($listDisplayed) { $siteConfigs = $this->findExpanded(); $changed = false; if (!empty($siteConfigs['contents_sort_last_modified'])) { $user = BcUtil::loginUser(); $lastModified = $siteConfigs['contents_sort_last_modified']; list($lastModified, $userId) = explode('|', $lastModified); $lastModified = strtotime($lastModified); if ($user['id'] != $userId) { $listDisplayed = strtotime($listDisplayed); // 60秒はブラウザのロード時間を加味したバッファ if ($lastModified >= $listDisplayed - 60) { $changed = true; } } } return $changed; }