Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F96232906
DrydockResourceListController.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:45
Size
1008 B
Mime Type
text/x-php
Expires
Thu, Dec 26, 00:45 (1 d, 9 h)
Engine
blob
Format
Raw Data
Handle
23126151
Attached To
rPH Phabricator
DrydockResourceListController.php
View Options
<?php
final
class
DrydockResourceListController
extends
DrydockController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$title
=
pht
(
'Resources'
);
$resource_header
=
id
(
new
PHUIHeaderView
())
->
setHeader
(
$title
);
$pager
=
new
AphrontPagerView
();
$pager
->
setURI
(
new
PhutilURI
(
'/drydock/resource/'
),
'offset'
);
$resources
=
id
(
new
DrydockResourceQuery
())
->
setViewer
(
$user
)
->
executeWithOffsetPager
(
$pager
);
$resource_list
=
$this
->
buildResourceListView
(
$resources
);
$crumbs
=
$this
->
buildApplicationCrumbs
();
$crumbs
->
addTextCrumb
(
$title
,
$request
->
getRequestURI
());
$nav
=
$this
->
buildSideNav
(
'resource'
);
$nav
->
setCrumbs
(
$crumbs
);
$nav
->
appendChild
(
array
(
$resource_header
,
$resource_list
,
$pager
,
));
return
$this
->
buildApplicationPage
(
$nav
,
array
(
'title'
=>
$title
,
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment