Changeset View
Changeset View
Standalone View
Standalone View
src/applications/base/PhabricatorApplication.php
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Lines | /* -( Application Information )-------------------------------------------- */ | ||||
* @return bool True if this application should be pinned by default. | * @return bool True if this application should be pinned by default. | ||||
*/ | */ | ||||
public function isPinnedByDefault(PhabricatorUser $viewer) { | public function isPinnedByDefault(PhabricatorUser $viewer) { | ||||
return false; | return false; | ||||
} | } | ||||
/** | /** | ||||
* Returns true if an application is first-party (developed by Phacility) | * Returns true if an application is first-party and false otherwise. | ||||
* and false otherwise. | |||||
* | * | ||||
* @return bool True if this application is developed by Phacility. | * @return bool True if this application is first-party. | ||||
*/ | */ | ||||
final public function isFirstParty() { | final public function isFirstParty() { | ||||
$where = id(new ReflectionClass($this))->getFileName(); | $where = id(new ReflectionClass($this))->getFileName(); | ||||
$root = phutil_get_library_root('phabricator'); | $root = phutil_get_library_root('phabricator'); | ||||
if (!Filesystem::isDescendant($where, $root)) { | if (!Filesystem::isDescendant($where, $root)) { | ||||
return false; | return false; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 507 Lines • Show Last 20 Lines |