| 1 | <?php |
||
| 6 | class BookmarkService |
||
| 7 | { |
||
| 8 | private $nodeAccessRepository; |
||
| 9 | |||
| 10 | public function __construct(NodeAccessRepository $nodeAccessRepository) |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Return list of bookmark NodeAccess-es with preloaded node and bookmark category node |
||
| 17 | * |
||
| 18 | * @param int $userId |
||
| 19 | * |
||
| 20 | * @return \AppBundle\Entity\NodeAccess[] |
||
| 21 | */ |
||
| 22 | public function getBookmarks($userId) |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Return array with array of category Nodes and array of bookmarks grouped by category ID |
||
| 31 | * |
||
| 32 | * @param int $userId |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getBookmarksAndCategories($userId) |
||
| 61 | } |
||
| 62 |