Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120197115
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
Wed, Jul 2, 14:29
Size
844 B
Mime Type
text/x-php
Expires
Fri, Jul 4, 14:29 (2 d)
Engine
blob
Format
Raw Data
Handle
27154128
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