Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F104561944
PhabricatorUserConfigOptions.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
Mon, Mar 10, 11:59
Size
1 KB
Mime Type
text/x-php
Expires
Wed, Mar 12, 11:59 (2 d)
Engine
blob
Format
Raw Data
Handle
24812863
Attached To
rPH Phabricator
PhabricatorUserConfigOptions.php
View Options
<?php
final
class
PhabricatorUserConfigOptions
extends
PhabricatorApplicationConfigOptions
{
public
function
getName
()
{
return
pht
(
"User Profiles"
);
}
public
function
getDescription
()
{
return
pht
(
"User profiles configuration."
);
}
public
function
getOptions
()
{
$default
=
array
(
id
(
new
PhabricatorUserRealNameField
())->
getFieldKey
()
=>
true
,
id
(
new
PhabricatorUserTitleField
())->
getFieldKey
()
=>
true
,
id
(
new
PhabricatorUserSinceField
())->
getFieldKey
()
=>
true
,
id
(
new
PhabricatorUserRolesField
())->
getFieldKey
()
=>
true
,
id
(
new
PhabricatorUserStatusField
())->
getFieldKey
()
=>
true
,
id
(
new
PhabricatorUserBlurbField
())->
getFieldKey
()
=>
true
,
);
foreach
(
$default
as
$key
=>
$enabled
)
{
$default
[
$key
]
=
array
(
'disabled'
=>
!
$enabled
,
);
}
$custom_field_type
=
'custom:PhabricatorCustomFieldConfigOptionType'
;
return
array
(
$this
->
newOption
(
'user.fields'
,
$custom_field_type
,
$default
)
->
setCustomData
(
id
(
new
PhabricatorUser
())->
getCustomFieldBaseClass
())
->
setDescription
(
pht
(
"Select and reorder user profile fields."
)),
);
}
}
Event Timeline
Log In to Comment