Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F106182109
PhabricatorCalendarEventListController.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, Mar 23, 08:48
Size
967 B
Mime Type
text/x-php
Expires
Tue, Mar 25, 08:48 (2 d)
Engine
blob
Format
Raw Data
Handle
25108396
Attached To
rPH Phabricator
PhabricatorCalendarEventListController.php
View Options
<?php
final
class
PhabricatorCalendarEventListController
extends
PhabricatorCalendarController
{
private
$queryKey
;
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
willProcessRequest
(
array
$data
)
{
$this
->
queryKey
=
idx
(
$data
,
'queryKey'
);
}
public
function
processRequest
()
{
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$this
->
queryKey
)
->
setSearchEngine
(
new
PhabricatorCalendarEventSearchEngine
())
->
setNavigation
(
$this
->
buildSideNav
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildSideNav
()
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PhabricatorCalendarEventSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
}
Event Timeline
Log In to Comment