Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F99662168
PhabricatorPhurlURLListController.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, Jan 26, 01:20
Size
886 B
Mime Type
text/x-php
Expires
Tue, Jan 28, 01:20 (2 d)
Engine
blob
Format
Raw Data
Handle
23839121
Attached To
rPH Phabricator
PhabricatorPhurlURLListController.php
View Options
<?php
final
class
PhabricatorPhurlURLListController
extends
PhabricatorPhurlController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$engine
=
new
PhabricatorPhurlURLSearchEngine
();
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$request
->
getURIData
(
'queryKey'
))
->
setSearchEngine
(
$engine
)
->
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
PhabricatorPhurlURLSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
}
Event Timeline
Log In to Comment