PrivacyRepositoryInterface
in
Interface PrivacyListRepositoryInterface.
Tags
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
forceCreatePrivacyStream()
public
forceCreatePrivacyStream(Entity $model) : void
Parameters
- $model : Entity
getCustomPrivacyOptions()
public
getCustomPrivacyOptions(User $context[, array<string|int, mixed> $params = [] ]) : Arrayable
Parameters
- $context : User
- $params : array<string|int, mixed> = []
Return values
ArrayablegetPrivacyId()
public
getPrivacyId(int $itemId, string $itemType, string $privacyType) : int
Parameters
- $itemId : int
- $itemType : string
- $privacyType : string
Return values
intgetPrivacyIdForUserPrivacy()
Get privacy id for user privacy (user_privacy_values table).
public
getPrivacyIdForUserPrivacy(int $ownerId, int $privacy) : int
Parameters
- $ownerId : int
- $privacy : int
Return values
intgetPrivacyIdsForContent()
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