mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-12 00:26:13 +01:00
31 lines
857 B
PHP
31 lines
857 B
PHP
|
<?php
|
||
|
|
||
|
final class PhabricatorProjectProfilePanelEngine
|
||
|
extends PhabricatorProfilePanelEngine {
|
||
|
|
||
|
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);
|
||
|
|
||
|
return $panels;
|
||
|
}
|
||
|
|
||
|
}
|