Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/PhabricatorApplication.php
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | public function getShortDescription() { | ||||
| return $this->getName().' Application'; | return $this->getName().' Application'; | ||||
| } | } | ||||
| public function isInstalled() { | public function isInstalled() { | ||||
| if (!$this->canUninstall()) { | if (!$this->canUninstall()) { | ||||
| return true; | return true; | ||||
| } | } | ||||
| $beta = PhabricatorEnv::getEnvConfig('phabricator.show-beta-applications'); | $prototypes = PhabricatorEnv::getEnvConfig('phabricator.show-prototypes'); | ||||
| if (!$beta && $this->isBeta()) { | if (!$prototypes && $this->isPrototype()) { | ||||
| return false; | return false; | ||||
| } | } | ||||
| $uninstalled = PhabricatorEnv::getEnvConfig( | $uninstalled = PhabricatorEnv::getEnvConfig( | ||||
| 'phabricator.uninstalled-applications'); | 'phabricator.uninstalled-applications'); | ||||
| return empty($uninstalled[get_class($this)]); | return empty($uninstalled[get_class($this)]); | ||||
| } | } | ||||
| public function isBeta() { | public function isPrototype() { | ||||
| return false; | return false; | ||||
| } | } | ||||
| /** | /** | ||||
| * Return `true` if this application should never appear in application lists | * Return `true` if this application should never appear in application lists | ||||
| * in the UI. Primarily intended for unit test applications or other | * in the UI. Primarily intended for unit test applications or other | ||||
| * pseudo-applications. | * pseudo-applications. | ||||
| ▲ Show 20 Lines • Show All 437 Lines • Show Last 20 Lines | |||||