Path: blob/master/src/applications/people/storage/PhabricatorUserProfile.php
12256 views
<?php12final class PhabricatorUserProfile extends PhabricatorUserDAO {34protected $userPHID;5protected $title;6protected $blurb;7protected $profileImagePHID;8protected $icon;910public static function initializeNewProfile(PhabricatorUser $user) {11$default_icon = PhabricatorPeopleIconSet::getDefaultIconKey();1213return id(new self())14->setUserPHID($user->getPHID())15->setIcon($default_icon)16->setTitle('')17->setBlurb('');18}1920protected function getConfiguration() {21return array(22self::CONFIG_COLUMN_SCHEMA => array(23'title' => 'text255',24'blurb' => 'text',25'profileImagePHID' => 'phid?',26'icon' => 'text32',27),28self::CONFIG_KEY_SCHEMA => array(29'userPHID' => array(30'columns' => array('userPHID'),31'unique' => true,32),33),34) + parent::getConfiguration();35}3637public function getDisplayTitle() {38$title = $this->getTitle();39if (strlen($title)) {40return $title;41}4243$icon_key = $this->getIcon();44return PhabricatorPeopleIconSet::getIconName($icon_key);45}4647}484950