Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
Show First 20 Lines • Show All 842 Lines • ▼ Show 20 Lines | public function getUnreadNotificationCount() { | ||||
return $this->requireCacheData($notification_key); | return $this->requireCacheData($notification_key); | ||||
} | } | ||||
public function getUnreadMessageCount() { | public function getUnreadMessageCount() { | ||||
$message_key = PhabricatorUserMessageCountCacheType::KEY_COUNT; | $message_key = PhabricatorUserMessageCountCacheType::KEY_COUNT; | ||||
return $this->requireCacheData($message_key); | return $this->requireCacheData($message_key); | ||||
} | } | ||||
public function getRecentBadgeAwards() { | |||||
$badges_key = PhabricatorUserBadgesCacheType::KEY_BADGES; | |||||
return $this->requireCacheData($badges_key); | |||||
} | |||||
public function getFullName() { | public function getFullName() { | ||||
if (strlen($this->getRealName())) { | if (strlen($this->getRealName())) { | ||||
return $this->getUsername().' ('.$this->getRealName().')'; | return $this->getUsername().' ('.$this->getRealName().')'; | ||||
} else { | } else { | ||||
return $this->getUsername(); | return $this->getUsername(); | ||||
} | } | ||||
} | } | ||||
▲ Show 20 Lines • Show All 747 Lines • Show Last 20 Lines |