Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92691338
PhabricatorFeedController.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 22, 19:53
Size
1 KB
Mime Type
text/x-php
Expires
Sun, Nov 24, 19:53 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
22487635
Attached To
rPH Phabricator
PhabricatorFeedController.php
View Options
<?php
abstract
class
PhabricatorFeedController
extends
PhabricatorController
{
public
function
buildStandardPageResponse
(
$view
,
array
$data
)
{
$page
=
$this
->
buildStandardPageView
();
$page
->
setApplicationName
(
pht
(
'Feed'
));
$page
->
setBaseURI
(
'/feed/'
);
$page
->
setTitle
(
idx
(
$data
,
'title'
));
$page
->
setGlyph
(
"
\x
E2
\x
88
\x
9E"
);
$page
->
appendChild
(
$view
);
$response
=
new
AphrontWebpageResponse
();
if
(!
empty
(
$data
[
'public'
]))
{
$page
->
setFrameable
(
true
);
$page
->
setShowChrome
(
false
);
$response
->
setFrameable
(
true
);
}
return
$response
->
setContent
(
$page
->
render
());
}
protected
function
buildSideNavView
()
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PhabricatorFeedSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
()->
getMenu
();
}
}
Event Timeline
Log In to Comment