Differential D16043 Diff 38609 src/applications/people/cache/PhabricatorUserMessageCountCacheType.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/cache/PhabricatorUserMessageCountCacheType.php
| Show All 15 Lines | final class PhabricatorUserMessageCountCacheType | ||||
| public function canManageKey($key) { | public function canManageKey($key) { | ||||
| return ($key === self::KEY_COUNT); | return ($key === self::KEY_COUNT); | ||||
| } | } | ||||
| public function getValueFromStorage($value) { | public function getValueFromStorage($value) { | ||||
| return (int)$value; | return (int)$value; | ||||
| } | } | ||||
| public function getValueForStorage($value) { | |||||
| return $value; | |||||
| } | |||||
| public function newValueForUsers($key, array $users) { | public function newValueForUsers($key, array $users) { | ||||
| if (!$users) { | if (!$users) { | ||||
| return array(); | return array(); | ||||
| } | } | ||||
| $user_phids = mpull($users, 'getPHID'); | $user_phids = mpull($users, 'getPHID'); | ||||
| $unread_status = ConpherenceParticipationStatus::BEHIND; | $unread_status = ConpherenceParticipationStatus::BEHIND; | ||||
| Show All 10 Lines | |||||