Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90345002
PhabricatorMailingListsController.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
Thu, Oct 31, 18:32
Size
1 KB
Mime Type
text/x-php
Expires
Sat, Nov 2, 18:32 (2 d)
Engine
blob
Format
Raw Data
Handle
22058175
Attached To
rPH Phabricator
PhabricatorMailingListsController.php
View Options
<?php
abstract
class
PhabricatorMailingListsController
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
(
'edit'
,
pht
(
'Create List'
));
}
id
(
new
PhabricatorMailingListSearchEngine
())
->
setViewer
(
$user
)
->
addNavigationItems
(
$nav
->
getMenu
());
$nav
->
selectFilter
(
null
);
return
$nav
;
}
public
function
buildApplicationMenu
()
{
return
$this
->
buildSideNavView
(
true
)->
getMenu
();
}
protected
function
buildApplicationCrumbs
()
{
$crumbs
=
parent
::
buildApplicationCrumbs
();
$can_manage
=
$this
->
hasApplicationCapability
(
PhabricatorMailingListsManageCapability
::
CAPABILITY
);
$crumbs
->
addAction
(
id
(
new
PHUIListItemView
())
->
setName
(
pht
(
'Create List'
))
->
setHref
(
$this
->
getApplicationURI
(
'edit/'
))
->
setIcon
(
'fa-plus-square'
)
->
setDisabled
(!
$can_manage
)
->
setWorkflow
(!
$can_manage
));
return
$crumbs
;
}
}
Event Timeline
Log In to Comment