Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F83273364
PhragmentFragmentVersionPHIDType.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, Sep 16, 04:07
Size
972 B
Mime Type
text/x-php
Expires
Wed, Sep 18, 04:07 (2 d)
Engine
blob
Format
Raw Data
Handle
20814056
Attached To
rPH Phabricator
PhragmentFragmentVersionPHIDType.php
View Options
<?php
final
class
PhragmentFragmentVersionPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'PHRV'
;
public
function
getTypeName
()
{
return
pht
(
'Fragment Version'
);
}
public
function
newObject
()
{
return
new
PhragmentFragmentVersion
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorPhragmentApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
PhragmentFragmentVersionQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
$viewer
=
$query
->
getViewer
();
foreach
(
$handles
as
$phid
=>
$handle
)
{
$version
=
$objects
[
$phid
];
$handle
->
setName
(
pht
(
'Fragment Version %d: %s'
,
$version
->
getSequence
(),
$version
->
getFragment
()->
getName
()));
$handle
->
setURI
(
$version
->
getURI
());
}
}
}
Event Timeline
Log In to Comment