Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F109447117
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
Tue, Apr 22, 00:27
Size
1 KB
Mime Type
text/x-php
Expires
Thu, Apr 24, 00:27 (2 d)
Engine
blob
Format
Raw Data
Handle
25714502
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
PhabricatorObjectItemListView
();
foreach
(
$channels
as
$channel
)
{
$item
=
id
(
new
PhabricatorObjectItemView
())
->
setHeader
(
$channel
->
getChannelName
())
->
setHref
(
'/chatlog/channel/'
.
$channel
->
getID
().
'/'
)
->
addAttribute
(
$channel
->
getServiceName
())
->
addAttribute
(
$channel
->
getServiceType
());
$list
->
addItem
(
$item
);
}
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
pht
(
'Channel List'
))
->
setHref
(
$this
->
getApplicationURI
()));
return
$this
->
buildApplicationPage
(
array
(
$crumbs
,
$list
,
),
array
(
'title'
=>
pht
(
'Channel List'
),
'device'
=>
true
,
));
}
}
Event Timeline
Log In to Comment