Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112303135
DrydockBlueprintListController.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
Fri, May 9, 19:58
Size
1 KB
Mime Type
text/x-php
Expires
Sun, May 11, 19:58 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26058610
Attached To
rPH Phabricator
DrydockBlueprintListController.php
View Options
<?php
final
class
DrydockBlueprintListController
extends
DrydockBlueprintController
{
private
$queryKey
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
queryKey
=
idx
(
$data
,
'queryKey'
);
}
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$this
->
queryKey
)
->
setSearchEngine
(
new
DrydockBlueprintSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildApplicationCrumbs
()
{
$can_create
=
$this
->
hasApplicationCapability
(
DrydockCreateBlueprintsCapability
::
CAPABILITY
);
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'New Blueprint'
))
->
setHref
(
$this
->
getApplicationURI
(
'/blueprint/create/'
))
->
setDisabled
(!
$can_create
)
->
setWorkflow
(!
$can_create
)
->
setIcon
(
'fa-plus-square'
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment