Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102440415
PhabricatorDirectoryController.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
Thu, Feb 20, 18:20
Size
844 B
Mime Type
text/x-php
Expires
Sat, Feb 22, 18:20 (2 d)
Engine
blob
Format
Raw Data
Handle
24357588
Attached To
rPH Phabricator
PhabricatorDirectoryController.php
View Options
<?php
abstract
class
PhabricatorDirectoryController
extends
PhabricatorController
{
public
function
buildStandardPageResponse
(
$view
,
array
$data
)
{
$page
=
$this
->
buildStandardPageView
();
$page
->
setBaseURI
(
'/'
);
$page
->
setTitle
(
idx
(
$data
,
'title'
));
$page
->
setGlyph
(
"
\x
E2
\x
9A
\x
92"
);
$page
->
appendChild
(
$view
);
$response
=
new
AphrontWebpageResponse
();
return
$response
->
setContent
(
$page
->
render
());
}
public
function
buildNav
()
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
'/'
));
$nav
->
addLabel
(
'Phabricator'
);
$nav
->
addFilter
(
'home'
,
'Tactical Command'
,
'/'
);
$nav
->
addFilter
(
'jump'
,
'Jump Nav'
);
$nav
->
addFilter
(
'feed'
,
'Feed'
);
$nav
->
addFilter
(
'applications'
,
'More Stuff'
);
return
$nav
;
}
}
Event Timeline
Log In to Comment