Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F103267837
PhabricatorPronounSetting.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, Feb 28, 17:07
Size
850 B
Mime Type
text/x-php
Expires
Sun, Mar 2, 17:07 (1 d, 19 h)
Engine
blob
Format
Raw Data
Handle
24530440
Attached To
rPH Phabricator
PhabricatorPronounSetting.php
View Options
<?php
final
class
PhabricatorPronounSetting
extends
PhabricatorSelectSetting
{
const
SETTINGKEY
=
'pronoun'
;
public
function
getSettingName
()
{
return
pht
(
'Pronoun'
);
}
protected
function
getControlInstructions
()
{
return
pht
(
'Choose the pronoun you prefer.'
);
}
public
function
getSettingDefaultValue
()
{
return
PhutilPerson
::
SEX_UNKNOWN
;
}
protected
function
getSelectOptions
()
{
$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
::
SEX_UNKNOWN
=>
$label_unknown
,
PhutilPerson
::
SEX_MALE
=>
$label_his
,
PhutilPerson
::
SEX_FEMALE
=>
$label_her
,
);
}
}
Event Timeline
Log In to Comment