Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F21409723
PhabricatorProjectController.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
850 B
Referenced Files
None
Subscribers
None
PhabricatorProjectController.php
View Options
<?php
abstract
class
PhabricatorProjectController
extends
PhabricatorController
{
public
function
buildSideNavView
(
$for_app
=
false
)
{
$user
=
$this
->
getRequest
()->
getUser
();
$nav
=
new
AphrontSideNavFilterView
();
$nav
->
setBaseURI
(
new
PhutilURI
(
$this
->
getApplicationURI
()));
if
(
$for_app
)
{
$nav
->
addFilter
(
'create'
,
pht
(
'Create Project'
));
}
id
(
new
PhabricatorProjectSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create Project'
))
->
setHref
(
$this
->
getApplicationURI
(
'create/'
))
->
setIcon
(
'create'
));
return
$crumbs
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Jul 31, 11:20 AM (1 d, 11 h)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
16432402
Default Alt Text
PhabricatorProjectController.php (850 B)
Attached To
Mode
rP Phabricator
Attached
Detach File
Event Timeline
Log In to Comment