Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F121700181
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
Sun, Jul 13, 06:54
Size
1 KB
Mime Type
text/x-php
Expires
Tue, Jul 15, 06:54 (2 d)
Engine
blob
Format
Raw Data
Handle
27376580
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