Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92694925
PhabricatorUserProfile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Nov 22, 20:46
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 20:46 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
22488544
Attached To
rPH Phabricator
PhabricatorUserProfile.php
View Options
<?php
final
class
PhabricatorUserProfile
extends
PhabricatorUserDAO
{
protected
$userPHID
;
protected
$title
;
protected
$blurb
;
protected
$profileImagePHID
;
protected
$icon
;
public
static
function
initializeNewProfile
(
PhabricatorUser
$user
)
{
$default_icon
=
PhabricatorPeopleIconSet
::
getDefaultIconKey
();
return
id
(
new
self
())
->
setUserPHID
(
$user
->
getPHID
())
->
setIcon
(
$default_icon
);
}
protected
function
getConfiguration
()
{
return
array
(
self
::
CONFIG_COLUMN_SCHEMA
=>
array
(
'title'
=>
'text255'
,
'blurb'
=>
'text'
,
'profileImagePHID'
=>
'phid?'
,
'icon'
=>
'text32'
,
),
self
::
CONFIG_KEY_SCHEMA
=>
array
(
'userPHID'
=>
array
(
'columns'
=>
array
(
'userPHID'
),
'unique'
=>
true
,
),
),
)
+
parent
::
getConfiguration
();
}
public
function
getDisplayTitle
()
{
$title
=
$this
->
getTitle
();
if
(
strlen
(
$title
))
{
return
$title
;
}
$icon_key
=
$this
->
getIcon
();
return
PhabricatorPeopleIconSet
::
getIconName
(
$icon_key
);
}
}
Event Timeline
Log In to Comment