Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F107089145
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
Fri, Apr 4, 11:11
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Apr 6, 11:11 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25348630
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
PhabricatorHeaderView
())
->
setHeader
(
$title
);
$table
=
$this
->
buildLogTableView
(
$logs
);
$table
->
appendChild
(
$pager
);
$nav
->
appendChild
(
array
(
$header
,
$table
,
$pager
,
));
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
$title
)
->
setHref
(
$this
->
getApplicationURI
(
'/logs/'
)));
$nav
->
setCrumbs
(
$crumbs
);
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
$title
,
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment