Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F539931
PhabricatorDashboardHomeInstallWorkflow.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
PhabricatorDashboardHomeInstallWorkflow.php
View Options
<?php
final
class
PhabricatorDashboardHomeInstallWorkflow
extends
PhabricatorDashboardApplicationInstallWorkflow
{
const
WORKFLOWKEY
=
'home'
;
public
function
getOrder
()
{
return
1000
;
}
protected
function
newWorkflowMenuItem
()
{
return
$this
->
newMenuItem
()
->
setHeader
(
pht
(
'Add to Home Page Menu'
))
->
setImageIcon
(
'fa-home'
)
->
addAttribute
(
pht
(
'Add this dashboard to the menu on the home page.'
));
}
protected
function
newProfileEngine
()
{
return
new
PhabricatorHomeProfileMenuEngine
();
}
protected
function
newApplication
()
{
return
new
PhabricatorHomeApplication
();
}
protected
function
newApplicationModeDialog
()
{
return
$this
->
newDialog
()
->
setTitle
(
pht
(
'Add Dashboard to Home Menu'
));
}
protected
function
newPersonalMenuItem
()
{
return
$this
->
newMenuItem
()
->
setHeader
(
pht
(
'Add to Personal Home Menu'
))
->
setImageIcon
(
'fa-user'
)
->
addAttribute
(
pht
(
'Add this dashboard to your list of personal home menu items, '
.
'visible to only you.'
));
}
protected
function
newGlobalMenuItem
()
{
return
$this
->
newMenuItem
()
->
setHeader
(
pht
(
'Add to Global Home Menu'
))
->
setImageIcon
(
'fa-globe'
)
->
addAttribute
(
pht
(
'Add this dashboard to the global home 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 home '
.
'menu.'
));
}
protected
function
newGlobalConfirmDialog
()
{
return
$this
->
newDialog
()
->
setTitle
(
pht
(
'Add Dashboard to Global Home Page'
))
->
appendParagraph
(
pht
(
'Add dashboard %s as a global menu item on the home page?'
,
$this
->
getDashboardDisplayName
()))
->
addSubmitButton
(
pht
(
'Add to Home'
));
}
protected
function
newPersonalConfirmDialog
()
{
return
$this
->
newDialog
()
->
setTitle
(
pht
(
'Add Dashboard to Personal Home Page'
))
->
appendParagraph
(
pht
(
'Add dashboard %s as a personal menu item on your home page?'
,
$this
->
getDashboardDisplayName
()))
->
addSubmitButton
(
pht
(
'Add to Home'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Mon, May 12, 9:22 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
120436
Default Alt Text
PhabricatorDashboardHomeInstallWorkflow.php (2 KB)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment