| @@ 164-181 (lines=18) @@ | ||
| 161 | return $stmt->rowCount(); |
|
| 162 | } |
|
| 163 | ||
| 164 | public function initDatabase() |
|
| 165 | { |
|
| 166 | $queries = self::createTableQueries($this->prefix); |
|
| 167 | foreach ($queries as $q) { |
|
| 168 | $this->db->query($q); |
|
| 169 | } |
|
| 170 | ||
| 171 | $tables = array('connections'); |
|
| 172 | foreach ($tables as $t) { |
|
| 173 | // make sure the tables are empty |
|
| 174 | # $this->db->query( |
|
| 175 | # sprintf( |
|
| 176 | # 'DELETE FROM %s', |
|
| 177 | # $this->prefix.$t |
|
| 178 | # ) |
|
| 179 | # ); |
|
| 180 | } |
|
| 181 | } |
|
| 182 | } |
|
| 183 | ||
| @@ 87-104 (lines=18) @@ | ||
| 84 | return $query; |
|
| 85 | } |
|
| 86 | ||
| 87 | public function initDatabase() |
|
| 88 | { |
|
| 89 | $queries = self::createTableQueries($this->prefix); |
|
| 90 | foreach ($queries as $q) { |
|
| 91 | $this->db->query($q); |
|
| 92 | } |
|
| 93 | ||
| 94 | $tables = array('otp_log'); |
|
| 95 | foreach ($tables as $t) { |
|
| 96 | // make sure the tables are empty |
|
| 97 | # $this->db->query( |
|
| 98 | # sprintf( |
|
| 99 | # 'DELETE FROM %s', |
|
| 100 | # $this->prefix.$t |
|
| 101 | # ) |
|
| 102 | # ); |
|
| 103 | } |
|
| 104 | } |
|
| 105 | } |
|
| 106 | ||