Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F7188827
ArcanistBuildBuildplanHardpointQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistBuildBuildplanHardpointQuery.php
View Options
<?php
final
class
ArcanistBuildBuildplanHardpointQuery
extends
ArcanistRuntimeHardpointQuery
{
public
function
getHardpoints
()
{
return
array
(
ArcanistBuildRef
::
HARDPOINT_BUILDPLANREF
,
);
}
protected
function
canLoadRef
(
ArcanistRef
$ref
)
{
return
(
$ref
instanceof
ArcanistBuildRef
);
}
public
function
loadHardpoint
(
array
$refs
,
$hardpoint
)
{
$plan_phids
=
mpull
(
$refs
,
'getBuildPlanPHID'
);
$plan_phids
=
array_fuse
(
$plan_phids
);
$plan_phids
=
array_values
(
$plan_phids
);
$plans
=
(
yield
$this
->
yieldConduitSearch
(
'harbormaster.buildplan.search'
,
array
(
'phids'
=>
$plan_phids
,
)));
$plan_refs
=
array
();
foreach
(
$plans
as
$plan
)
{
$plan_ref
=
ArcanistBuildPlanRef
::
newFromConduit
(
$plan
);
$plan_refs
[]
=
$plan_ref
;
}
$plan_refs
=
mpull
(
$plan_refs
,
'getPHID'
);
$results
=
array
();
foreach
(
$refs
as
$key
=>
$build_ref
)
{
$plan_phid
=
$build_ref
->
getBuildPlanPHID
();
$plan
=
idx
(
$plan_refs
,
$plan_phid
);
$results
[
$key
]
=
$plan
;
}
yield
$this
->
yieldMap
(
$results
);
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Jul 8, 08:32 (12 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
809508
Default Alt Text
ArcanistBuildBuildplanHardpointQuery.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment