| 1 | <?php |
||
| 11 | class Manager |
||
| 12 | { |
||
| 13 | use HasConnectionTrait; |
||
| 14 | |||
| 15 | protected $_cache; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @param $table |
||
| 19 | * @return bool|mixed |
||
| 20 | */ |
||
| 21 | public function describeTable($table) |
||
| 22 | { |
||
| 23 | $data = $this->getCache()->describeTable($table); |
||
| 24 | if (!is_array($data)) { |
||
| 25 | return trigger_error("Cannot load metadata for table [$table]", E_USER_ERROR); |
||
| 26 | } |
||
| 27 | return $data; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return Cache |
||
| 32 | */ |
||
| 33 | public function getCache() |
||
| 42 | } |
||
| 43 |