Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96229623
DrydockLogController.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
Tue, Dec 24, 00:02
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Dec 26, 00:02 (2 d)
Engine
blob
Format
Raw Data
Handle
23126319
Attached To
rPH Phabricator
DrydockLogController.php
View Options
<?php
final
class
DrydockLogController
extends
DrydockController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$nav
=
$this
->
buildSideNav
(
'log'
);
$query
=
new
DrydockLogQuery
();
$resource_ids
=
$request
->
getStrList
(
'resource'
);
if
(
$resource_ids
)
{
$query
->
withResourceIDs
(
$resource_ids
);
}
$lease_ids
=
$request
->
getStrList
(
'lease'
);
if
(
$lease_ids
)
{
$query
->
withLeaseIDs
(
$lease_ids
);
}
$pager
=
new
AphrontPagerView
();
$pager
->
setPageSize
(
500
);
$pager
->
setOffset
(
$request
->
getInt
(
'offset'
));
$pager
->
setURI
(
$request
->
getRequestURI
(),
'offset'
);
$logs
=
$query
->
executeWithOffsetPager
(
$pager
);
$title
=
pht
(
'Logs'
);
$header
=
id
(
new
PHUIHeaderView
())
->
setHeader
(
$title
);
$table
=
$this
->
buildLogTableView
(
$logs
);
$table
->
appendChild
(
$pager
);
$nav
->
appendChild
(
array
(
$header
,
$table
,
$pager
,
));
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$title
,
$this
->
getApplicationURI
(
'/logs/'
));
$nav
->
setCrumbs
(
$crumbs
);
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
$title
,
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment