UserPrivacy
extends Facade
in package
Class UserPrivacy.
Tags
Table of Contents
Methods
- getItemPrivacySetting() : int|false
- getProfileMenuSetting() : int|false
- getProfileSetting() : int|false
- getUserPrivacy() : void
- hasAccess() : bool
- hasAccessProfileMenuSettings() : array<string|int, mixed>
- hasAccessProfileSettings() : array<string|int, mixed>
- validateItemPrivacySettings() : bool
- validateProfileMenuSettings() : bool
- validateProfileSettings() : bool
- getFacadeAccessor() : string
Methods
getItemPrivacySetting()
public
static getItemPrivacySetting(int $userId, string $privacyName) : int|false
Parameters
- $userId : int
- $privacyName : string
Return values
int|falsegetProfileMenuSetting()
public
static getProfileMenuSetting(int $userId, string $privacyName) : int|false
Parameters
- $userId : int
- $privacyName : string
Return values
int|falsegetProfileSetting()
public
static getProfileSetting(int $userId, string $privacyName) : int|false
Parameters
- $userId : int
- $privacyName : string
Return values
int|falsegetUserPrivacy()
public
static getUserPrivacy(int $userId) : void
Parameters
- $userId : int
hasAccess()
public
static hasAccess(User $user, User $owner, string $privacyName) : bool
Parameters
Return values
boolhasAccessProfileMenuSettings()
public
static hasAccessProfileMenuSettings(User $user, User $owner) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed>hasAccessProfileSettings()
public
static hasAccessProfileSettings(User $user, User $owner) : array<string|int, mixed>
Parameters
Return values
array<string|int, mixed>validateItemPrivacySettings()
public
static validateItemPrivacySettings(int $userId, array<string|int, mixed> $params) : bool
Parameters
- $userId : int
- $params : array<string|int, mixed>
Return values
boolvalidateProfileMenuSettings()
public
static validateProfileMenuSettings(int $userId, array<string|int, mixed> $params) : bool
Parameters
- $userId : int
- $params : array<string|int, mixed>
Return values
boolvalidateProfileSettings()
public
static validateProfileSettings(int $userId, array<string|int, mixed> $params) : bool
Parameters
- $userId : int
- $params : array<string|int, mixed>
Return values
boolgetFacadeAccessor()
protected
static getFacadeAccessor() : string