2016-01-14 14:59:25 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorProjectProfilePanelEngine
|
|
|
|
extends PhabricatorProfilePanelEngine {
|
|
|
|
|
2016-01-26 16:27:41 +01:00
|
|
|
protected function isPanelEngineConfigurable() {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
2016-01-14 14:59:25 +01:00
|
|
|
protected function getPanelURI($path) {
|
|
|
|
$project = $this->getProfileObject();
|
|
|
|
$id = $project->getID();
|
|
|
|
return "/project/{$id}/panel/{$path}";
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getBuiltinProfilePanels($object) {
|
|
|
|
$panels = array();
|
|
|
|
|
|
|
|
$panels[] = $this->newPanel()
|
|
|
|
->setBuiltinKey(PhabricatorProject::PANEL_PROFILE)
|
|
|
|
->setPanelKey(PhabricatorProjectDetailsProfilePanel::PANELKEY);
|
|
|
|
|
|
|
|
$panels[] = $this->newPanel()
|
|
|
|
->setBuiltinKey(PhabricatorProject::PANEL_WORKBOARD)
|
|
|
|
->setPanelKey(PhabricatorProjectWorkboardProfilePanel::PANELKEY);
|
|
|
|
|
|
|
|
$panels[] = $this->newPanel()
|
|
|
|
->setBuiltinKey(PhabricatorProject::PANEL_MEMBERS)
|
|
|
|
->setPanelKey(PhabricatorProjectMembersProfilePanel::PANELKEY);
|
|
|
|
|
2016-01-24 01:02:29 +01:00
|
|
|
$panels[] = $this->newPanel()
|
|
|
|
->setBuiltinKey(PhabricatorProject::PANEL_MANAGE)
|
|
|
|
->setPanelKey(PhabricatorProjectManageProfilePanel::PANELKEY);
|
|
|
|
|
2016-01-14 14:59:25 +01:00
|
|
|
return $panels;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|