Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2331517
PhabricatorPronounSetting.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
850 B
Referenced Files
None
Subscribers
None
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
,
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 7:38 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
442471
Default Alt Text
PhabricatorPronounSetting.php (850 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment