PinRepositoryInterface
in
Interface Pin.
Tags
Table of Contents
Methods
- clearCache() : void
- getPinOwnerIds() : array<string|int, mixed>
- Get pins target by current user id.
- getPinsInHomePage() : array<string|int, int>
- getPinsInProfilePage() : array<string|int, int>
- pin() : bool
- pinHome() : bool
- unpin() : bool
- unpinHome() : bool
Methods
clearCache()
public
clearCache([int|null $ownerId = null ]) : void
Parameters
- $ownerId : int|null = null
getPinOwnerIds()
Get pins target by current user id.
public
getPinOwnerIds(User $context, int $feedId) : array<string|int, mixed>
Parameters
- $context : User
- $feedId : int
Return values
array<string|int, mixed>getPinsInHomePage()
public
getPinsInHomePage() : array<string|int, int>
Return values
array<string|int, int>getPinsInProfilePage()
public
getPinsInProfilePage(int $ownerId) : array<string|int, int>
Parameters
- $ownerId : int
Return values
array<string|int, int>pin()
public
pin(User $context, User $owner, int $feedId) : bool
Parameters
Tags
Return values
boolpinHome()
public
pinHome(User $context, int $feedId) : bool
Parameters
- $context : User
- $feedId : int
Tags
Return values
boolunpin()
public
unpin(User $context, User $owner, int $feedId) : bool
Parameters
Tags
Return values
boolunpinHome()
public
unpinHome(User $context, int $feedId) : bool
Parameters
- $context : User
- $feedId : int