Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92690908
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
Fri, Nov 22, 19:47
Size
844 B
Mime Type
text/x-php
Expires
Sun, Nov 24, 19:47 (2 d)
Engine
blob
Format
Raw Data
Handle
22487928
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