MetaFox

PrivacyRepositoryInterface
in

Interface PrivacyListRepositoryInterface.

Tags
mixin

BaseRepository

Table of Contents

Methods

forceCreatePrivacyStream()  : void
getCustomPrivacyOptions()  : Arrayable
getPrivacyId()  : int
getPrivacyIdForUserPrivacy()  : int
Get privacy id for user privacy (user_privacy_values table).
getPrivacyIdsForContent()  : array<string|int, int>
Get privacy list for content resource.
getPrivacyIdsForMembership()  : array<string|int, int>
Get privacy list for membership resource.
getPrivacyTypeByPrivacy()  : string|null

Methods

getCustomPrivacyOptions()

public getCustomPrivacyOptions(User $context[, array<string|int, mixed> $params = [] ]) : Arrayable
Parameters
$context : User
$params : array<string|int, mixed> = []
Return values
Arrayable

getPrivacyId()

public getPrivacyId(int $itemId, string $itemType, string $privacyType) : int
Parameters
$itemId : int
$itemType : string
$privacyType : string
Return values
int

getPrivacyIdForUserPrivacy()

Get privacy id for user privacy (user_privacy_values table).

public getPrivacyIdForUserPrivacy(int $ownerId, int $privacy) : int
Parameters
$ownerId : int
$privacy : int
Return values
int

getPrivacyIdsForContent()

Get privacy list for content resource.

public getPrivacyIdsForContent(Content $content) : array<string|int, int>
Parameters
$content : Content
Return values
array<string|int, int>

getPrivacyIdsForMembership()

Get privacy list for membership resource.

public getPrivacyIdsForMembership(Membership $membership) : array<string|int, int>
Parameters
$membership : Membership
Return values
array<string|int, int>

getPrivacyTypeByPrivacy()

public getPrivacyTypeByPrivacy(int $ownerId, int $privacy) : string|null
Parameters
$ownerId : int
$privacy : int
Return values
string|null

        
On this page

Search results