Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F548986
PhabricatorUserProfile.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
)
->
setTitle
(
''
)
->
setBlurb
(
''
);
}
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
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 1:58 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
113688
Default Alt Text
PhabricatorUserProfile.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment