Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
| Show First 20 Lines • Show All 786 Lines • ▼ Show 20 Lines | public static function getDefaultProfileImageURI() { | ||||
| return celerity_get_resource_uri('/rsrc/image/avatar.png'); | return celerity_get_resource_uri('/rsrc/image/avatar.png'); | ||||
| } | } | ||||
| public function getProfileImageURI() { | public function getProfileImageURI() { | ||||
| $uri_key = PhabricatorUserProfileImageCacheType::KEY_URI; | $uri_key = PhabricatorUserProfileImageCacheType::KEY_URI; | ||||
| return $this->requireCacheData($uri_key); | return $this->requireCacheData($uri_key); | ||||
| } | } | ||||
| public function getUnreadNotificationCount() { | |||||
| $notification_key = PhabricatorUserNotificationCountCacheType::KEY_COUNT; | |||||
| return $this->requireCacheData($notification_key); | |||||
| } | |||||
| public function getUnreadMessageCount() { | |||||
| $message_key = PhabricatorUserMessageCountCacheType::KEY_COUNT; | |||||
| return $this->requireCacheData($message_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 682 Lines • Show Last 20 Lines | |||||