Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F97150657
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
Thu, Jan 2, 23:16
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Jan 4, 23:16 (2 d)
Engine
blob
Format
Raw Data
Handle
23338435
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
);
}
protected
function
buildApplicationCrumbs
()
{
return
$this
->
buildConpherenceApplicationCrumbs
(
$is_rooms
=
true
);
}
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