Page MenuHomePhabricator
Authored By
Christopher
Jan 10 2017, 7:20 PM
Size
3 KB
Referenced Files
None
Subscribers
None

T154499.patch

Index: libext/sprint/src/engine/SprintProjectProfilePanelEngine.php
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
--- libext/sprint/src/engine/SprintProjectProfilePanelEngine.php (revision )
+++ libext/sprint/src/engine/SprintProjectProfilePanelEngine.php (revision )
@@ -1,53 +1,46 @@
<?php
final class SprintProjectProfilePanelEngine
- extends PhabricatorProfilePanelEngine {
+ extends PhabricatorProfileMenuEngine {
- protected function isPanelEngineConfigurable() {
+ protected function isMenuEngineConfigurable() {
return true;
}
- protected function getPanelURI($path) {
+ protected function getItemURI($path) {
$project = $this->getProfileObject();
$id = $project->getID();
- return "/project/{$id}/panel/{$path}";
+ return "/project/{$id}/item/{$path}";
}
- protected function getBuiltinProfilePanels($object) {
- $panels = array();
+ protected function getBuiltinProfileItems($object) {
+ $items = array();
- $panels[] = $this->newPanel()
- ->setBuiltinKey(PhabricatorProject::PANEL_PROFILE)
- ->setPanelKey(PhabricatorProjectDetailsProfilePanel::PANELKEY);
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorProject::ITEM_PROFILE)
+ ->setMenuItemKey(PhabricatorProjectDetailsProfileMenuItem::MENUITEMKEY);
- $panels[] = $this->newPanel()
- ->setBuiltinKey(PhabricatorProject::PANEL_POINTS)
- ->setPanelKey(PhabricatorProjectPointsProfilePanel::PANELKEY);
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorProject::ITEM_POINTS)
+ ->setMenuItemKey(PhabricatorProjectPointsProfileMenuItem::MENUITEMKEY);
- $panels[] = $this->newPanel()
- ->setBuiltinKey(PhabricatorProject::PANEL_WORKBOARD)
- ->setPanelKey(PhabricatorProjectWorkboardProfilePanel::PANELKEY);
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorProject::ITEM_WORKBOARD)
+ ->setMenuItemKey(PhabricatorProjectWorkboardProfileMenuItem::MENUITEMKEY);
- $panels[] = $this->newPanel()
- ->setBuiltinKey(PhabricatorProject::PANEL_MEMBERS)
- ->setPanelKey(PhabricatorProjectMembersProfilePanel::PANELKEY);
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorProject::ITEM_MEMBERS)
+ ->setMenuItemKey(PhabricatorProjectMembersProfileMenuItem::MENUITEMKEY);
- $panels[] = $this->newPanel()
- ->setBuiltinKey(PhabricatorProject::PANEL_SUBPROJECTS)
- ->setPanelKey(PhabricatorProjectSubprojectsProfilePanel::PANELKEY);
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorProject::ITEM_SUBPROJECTS)
+ ->setMenuItemKey(
+ PhabricatorProjectSubprojectsProfileMenuItem::MENUITEMKEY);
- $panels[] = $this->newPanel()
- ->setBuiltinKey(PhabricatorProject::PANEL_MANAGE)
- ->setPanelKey(PhabricatorProjectManageProfilePanel::PANELKEY);
+ $items[] = $this->newItem()
+ ->setBuiltinKey(PhabricatorProject::ITEM_MANAGE)
+ ->setMenuItemKey(PhabricatorProjectManageProfileMenuItem::MENUITEMKEY);
- $panels[] = $this->newPanel()
- ->setBuiltinKey(SprintConstants::PANEL_BURNDOWN)
- ->setPanelKey(SprintProjectProfilePanel::PANELKEY);
-
- $panels[] = $this->newPanel()
- ->setBuiltinKey(SprintConstants::PANEL_PHRAGILE)
- ->setPanelKey(PhragileProfilePanel::PANELKEY);
-
- return $panels;
+ return $items;
}
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4263262
Default Alt Text
T154499.patch (3 KB)

Event Timeline