Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2889716
DifferentialChangesetPHIDType.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
843 B
Referenced Files
None
Subscribers
None
DifferentialChangesetPHIDType.php
View Options
<?php
final
class
DifferentialChangesetPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'DCNG'
;
public
function
getTypeName
(
)
{
return
pht
(
'Differential Changeset'
)
;
}
public
function
newObject
(
)
{
return
new
DifferentialChangeset
(
)
;
}
public
function
getPHIDTypeApplicationClass
(
)
{
return
PhabricatorDifferentialApplication
::
class
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
DifferentialChangesetQuery
(
)
)
->
withPHIDs
(
$phids
)
;
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$changeset
=
$objects
[
$phid
]
;
$id
=
$changeset
->
getID
(
)
;
$handle
->
setName
(
pht
(
'Changeset %d'
,
$id
)
)
;
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 12:32 (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1124607
Default Alt Text
DifferentialChangesetPHIDType.php (843 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment