Path: blob/master/src/applications/dashboard/install/PhabricatorDashboardHomeInstallWorkflow.php
12242 views
<?php12final class PhabricatorDashboardHomeInstallWorkflow3extends PhabricatorDashboardApplicationInstallWorkflow {45const WORKFLOWKEY = 'home';67public function getOrder() {8return 1000;9}1011protected function newWorkflowMenuItem() {12return $this->newMenuItem()13->setHeader(pht('Add to Home Page Menu'))14->setImageIcon('fa-home')15->addAttribute(16pht(17'Add this dashboard to the menu on the home page.'));18}1920protected function newProfileEngine() {21return new PhabricatorHomeProfileMenuEngine();22}2324protected function newApplication() {25return new PhabricatorHomeApplication();26}2728protected function newApplicationModeDialog() {29return $this->newDialog()30->setTitle(pht('Add Dashboard to Home Menu'));31}3233protected function newPersonalMenuItem() {34return $this->newMenuItem()35->setHeader(pht('Add to Personal Home Menu'))36->setImageIcon('fa-user')37->addAttribute(38pht(39'Add this dashboard to your list of personal home menu items, '.40'visible to only you.'));41}4243protected function newGlobalMenuItem() {44return $this->newMenuItem()45->setHeader(pht('Add to Global Home Menu'))46->setImageIcon('fa-globe')47->addAttribute(48pht(49'Add this dashboard to the global home menu, visible to all '.50'users.'));51}5253protected function newGlobalPermissionDialog() {54return $this->newDialog()55->setTitle(pht('No Permission'))56->appendParagraph(57pht(58'You do not have permission to install items on the global home '.59'menu.'));60}6162protected function newGlobalConfirmDialog() {63return $this->newDialog()64->setTitle(pht('Add Dashboard to Global Home Page'))65->appendParagraph(66pht(67'Add dashboard %s as a global menu item on the home page?',68$this->getDashboardDisplayName()))69->addSubmitButton(pht('Add to Home'));70}7172protected function newPersonalConfirmDialog() {73return $this->newDialog()74->setTitle(pht('Add Dashboard to Personal Home Page'))75->appendParagraph(76pht(77'Add dashboard %s as a personal menu item on your home page?',78$this->getDashboardDisplayName()))79->addSubmitButton(pht('Add to Home'));80}8182}838485