Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93567904
ConpherenceRoomListController.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, 19:36
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Dec 1, 19:36 (2 d)
Engine
blob
Format
Raw Data
Handle
22665226
Attached To
rPH Phabricator
ConpherenceRoomListController.php
View Options
<?php
final
class
ConpherenceRoomListController
extends
ConpherenceController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$user
=
$request
->
getUser
();
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$request
->
getURIData
(
'queryKey'
))
->
setSearchEngine
(
new
ConpherenceThreadSearchEngine
())
->
setNavigation
(
$this
->
buildRoomsSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildRoomsSideNavView
(
true
)->
getMenu
();
}
private
function
buildRoomsSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addFilter
(
'new/'
,
pht
(
'Create Room'
));
}
id
(
new
ConpherenceThreadSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
}
Event Timeline
Log In to Comment