Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96218361
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 23, 21:15
Size
706 B
Mime Type
text/x-php
Expires
Wed, Dec 25, 21:15 (2 d)
Engine
blob
Format
Raw Data
Handle
23145351
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