Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2890514
DrydockLogListController.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
2 KB
Referenced Files
None
Subscribers
None
DrydockLogListController.php
View Options
<?php
final
class
DrydockLogListController
extends
DrydockLogController
{
public
function
shouldAllowPublic
(
)
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$viewer
=
$request
->
getViewer
(
)
;
$engine
=
new
DrydockLogSearchEngine
(
)
;
$id
=
$request
->
getURIData
(
'id'
)
;
$type
=
$request
->
getURIData
(
'type'
)
;
switch
(
$type
)
{
case
'blueprint'
:
$blueprint
=
id
(
new
DrydockBlueprintQuery
(
)
)
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
)
)
->
executeOne
(
)
;
if
(
!
$blueprint
)
{
return
new
Aphront404Response
(
)
;
}
$engine
->
setBlueprint
(
$blueprint
)
;
$this
->
setBlueprint
(
$blueprint
)
;
break
;
case
'resource'
:
$resource
=
id
(
new
DrydockResourceQuery
(
)
)
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
)
)
->
executeOne
(
)
;
if
(
!
$resource
)
{
return
new
Aphront404Response
(
)
;
}
$engine
->
setResource
(
$resource
)
;
$this
->
setResource
(
$resource
)
;
break
;
case
'lease'
:
$lease
=
id
(
new
DrydockLeaseQuery
(
)
)
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
)
)
->
executeOne
(
)
;
if
(
!
$lease
)
{
return
new
Aphront404Response
(
)
;
}
$engine
->
setLease
(
$lease
)
;
$this
->
setLease
(
$lease
)
;
break
;
case
'operation'
:
$operation
=
id
(
new
DrydockRepositoryOperationQuery
(
)
)
->
setViewer
(
$viewer
)
->
withIDs
(
array
(
$id
)
)
->
executeOne
(
)
;
if
(
!
$operation
)
{
return
new
Aphront404Response
(
)
;
}
$engine
->
setOperation
(
$operation
)
;
$this
->
setOperation
(
$operation
)
;
break
;
default
:
return
new
Aphront404Response
(
)
;
}
$query_key
=
$request
->
getURIData
(
'queryKey'
)
;
$controller
=
id
(
new
PhabricatorApplicationSearchController
(
)
)
->
setQueryKey
(
$query_key
)
->
setSearchEngine
(
$engine
)
->
setNavigation
(
$this
->
buildSideNavView
(
)
)
;
return
$this
->
delegateToController
(
$controller
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 13:42 (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1125171
Default Alt Text
DrydockLogListController.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment