| 1 | <?php namespace Modules\Core\Internationalisation; |
||
| 7 | class Helper |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Save the given model properties in all given languages |
||
| 11 | * @param $model |
||
| 12 | * @param $data |
||
| 13 | */ |
||
| 14 | public static function updateTranslated($model, $data) |
||
| 18 | |||
| 19 | /** |
||
| 20 | * Create the given model and save its translated attributes |
||
| 21 | * @param $model |
||
| 22 | * @param $data |
||
| 23 | */ |
||
| 24 | public static function createTranslatedFields($model, $data) |
||
| 30 | |||
| 31 | /** |
||
| 32 | * Separate the input fields into their own language key |
||
| 33 | * @param $data |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public static function separateLanguages($data) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Save the given properties for the model |
||
| 54 | * @param $model |
||
| 55 | * @param $data |
||
| 56 | */ |
||
| 57 | private static function saveTranslatedProperties($model, $data) |
||
| 68 | } |
||
| 69 |