Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92749570
DifferentialRevisionRelationship.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, Nov 23, 10:05
Size
416 B
Mime Type
text/x-php
Expires
Mon, Nov 25, 10:05 (1 d, 20 h)
Engine
blob
Format
Raw Data
Handle
22504721
Attached To
rPH Phabricator
DifferentialRevisionRelationship.php
View Options
<?php
abstract
class
DifferentialRevisionRelationship
extends
PhabricatorObjectRelationship
{
public
function
isEnabledForObject
(
$object
)
{
$viewer
=
$this
->
getViewer
();
$has_app
=
PhabricatorApplication
::
isClassInstalledForViewer
(
'PhabricatorDifferentialApplication'
,
$viewer
);
if
(!
$has_app
)
{
return
false
;
}
return
(
$object
instanceof
DifferentialRevision
);
}
}
Event Timeline
Log In to Comment