Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F93619867
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
Sat, Nov 30, 05:16
Size
1 KB
Mime Type
text/x-php
Expires
Mon, Dec 2, 05:16 (2 d)
Engine
blob
Format
Raw Data
Handle
22677596
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
()
{
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
$nav
->
addLabel
(
pht
(
'Feed'
));
$nav
->
addFilter
(
'all'
,
pht
(
'All Activity'
));
$nav
->
addFilter
(
'projects'
,
pht
(
'My Projects'
));
return
$nav
;
}
protected
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
()->
getMenu
();
}
}
Event Timeline
Log In to Comment