Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F108706185
DifferentialController.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, Apr 18, 02:34
Size
879 B
Mime Type
text/x-php
Expires
Sun, Apr 20, 02:34 (2 d)
Engine
blob
Format
Raw Data
Handle
25639935
Attached To
rPH Phabricator
DifferentialController.php
View Options
<?php
abstract
class
DifferentialController
extends
PhabricatorController
{
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setHref
(
$this
->
getApplicationURI
(
'/diff/create/'
))
->
setName
(
pht
(
'Create Diff'
))
->
setIcon
(
'fa-plus-square'
));
return
$crumbs
;
}
public
function
buildSideNavView
(
$for_app
=
false
)
{
$viewer
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
DifferentialRevisionSearchEngine
())
->
setViewer
(
$viewer
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
true
)->
getMenu
();
}
}
Event Timeline
Log In to Comment