Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F92471819
PhabricatorApplicationsController.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, Nov 20, 14:36
Size
801 B
Mime Type
text/x-php
Expires
Fri, Nov 22, 14:36 (2 d)
Engine
blob
Format
Raw Data
Handle
22446662
Attached To
rPH Phabricator
PhabricatorApplicationsController.php
View Options
<?php
abstract
class
PhabricatorApplicationsController
extends
PhabricatorController
{
public
function
buildSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
id
(
new
PhabricatorAppSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
true
)->
getMenu
();
}
protected
function
addApplicationCrumb
(
PHUICrumbsView
$crumbs
,
PhabricatorApplication
$application
)
{
$crumbs
->
addTextCrumb
(
$application
->
getName
(),
'/applications/view/'
.
get_class
(
$application
).
'/'
);
}
}
Event Timeline
Log In to Comment