CollectProfilePrivacySetting
Trait CollectProfilePrivacySetting.
Collect data from all apps. No database interaction.
Tags
Table of Contents
Methods
- collectProfilePrivacySettingByEntity() : array<string|int, mixed>
- collectProfilePrivacySetting() : array<string, mixed>
- This method will help you collect all privacy belongs to a resource.
- collectUserPrivacyType() : array<string, mixed>
- Collect raw data from app user privacy settings.
Methods
collectProfilePrivacySettingByEntity()
public
collectProfilePrivacySettingByEntity(string $entityType) : array<string|int, mixed>
Parameters
- $entityType : string
Return values
array<string|int, mixed>collectProfilePrivacySetting()
This method will help you collect all privacy belongs to a resource.
private
collectProfilePrivacySetting() : array<string, mixed>
[ 'group' => [ 'privacy_name' => [ 'phrase' => 'abc', 'default' => 0, 'list' => [ MetaFoxPrivacy::EVERYONE, MetaFoxPrivacy::FRIENDS ], ], ], 'page' => [], 'user' => [], ].
Tags
Return values
array<string, mixed>collectUserPrivacyType()
Collect raw data from app user privacy settings.
private
collectUserPrivacyType() : array<string, mixed>
[ 'profile.view_profile' => [ 'phrase' => 'Who can view your profile page?', 'default' => 0, ], ].