Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121635097
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
Sat, Jul 12, 16:43
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Jul 14, 16:43 (2 d)
Engine
blob
Format
Raw Data
Handle
27363766
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