| 1 | <?php namespace Modules\Dashboard\Repositories\Eloquent; |
||
| 6 | class EloquentWidgetRepository extends EloquentBaseRepository implements WidgetRepository |
||
| 7 | { |
||
| 8 | /** |
||
| 9 | * Find the saved state of widgets for the given user id |
||
| 10 | * @param int $userId |
||
| 11 | * @return string |
||
| 12 | */ |
||
| 13 | public function findForUser($userId) |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Update or create the given widgets for given user |
||
| 20 | * @param array $widgets |
||
| 21 | * @return void |
||
| 22 | */ |
||
| 23 | public function updateOrCreateForUser($widgets, $userId) |
||
| 33 | } |
||
| 34 |