Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93483385
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, Nov 29, 03:05
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 03:05 (2 d)
Engine
blob
Format
Raw Data
Handle
22651026
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