Differential D16848 Diff 40576 src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php
| <?php | <?php | ||||
| final class PhabricatorStorageManagementAPI extends Phobject { | final class PhabricatorStorageManagementAPI extends Phobject { | ||||
| private $ref; | |||||
| private $host; | private $host; | ||||
| private $user; | private $user; | ||||
| private $port; | private $port; | ||||
| private $password; | private $password; | ||||
| private $namespace; | private $namespace; | ||||
| private $conns = array(); | private $conns = array(); | ||||
| private $disableUTF8MB4; | private $disableUTF8MB4; | ||||
| ▲ Show 20 Lines • Show All 56 Lines • ▼ Show 20 Lines | public function setPort($port) { | ||||
| $this->port = $port; | $this->port = $port; | ||||
| return $this; | return $this; | ||||
| } | } | ||||
| public function getPort() { | public function getPort() { | ||||
| return $this->port; | return $this->port; | ||||
| } | } | ||||
| public function setRef(PhabricatorDatabaseRef $ref) { | |||||
| $this->ref = $ref; | |||||
| return $this; | |||||
| } | |||||
| public function getRef() { | |||||
| return $this->ref; | |||||
| } | |||||
| public function getDatabaseName($fragment) { | public function getDatabaseName($fragment) { | ||||
| return $this->namespace.'_'.$fragment; | return $this->namespace.'_'.$fragment; | ||||
| } | } | ||||
| 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(); | ||||
| ▲ Show 20 Lines • Show All 271 Lines • Show Last 20 Lines | |||||