Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F971047
DifferentialController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
997 B
Referenced Files
None
Subscribers
None
DifferentialController.php
View Options
<?php
abstract
class
DifferentialController
extends
PhabricatorController
{
protected
function
allowsAnonymousAccess
()
{
return
PhabricatorEnv
::
getEnvConfig
(
'differential.anonymous-access'
);
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setHref
(
$this
->
getApplicationURI
(
'/diff/create/'
))
->
setName
(
pht
(
'Create Diff'
))
->
setIcon
(
'create'
));
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
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Wed, Jun 18, 5:36 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
226005
Default Alt Text
DifferentialController.php (997 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment