1 | <?php |
||
14 | class DBBaseTableExistCheck extends AbstractDBCheck |
||
15 | { |
||
16 | const CHECK = 'db-base-table-exist-check'; |
||
17 | const DEFAULT_SQL_GET_ALL_TABLE = 'SHOW TABLES'; |
||
18 | |||
19 | /** |
||
20 | * @var array |
||
21 | */ |
||
22 | protected $tablesExist; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $sqlGetAllTable; |
||
28 | |||
29 | /** |
||
30 | * @param string $checkNode |
||
31 | * @param PDOFactory $PDOFactory |
||
32 | * @param array $tablesExist |
||
33 | * @param string $sqlGetAllTable |
||
34 | */ |
||
35 | 5 | public function __construct( |
|
46 | |||
47 | /** |
||
48 | * Check $tablesExist in the database. |
||
49 | * |
||
50 | * @param null|array $tablesExist |
||
51 | * |
||
52 | * @return void |
||
53 | * |
||
54 | * @throws DBBaseTableExistCheckException |
||
55 | * @throws DBExpectConnectCheckException |
||
56 | */ |
||
57 | 5 | public function performCheck($tablesExist = null) |
|
85 | |||
86 | /** |
||
87 | * @return array |
||
88 | */ |
||
89 | 5 | public function getTablesExist() |
|
93 | |||
94 | /** |
||
95 | * @param array $tablesExist |
||
96 | */ |
||
97 | 5 | protected function setTablesExist($tablesExist) |
|
101 | |||
102 | /** |
||
103 | * @return string |
||
104 | */ |
||
105 | 3 | public function getSqlGetAllTable() |
|
109 | |||
110 | /** |
||
111 | * @param string $sqlGetAllTable |
||
112 | */ |
||
113 | 5 | public function setSqlGetAllTable($sqlGetAllTable) |
|
117 | } |
||
118 |