Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F102532396
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, Feb 21, 17:27
Size
879 B
Mime Type
text/x-php
Expires
Sun, Feb 23, 17:27 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24310961
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