Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1068178
PhluxListController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
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
,
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 1:48 PM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
261278
Default Alt Text
PhluxListController.php (1 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment