Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F4852460
PhabricatorDashboardFavoritesInstallWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorDashboardFavoritesInstallWorkflow.php
View Options
<?php
final
class
PhabricatorDashboardFavoritesInstallWorkflow
extends
PhabricatorDashboardApplicationInstallWorkflow
{
const
WORKFLOWKEY
=
'favorites'
;
public
function
getOrder
(
)
{
return
4000
;
}
protected
function
newWorkflowMenuItem
(
)
{
return
$this
->
newMenuItem
(
)
->
setHeader
(
pht
(
'Add to Favorites Menu'
)
)
->
setImageIcon
(
'fa-bookmark'
)
->
addAttribute
(
pht
(
'Add this dashboard to the favorites menu in the main '
.
'menu bar.'
)
)
;
}
protected
function
newProfileEngine
(
)
{
return
new
PhabricatorFavoritesProfileMenuEngine
(
)
;
}
protected
function
newApplication
(
)
{
return
new
PhabricatorFavoritesApplication
(
)
;
}
protected
function
newApplicationModeDialog
(
)
{
return
$this
->
newDialog
(
)
->
setTitle
(
pht
(
'Add Dashboard to Favorites Menu'
)
)
;
}
protected
function
newPersonalMenuItem
(
)
{
return
$this
->
newMenuItem
(
)
->
setHeader
(
pht
(
'Add to Personal Favorites'
)
)
->
setImageIcon
(
'fa-user'
)
->
addAttribute
(
pht
(
'Add this dashboard to your list of personal favorite menu items, '
.
'visible to only you.'
)
)
;
}
protected
function
newGlobalMenuItem
(
)
{
return
$this
->
newMenuItem
(
)
->
setHeader
(
pht
(
'Add to Global Favorites'
)
)
->
setImageIcon
(
'fa-globe'
)
->
addAttribute
(
pht
(
'Add this dashboard to the global favorites menu, visible to all '
.
'users.'
)
)
;
}
protected
function
newGlobalPermissionDialog
(
)
{
return
$this
->
newDialog
(
)
->
setTitle
(
pht
(
'No Permission'
)
)
->
appendParagraph
(
pht
(
'You do not have permission to install items on the global '
.
'favorites menu.'
)
)
;
}
protected
function
newGlobalConfirmDialog
(
)
{
return
$this
->
newDialog
(
)
->
setTitle
(
pht
(
'Add Dashboard to Global Favorites'
)
)
->
appendParagraph
(
pht
(
'Add dashboard %s as a global menu item in the favorites menu?'
,
$this
->
getDashboardDisplayName
(
)
)
)
->
addSubmitButton
(
pht
(
'Add to Favorites'
)
)
;
}
protected
function
newPersonalConfirmDialog
(
)
{
return
$this
->
newDialog
(
)
->
setTitle
(
pht
(
'Add Dashboard to Personal Favorites'
)
)
->
appendParagraph
(
pht
(
'Add dashboard %s as a personal menu item in the favorites menu?'
,
$this
->
getDashboardDisplayName
(
)
)
)
->
addSubmitButton
(
pht
(
'Add to Favorites'
)
)
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, Jun 9, 06:34 (1 d, 9 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1762663
Default Alt Text
PhabricatorDashboardFavoritesInstallWorkflow.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment