Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99495408
PhabricatorUserCustomField.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
Sat, Jan 25, 00:31
Size
670 B
Mime Type
text/x-php
Expires
Mon, Jan 27, 00:31 (2 d)
Engine
blob
Format
Raw Data
Handle
23806161
Attached To
rPH Phabricator
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
;
}
}
Event Timeline
Log In to Comment