Differential D20784 Diff 49559 src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
Show First 20 Lines • Show All 83 Lines • ▼ Show 20 Lines | final class PhabricatorStorageManagementAPI extends Phobject { | ||||
public function getRef() { | public function getRef() { | ||||
return $this->ref; | return $this->ref; | ||||
} | } | ||||
public function getDatabaseName($fragment) { | public function getDatabaseName($fragment) { | ||||
return $this->namespace.'_'.$fragment; | return $this->namespace.'_'.$fragment; | ||||
} | } | ||||
public function getDisplayName() { | |||||
return $this->getRef()->getDisplayName(); | |||||
} | |||||
public function getDatabaseList(array $patches, $only_living = false) { | public function getDatabaseList(array $patches, $only_living = false) { | ||||
assert_instances_of($patches, 'PhabricatorStoragePatch'); | assert_instances_of($patches, 'PhabricatorStoragePatch'); | ||||
$list = array(); | $list = array(); | ||||
foreach ($patches as $patch) { | foreach ($patches as $patch) { | ||||
if ($patch->getType() == 'db') { | if ($patch->getType() == 'db') { | ||||
if ($only_living && $patch->isDead()) { | if ($only_living && $patch->isDead()) { | ||||
▲ Show 20 Lines • Show All 274 Lines • Show Last 20 Lines |