Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106901594
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, Apr 2, 07:19
Size
1 KB
Mime Type
text/x-php
Expires
Fri, Apr 4, 07:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
25301580
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
();
$rows
=
array
();
foreach
(
$channels
as
$channel
)
{
$rows
[]
=
array
(
phutil_tag
(
'a'
,
array
(
'href'
=>
'/chatlog/channel/'
.
$channel
->
getID
().
'/'
,
),
$channel
->
getChannelName
()),
$channel
->
getServiceName
(),
$channel
->
getServiceType
());
}
$table
=
new
AphrontTableView
(
$rows
);
$table
->
setHeaders
(
array
(
'Channel'
,
'Service Name'
,
'Service Type'
,
));
$table
->
setColumnClasses
(
array
(
''
,
''
,
''
,
));
$title
=
pht
(
'Channel List'
);
$header
=
id
(
new
PhabricatorHeaderView
())
->
setHeader
(
$title
);
$panel
=
id
(
new
AphrontPanelView
())
->
appendChild
(
$table
)
->
setNoBackground
(
true
);
$crumbs
=
$this
->
buildApplicationCrumbs
()
->
addCrumb
(
id
(
new
PhabricatorCrumbView
())
->
setName
(
pht
(
'Channel List'
))
->
setHref
(
$this
->
getApplicationURI
()));
return
$this
->
buildStandardPageResponse
(
array
(
$crumbs
,
$header
,
$panel
,
),
array
(
'title'
=>
'Channel List'
,
));
}
}
Event Timeline
Log In to Comment