| @@ 157-165 (lines=9) @@ | ||
| 154 | * (non-PHPdoc) |
|
| 155 | * @see \JaegerApp\Db\DbInterface::getColumnns() |
|
| 156 | */ |
|
| 157 | public function getColumns($table) |
|
| 158 | { |
|
| 159 | $sql = sprintf('SHOW COLUMNS FROM `%s`', $table); |
|
| 160 | $statement = $this->query($sql, true); |
|
| 161 | if ($statement) { |
|
| 162 | return $statement; |
|
| 163 | } |
|
| 164 | return array(); |
|
| 165 | } |
|
| 166 | ||
| 167 | /** |
|
| 168 | * (non-PHPdoc) |
|
| @@ 219-227 (lines=9) @@ | ||
| 216 | * (non-PHPdoc) |
|
| 217 | * @see \JaegerApp\Db\DbInterface::getColumns() |
|
| 218 | */ |
|
| 219 | public function getColumns($table) |
|
| 220 | { |
|
| 221 | $sql = sprintf('SHOW COLUMNS FROM `%s`', $table); |
|
| 222 | $statement = $this->query($sql, true); |
|
| 223 | if ($statement) { |
|
| 224 | return $statement; |
|
| 225 | } |
|
| 226 | return array(); |
|
| 227 | } |
|
| 228 | ||
| 229 | /** |
|
| 230 | * (non-PHPdoc) |
|