| 1 | <?php |
||
| 11 | class TableHelper |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Parses the table name from Describe class. |
||
| 15 | * |
||
| 16 | * @param string $table |
||
| 17 | * @return string |
||
| 18 | */ |
||
| 19 | 36 | public static function getModelName($table) |
|
| 28 | |||
| 29 | /** |
||
| 30 | * Gets the table name specified from the model. |
||
| 31 | * NOTE: To be removed in v1.0.0. Use $model->getTableName() |
||
| 32 | * |
||
| 33 | * @param object $model |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 39 | public static function getNameFromModel($model) |
|
| 50 | } |
||
| 51 |