MetaFox

PinRepositoryInterface
in

Interface Pin.

Tags
mixin

BaseRepository stub: /packages/repositories/interface.stub

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
$context : User
$owner : User
$feedId : int
Tags
throws
AuthorizationException|ValidatorException
Return values
bool

pinHome()

public pinHome(User $context, int $feedId) : bool
Parameters
$context : User
$feedId : int
Tags
throws
AuthorizationException|ValidatorException
Return values
bool

unpin()

public unpin(User $context, User $owner, int $feedId) : bool
Parameters
$context : User
$owner : User
$feedId : int
Tags
throws
AuthorizationException
Return values
bool

unpinHome()

public unpinHome(User $context, int $feedId) : bool
Parameters
$context : User
$feedId : int
Tags
throws
AuthorizationException
Return values
bool

        
On this page

Search results