MetaFox

FriendList extends Model
in package
implements PrivacyList, BigNumberId, HasTitle Uses HasEntity, HasUserMorph, HasUserAsOwnerMorph, HasFactory, HasBigNumberId

Class FriendList.

Tags
mixin

Builder

Table of Contents

Interfaces

PrivacyList
Interface Entity.
BigNumberId
Interface BigNumberId.
HasTitle

Constants

ENTITY_TYPE  = 'friend_list'
PRIVACY_TYPE  = 'user_friend_list'

Properties

$id  : int
$incrementing  : mixed
$name  : string
$userEntities  : BelongsToMany
$users  : BelongsToMany
$fillable  : mixed
$primaryKey  : mixed

Methods

entityId()  : int
entityType()  : string
factory()  : FriendListFactory
getUserAttribute()  : mixed
getUserEntityAttribute()  : mixed
isUser()  : bool
check if $user is the user (creator) of entity.
moduleName()  : string
owner()  : MorphTo
ownerEntity()  : BelongsTo
ownerId()  : int
ownerType()  : string
setEntityId()  : void
toPrivacyLists()  : array<string|int, mixed>
toTitle()  : string
user()  : MorphTo
userEntities()  : BelongsToMany
userEntity()  : BelongsTo
userId()  : int
users()  : BelongsToMany
userType()  : string
newFactory()  : FriendListFactory

Constants

ENTITY_TYPE

public mixed ENTITY_TYPE = 'friend_list'

PRIVACY_TYPE

public mixed PRIVACY_TYPE = 'user_friend_list'

Properties

$incrementing

public mixed $incrementing = false

$fillable

protected mixed $fillable = ['user_id', 'user_type', 'name']

Methods

entityId()

public entityId() : int
Return values
int

entityType()

public entityType() : string
Return values
string

factory()

public static factory() : FriendListFactory
Return values
FriendListFactory

getUserEntityAttribute()

public getUserEntityAttribute() : mixed

isUser()

check if $user is the user (creator) of entity.

public isUser(User $user) : bool
Parameters
$user : User
Return values
bool

moduleName()

public moduleName() : string
Return values
string

setEntityId()

public setEntityId(int $id) : void
Parameters
$id : int

toPrivacyLists()

public toPrivacyLists() : array<string|int, mixed>
Return values
array<string|int, mixed>

toTitle()

public toTitle() : string
Return values
string

userEntities()

public userEntities() : BelongsToMany
Return values
BelongsToMany

userEntity()

public userEntity() : BelongsTo
Return values
BelongsTo

users()

public users() : BelongsToMany
Return values
BelongsToMany

userType()

public userType() : string
Return values
string

newFactory()

protected static newFactory() : FriendListFactory
Return values
FriendListFactory

        
On this page

Search results