MetaFox

HasPrivacyType

Interface HasPrivacyType.

Privacy type is used when you want to define privacy A for owner resource. But items post on it maybe has different privacy. Example: Closed group has group privacy public, but items on the group still private to member only. Implement this to Contract User example like Group. if ($owner instanceof HasPrivacyType) $handler = $owner->getPrivacyTypeHandler()

Tags
see
PrivacyTypeHandlerInterface

$privacy = $handler->getPrivacy(YOUR_PRIVACY_TYPE_ID) $privacyForItem = $handler->getPrivacyItem(YOUR_PRIVACY_TYPE_ID)

Table of Contents

Methods

getPrivacyType()  : int
Get privacy type.
getPrivacyTypeHandler()  : mixed

Methods

getPrivacyType()

Get privacy type.

public getPrivacyType() : int
Return values
int

        
On this page

Search results