Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106056741
PhabricatorChatLogChannelListController.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, Mar 21, 22:25
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Mar 23, 22:25 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25065979
Attached To
rPH Phabricator
PhabricatorChatLogChannelListController.php
View Options
<?php
final
class
PhabricatorChatLogChannelListController
extends
PhabricatorChatLogController
{
public
function
processRequest
()
{
$request
=
$this
->
getRequest
();
$user
=
$request
->
getUser
();
$channels
=
id
(
new
PhabricatorChatLogChannelQuery
())
->
setViewer
(
$user
)
->
execute
();
$list
=
new
PHUIObjectItemListView
();
foreach
(
$channels
as
$channel
)
{
$item
=
id
(
new
PHUIObjectItemView
())
->
setHeader
(
$channel
->
getChannelName
())
->
setHref
(
'/chatlog/channel/'
.
$channel
->
getID
().
'/'
)
->
addAttribute
(
$channel
->
getServiceName
())
->
addAttribute
(
$channel
->
getServiceType
());
$list
->
addItem
(
$item
);
}
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addTextCrumb
(
pht
(
'Channel List'
),
$this
->
getApplicationURI
());
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$list
,
),
array
(
'title'
=>
pht
(
'Channel List'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment