Differential D15673 Diff 37772 src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
Changeset View
Changeset View
Standalone View
Standalone View
src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php
| Show All 21 Lines | abstract class AphrontBaseMySQLDatabaseConnection | ||||
| public function __construct(array $configuration) { | public function __construct(array $configuration) { | ||||
| $this->configuration = $configuration; | $this->configuration = $configuration; | ||||
| } | } | ||||
| public function __clone() { | public function __clone() { | ||||
| $this->establishConnection(); | $this->establishConnection(); | ||||
| } | } | ||||
| public function openConnection() { | |||||
| $this->requireConnection(); | |||||
| } | |||||
| public function close() { | public function close() { | ||||
| if ($this->lastResult) { | if ($this->lastResult) { | ||||
| $this->lastResult = null; | $this->lastResult = null; | ||||
| } | } | ||||
| if ($this->connection) { | if ($this->connection) { | ||||
| $this->closeConnection(); | $this->closeConnection(); | ||||
| $this->connection = null; | $this->connection = null; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 341 Lines • Show Last 20 Lines | |||||