Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72192984
HarbormasterBuildPHIDType.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, Jul 15, 05:58
Size
911 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 05:58 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
19038244
Attached To
rPH Phabricator
HarbormasterBuildPHIDType.php
View Options
<?php
final
class
HarbormasterBuildPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'HMBD'
;
public
function
getTypeName
()
{
return
pht
(
'Build'
);
}
public
function
newObject
()
{
return
new
HarbormasterBuild
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorHarbormasterApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
HarbormasterBuildQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$build
=
$objects
[
$phid
];
$build_id
=
$build
->
getID
();
$name
=
$build
->
getName
();
$handle
->
setName
(
pht
(
'Build %d: %s'
,
$build_id
,
$name
));
$handle
->
setURI
(
"/harbormaster/build/{$build_id}/"
);
}
}
}
Event Timeline
Log In to Comment