Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99193874
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
Wed, Jan 22, 05:49
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Jan 24, 05:49 (2 d)
Engine
blob
Format
Raw Data
Handle
23732386
Attached To
rPH Phabricator
PhabricatorChatLogChannelListController.php
View Options
<?php
final
class
PhabricatorChatLogChannelListController
extends
PhabricatorChatLogController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
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'
),
));
}
}
Event Timeline
Log In to Comment