Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852320
HarbormasterBuildDependencyDatasource.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
HarbormasterBuildDependencyDatasource.php
View Options
<?php
final
class
HarbormasterBuildDependencyDatasource
extends
PhabricatorTypeaheadDatasource
{
public
function
isBrowsable
(
)
{
// TODO: This should be browsable, but fixing it is involved.
return
false
;
}
public
function
getBrowseTitle
(
)
{
return
pht
(
'Browse Dependencies'
)
;
}
public
function
getPlaceholderText
(
)
{
return
pht
(
'Type another build step name...'
)
;
}
public
function
getDatasourceApplicationClass
(
)
{
return
'PhabricatorHarbormasterApplication'
;
}
public
function
loadResults
(
)
{
$viewer
=
$this
->
getViewer
(
)
;
$plan_phid
=
$this
->
getParameter
(
'planPHID'
)
;
$step_phid
=
$this
->
getParameter
(
'stepPHID'
)
;
$steps
=
id
(
new
HarbormasterBuildStepQuery
(
)
)
->
setViewer
(
$viewer
)
->
withBuildPlanPHIDs
(
array
(
$plan_phid
)
)
->
execute
(
)
;
$steps
=
mpull
(
$steps
,
null
,
'getPHID'
)
;
if
(
count
(
$steps
)
===
0
)
{
return
array
(
)
;
}
$results
=
array
(
)
;
foreach
(
$steps
as
$phid
=>
$step
)
{
if
(
$step
->
getPHID
(
)
===
$step_phid
)
{
continue
;
}
$results
[
]
=
id
(
new
PhabricatorTypeaheadResult
(
)
)
->
setName
(
$step
->
getName
(
)
)
->
setURI
(
'/'
)
->
setPHID
(
$phid
)
;
}
return
$results
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:25 (1 d, 4 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1761807
Default Alt Text
HarbormasterBuildDependencyDatasource.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment