Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3282953
ArcanistBuildBuildplanHardpointQuery.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
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
,
null
,
'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
Mar 24 2025, 12:37 (7 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1119590
Default Alt Text
ArcanistBuildBuildplanHardpointQuery.php (1 KB)
Attached To
Mode
rARC Arcanist
Attached
Detach File
Event Timeline
Log In to Comment