Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F72532454
HarbormasterBuildStepPHIDType.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, 14:15
Size
967 B
Mime Type
text/x-php
Expires
Wed, Jul 17, 14:15 (2 d)
Engine
blob
Format
Raw Data
Handle
19059625
Attached To
rPH Phabricator
HarbormasterBuildStepPHIDType.php
View Options
<?php
final
class
HarbormasterBuildStepPHIDType
extends
PhabricatorPHIDType
{
const
TYPECONST
=
'HMCS'
;
public
function
getTypeName
()
{
return
pht
(
'Build Step'
);
}
public
function
newObject
()
{
return
new
HarbormasterBuildStep
();
}
public
function
getPHIDTypeApplicationClass
()
{
return
'PhabricatorHarbormasterApplication'
;
}
protected
function
buildQueryForObjects
(
PhabricatorObjectQuery
$query
,
array
$phids
)
{
return
id
(
new
HarbormasterBuildStepQuery
())
->
withPHIDs
(
$phids
);
}
public
function
loadHandles
(
PhabricatorHandleQuery
$query
,
array
$handles
,
array
$objects
)
{
foreach
(
$handles
as
$phid
=>
$handle
)
{
$build_step
=
$objects
[
$phid
];
$id
=
$build_step
->
getID
();
$name
=
$build_step
->
getName
();
$handle
->
setName
(
$name
)
->
setFullName
(
pht
(
'Build Step %d: %s'
,
$id
,
$name
))
->
setURI
(
"/harbormaster/step/view/{$id}/"
);
}
}
}
Event Timeline
Log In to Comment