Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1070874
PhabricatorUserCustomField.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
670 B
Referenced Files
None
Subscribers
None
PhabricatorUserCustomField.php
View Options
<?php
abstract
class
PhabricatorUserCustomField
extends
PhabricatorCustomField
implements
PhabricatorUserCustomFieldInterface
{
public
function
shouldEnableForRole
(
$role
)
{
switch
(
$role
)
{
case
PhabricatorUserCustomFieldInterface
::
ROLE_EDIT
:
return
$this
->
shouldAppearOnProfileEdit
();
}
return
parent
::
shouldEnableForRole
(
$role
);
}
public
function
shouldAppearOnProfileEdit
()
{
return
true
;
}
/* -( PhabricatorCustomField )--------------------------------------------- */
public
function
canDisableField
()
{
return
false
;
}
public
function
shouldAppearInApplicationTransactions
()
{
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 3:56 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
262484
Default Alt Text
PhabricatorUserCustomField.php (670 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment