1 | <?php |
||
20 | class CodeIgniterDriver implements DriverInterface |
||
21 | { |
||
22 | protected $connection; |
||
23 | protected $database; |
||
24 | protected $driver; |
||
25 | |||
26 | /** |
||
27 | * @param array $database |
||
28 | * @param string $connection |
||
29 | */ |
||
30 | 9 | public function __construct(array $database, $connection = 'default') |
|
35 | |||
36 | /** |
||
37 | * Gets the specified driver from the specified database connection. |
||
38 | * |
||
39 | * @param array $database |
||
40 | * @param string $connection |
||
41 | * @return \Rougin\Describe\Driver\DriverInterface |
||
42 | */ |
||
43 | 6 | public function getDriver(array $database, $connection) |
|
66 | |||
67 | /** |
||
68 | * Returns the result. |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | 6 | public function getTable($table) |
|
78 | |||
79 | /** |
||
80 | * Shows the list of tables. |
||
81 | * |
||
82 | * @return array |
||
83 | */ |
||
84 | 3 | public function showTables() |
|
88 | } |
||
89 |