Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93493625
PhluxListController.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, Nov 29, 04:55
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 04:55 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22650321
Attached To
rPH Phabricator
PhluxListController.php
View Options
<?php
final
class
PhluxListController
extends
PhluxController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$pager
=
new
AphrontCursorPagerView
();
$pager
->
readFromRequest
(
$request
);
$query
=
id
(
new
PhluxVariableQuery
())
->
setViewer
(
$user
);
$vars
=
$query
->
executeWithCursorPager
(
$pager
);
$view
=
new
PHUIObjectItemListView
();
foreach
(
$vars
as
$var
)
{
$key
=
$var
->
getVariableKey
();
$item
=
new
PHUIObjectItemView
();
$item
->
setHeader
(
$key
);
$item
->
setHref
(
$this
->
getApplicationURI
(
'/view/'
.
$key
.
'/'
));
$item
->
addIcon
(
'none'
,
phabricator_datetime
(
$var
->
getDateModified
(),
$user
));
$view
->
addItem
(
$item
);
}
$crumbs
=
$this
->
buildApplicationCrumbs
();
$title
=
pht
(
'Variable List'
);
$crumbs
->
addTextCrumb
(
$title
,
$this
->
getApplicationURI
());
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$view
,
$pager
,
),
array
(
'title'
=>
$title
,
));
}
}
Event Timeline
Log In to Comment