@@ -7,6 +7,11 @@ discard block |
||
7 | 7 | $this->connection = []; |
8 | 8 | $this->currentConnection = null; |
9 | 9 | } |
10 | + |
|
11 | + /** |
|
12 | + * @param string $_name |
|
13 | + * @param Connection|null $_connection |
|
14 | + */ |
|
10 | 15 | public function addConnection( $_name, $_connection ) { |
11 | 16 | $this->connection["$_name"] = $_connection; |
12 | 17 | $this->currentConnection = $_connection; |
@@ -23,6 +28,9 @@ discard block |
||
23 | 28 | return $this->currentConnection->database->lastInsertId(); |
24 | 29 | } |
25 | 30 | |
31 | + /** |
|
32 | + * @param string $_query |
|
33 | + */ |
|
26 | 34 | public function queryFetch( $_query ) { |
27 | 35 | $temp = $this->stdQuery($_query); |
28 | 36 | return $temp->fetchAll(PDO::FETCH_ASSOC); |