Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F464867
HarbormasterLintMessagesController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
HarbormasterLintMessagesController.php
View Options
<?php
final
class
HarbormasterLintMessagesController
extends
HarbormasterController
{
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$this
->
getViewer
();
$buildable
=
id
(
new
HarbormasterBuildableQuery
())
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$request
->
getURIData
(
'id'
)))
->
needBuilds
(
true
)
->
needTargets
(
true
)
->
executeOne
();
if
(!
$buildable
)
{
return
new
Aphront404Response
();
}
$id
=
$buildable
->
getID
();
$target_phids
=
array
();
foreach
(
$buildable
->
getBuilds
()
as
$build
)
{
foreach
(
$build
->
getBuildTargets
()
as
$target
)
{
$target_phids
[]
=
$target
->
getPHID
();
}
}
$lint_data
=
array
();
if
(
$target_phids
)
{
$lint_data
=
id
(
new
HarbormasterBuildLintMessage
())->
loadAllWhere
(
'buildTargetPHID IN (%Ls)'
,
$target_phids
);
}
else
{
$lint_data
=
array
();
}
$lint_table
=
id
(
new
HarbormasterLintPropertyView
())
->
setUser
(
$viewer
)
->
setLintMessages
(
$lint_data
);
$lint
=
id
(
new
PHUIObjectBoxView
())
->
setHeaderText
(
pht
(
'Lint Messages'
))
->
appendChild
(
$lint_table
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$this
->
addBuildableCrumb
(
$crumbs
,
$buildable
);
$crumbs
->
addTextCrumb
(
pht
(
'Lint'
));
$title
=
array
(
$buildable
->
getMonogram
(),
pht
(
'Lint'
),
);
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$lint
,
),
array
(
'title'
=>
$title
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 5, 10:03 PM (1 d, 19 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
74277
Default Alt Text
HarbormasterLintMessagesController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment