Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93922396
DoorkeeperBridgedObjectCurtainExtension.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
Mon, Dec 2, 13:11
Size
706 B
Mime Type
text/x-php
Expires
Wed, Dec 4, 13:11 (2 d)
Engine
blob
Format
Raw Data
Handle
22725061
Attached To
rPH Phabricator
DoorkeeperBridgedObjectCurtainExtension.php
View Options
<?php
final
class
DoorkeeperBridgedObjectCurtainExtension
extends
PHUICurtainExtension
{
const
EXTENSIONKEY
=
'doorkeeper.bridged-object'
;
public
function
shouldEnableForObject
(
$object
)
{
return
(
$object
instanceof
DoorkeeperBridgedObjectInterface
);
}
public
function
getExtensionApplication
()
{
return
new
PhabricatorDoorkeeperApplication
();
}
public
function
buildCurtainPanel
(
$object
)
{
$xobj
=
$object
->
getBridgedObject
();
if
(!
$xobj
)
{
return
null
;
}
$tag
=
id
(
new
DoorkeeperTagView
())
->
setExternalObject
(
$xobj
);
return
$this
->
newPanel
()
->
setHeaderText
(
pht
(
'Imported From'
))
->
setOrder
(
5000
)
->
appendChild
(
$tag
);
}
}
Event Timeline
Log In to Comment