Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F112313887
PhamePostListController.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, May 9, 22:22
Size
953 B
Mime Type
text/x-php
Expires
Sun, May 11, 22:22 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
26060293
Attached To
rPH Phabricator
PhamePostListController.php
View Options
<?php
final
class
PhamePostListController
extends
PhamePostController
{
public
function
shouldAllowPublic
()
{
return
true
;
}
public
function
handleRequest
(
AphrontRequest
$request
)
{
$query_key
=
$request
->
getURIData
(
'queryKey'
);
$controller
=
id
(
new
PhabricatorApplicationSearchController
())
->
setQueryKey
(
$query_key
)
->
setSearchEngine
(
new
PhamePostSearchEngine
())
->
setNavigation
(
$this
->
buildSideNavView
());
return
$this
->
delegateToController
(
$controller
);
}
public
function
buildSideNavView
()
{
$viewer
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PhamePostSearchEngine
())
->
setViewer
(
$viewer
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
addLabel
(
pht
(
'Blogs'
));
$nav
->
addFilter
(
'blog/'
,
pht
(
'Manage Blogs'
));
$nav
->
selectFilter
(
null
);
return
$nav
;
}
}
Event Timeline
Log In to Comment