Page Menu
Home
GnuPG
Search
Configure Global Search
Log In
Files
F34109702
PhabricatorPronounSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Size
1 KB
Subscribers
None
PhabricatorPronounSetting.php
View Options
<?php
final
class
PhabricatorPronounSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'pronoun'
;
public
function
getSettingName
()
{
return
pht
(
'Pronoun'
);
}
public
function
getSettingPanelKey
()
{
return
PhabricatorAccountSettingsPanel
::
PANELKEY
;
}
protected
function
getSettingOrder
()
{
return
200
;
}
protected
function
getControlInstructions
()
{
return
pht
(
'Choose the pronoun you prefer.'
);
}
public
function
getSettingDefaultValue
()
{
return
PhutilPerson
::
GENDER_UNKNOWN
;
}
protected
function
getSelectOptions
()
{
// TODO: When editing another user's settings as an administrator, this
// is not the best username: the user's username would be better.
$viewer
=
$this
->
getViewer
();
$username
=
$viewer
->
getUsername
();
$label_unknown
=
pht
(
'%s updated their profile'
,
$username
);
$label_her
=
pht
(
'%s updated her profile'
,
$username
);
$label_his
=
pht
(
'%s updated his profile'
,
$username
);
return
array
(
PhutilPerson
::
GENDER_UNKNOWN
=>
$label_unknown
,
PhutilPerson
::
GENDER_MASCULINE
=>
$label_his
,
PhutilPerson
::
GENDER_FEMININE
=>
$label_her
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Dec 5, 4:40 AM (12 h, 29 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
4c/c0/520c917e566bb656a083f0d1abc9
Attached To
rPHAB Phabricator
Event Timeline
Log In to Comment