| 1 | <?php |
||
| 11 | class TableHelper |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * Parses the table name from Describe class. |
||
| 15 | * |
||
| 16 | * @param string $table |
||
| 17 | * @param mixed $currentTable |
||
| 18 | * @param boolean $isForeignKey |
||
| 19 | * @return string |
||
| 20 | */ |
||
| 21 | 36 | public static function getModelName($table, $currentTable, $isForeignKey = false) |
|
| 38 | |||
| 39 | /** |
||
| 40 | * Gets the table name specified from the model. |
||
| 41 | * NOTE: To be removed in v1.0.0. Use $model->getTableName() |
||
| 42 | * |
||
| 43 | * @param object $model |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 39 | public static function getNameFromModel($model) |
|
| 60 | } |
||
| 61 |