Rename "PanelEngine" to "MenuEngine"

Summary: Ref T11957.

Test Plan:
Grepped for "PanelEngine", renamed everything except "PanelEditEngine".

Grepped for these changed symbols:

```
ispanelengineconfigurable
getprofilepanelengine
setprofilepanelengine
setpanelengine
getpanelengine
PhabricatorProfilePanelEditEngine
```

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T11957

Differential Revision: https://secure.phabricator.com/D17025
This commit is contained in:
epriestley
2016-12-11 09:00:44 -08:00
parent fddd467400
commit 923d3d3060
14 changed files with 45 additions and 44 deletions

View File

@@ -935,7 +935,7 @@ final class PhabricatorProjectBoardViewController
$set_default = $request->getBool('default');
if ($set_default) {
$this
->getProfilePanelEngine()
->getProfileMenuEngine()
->adjustDefault(PhabricatorProject::PANEL_WORKBOARD);
}

View File

@@ -4,7 +4,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
private $project;
private $profileMenu;
private $profilePanelEngine;
private $profileMenuEngine;
protected function setProject(PhabricatorProject $project) {
$this->project = $project;
@@ -99,7 +99,7 @@ abstract class PhabricatorProjectController extends PhabricatorController {
protected function getProfileMenu() {
if (!$this->profileMenu) {
$engine = $this->getProfilePanelEngine();
$engine = $this->getProfileMenuEngine();
if ($engine) {
$this->profileMenu = $engine->buildNavigation();
}
@@ -127,24 +127,25 @@ abstract class PhabricatorProjectController extends PhabricatorController {
return $crumbs;
}
protected function getProfilePanelEngine() {
if (!$this->profilePanelEngine) {
protected function getProfileMenuEngine() {
if (!$this->profileMenuEngine) {
$viewer = $this->getViewer();
$project = $this->getProject();
if ($project) {
$engine = id(new PhabricatorProjectProfilePanelEngine())
$engine = id(new PhabricatorProjectProfileMenuEngine())
->setViewer($viewer)
->setController($this)
->setProfileObject($project);
$this->profilePanelEngine = $engine;
$this->profileMenuEngine = $engine;
}
}
return $this->profilePanelEngine;
return $this->profileMenuEngine;
}
protected function setProfilePanelEngine(
PhabricatorProjectProfilePanelEngine $engine) {
$this->profilePanelEngine = $engine;
protected function setProfileMenuEngine(
PhabricatorProjectProfileMenuEngine $engine) {
$this->profileMenuEngine = $engine;
return $this;
}

View File

@@ -12,11 +12,11 @@ final class PhabricatorProjectPanelController
$viewer = $this->getViewer();
$project = $this->getProject();
$engine = id(new PhabricatorProjectProfilePanelEngine())
$engine = id(new PhabricatorProjectProfileMenuEngine())
->setProfileObject($project)
->setController($this);
$this->setProfilePanelEngine($engine);
$this->setProfileMenuEngine($engine);
return $engine->buildResponse();
}

View File

@@ -17,7 +17,7 @@ final class PhabricatorProjectViewController
}
$project = $this->getProject();
$engine = $this->getProfilePanelEngine();
$engine = $this->getProfileMenuEngine();
$default = $engine->getDefaultPanel();
switch ($default->getBuiltinKey()) {