Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852468
DifferentialDiffPHIDType.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
855 B
Referenced Files
None
Subscribers
None
DifferentialDiffPHIDType.php
View Options
<?php
final
class
DifferentialDiffPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DIFF'
;
public
function
getTypeName
(
)
{
return
pht
(
'Differential Diff'
)
;
}
public
function
newObject
(
)
{
return
new
DifferentialDiff
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
'PhabricatorDifferentialApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
DifferentialDiffQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$diff
=
$objects
[
$phid
]
;
$id
=
$diff
->
getID
(
)
;
$handle
->
setName
(
pht
(
'Diff %d'
,
$id
)
)
;
$handle
->
setURI
(
"/differential/diff/{$id}/"
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:35 (12 h, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1752111
Default Alt Text
DifferentialDiffPHIDType.php (855 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment