MetaFox

UserAdminRepository extends AbstractRepository
in package
implements UserAdminRepositoryInterface

Class UserRepositoryRepository.

Tags
SuppressWarnings

(PHPMD.CouplingBetweenObjects)

SuppressWarnings

(PHPMD.ExcessiveClassComplexity)

SuppressWarnings

(PHPMD.CyclomaticComplexity)

SuppressWarnings

(PHPMD.NPathComplexity)

Table of Contents

Interfaces

UserAdminRepositoryInterface
Interface UserAdminRepositoryInterface.

Properties

$model  : User
$disableSponsor  : mixed
$skipPresenter  : mixed

Methods

batchProcessMailing()  : void
buildQueryScopes()  : mixed
buildQueryViewUsers()  : Builder
cleanContent()  : string|null
cleanTitle()  : string|null
createMany()  : bool
find()  : User
getModel()  : User
getUserContractMorphTypeColumns()  : array<string|int, string>
hasSponsorView()  : bool
isNoSponsorView()  : bool
likeOperator()  : string
return the case-insensitive LIKE operator bases on the current database driver.
model()  : string
Specify Model class name.
moveRole()  : bool
processMailing()  : bool
processMailingAll()  : void
updateUser()  : User
updateUserAvatar()  : void
verifyUser()  : bool
viewUsers()  : LengthAwarePaginator
where()  : $this
withUserMorphTypeActiveScope()  : self
checkPermissionProcessMailing()  : bool
updateOtherUserPrivacy()  : void
updateUserCustomField()  : void
updateUserNotification()  : void
updateUserPrivacy()  : void

Properties

Methods

batchProcessMailing()

public batchProcessMailing(User $context[, array<string|int, mixed> $userIds = [] ]) : void
Parameters
$context : User
$userIds : array<string|int, mixed> = []

buildQueryScopes()

public buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
$query : mixed
$model : mixed
$criteria : mixed

buildQueryViewUsers()

public buildQueryViewUsers(array<string|int, mixed> $attributes) : Builder
Parameters
$attributes : array<string|int, mixed>
Return values
Builder

cleanContent()

public cleanContent(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

cleanTitle()

public cleanTitle(string|null $string) : string|null
Parameters
$string : string|null
Return values
string|null

createMany()

public createMany(array<string|int, mixed> $items) : bool
Parameters
$items : array<string|int, mixed>
Return values
bool

getUserContractMorphTypeColumns()

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

hasSponsorView()

public hasSponsorView(array<string|int, mixed> $attributes) : bool
Parameters
$attributes : array<string|int, mixed>
Return values
bool

isNoSponsorView()

public isNoSponsorView(string|null $view) : bool
Parameters
$view : string|null
Return values
bool

likeOperator()

return the case-insensitive LIKE operator bases on the current database driver.

public likeOperator() : string
Return values
string

processMailingAll()

public processMailingAll(User $context, array<string|int, mixed> $attributes) : void
Parameters
$context : User
$attributes : array<string|int, mixed>

updateUser()

public updateUser(User $context, int $id, array<string|int, mixed> $attributes) : User
Parameters
$context : User
$id : int
$attributes : array<string|int, mixed>
Tags
throws
AuthorizationException
Return values
User

updateUserAvatar()

public updateUserAvatar(User $user, array<string|int, mixed> $image) : void
Parameters
$user : User
$image : array<string|int, mixed>

viewUsers()

public viewUsers(User $context, array<string|int, mixed> $attributes) : LengthAwarePaginator
Parameters
$context : User
$attributes : array<string|int, mixed>
Tags
throws
AuthorizationException
Return values
LengthAwarePaginator

where()

public where(array<string|int, mixed> $params) : $this
Parameters
$params : array<string|int, mixed>
Tags
throws
RepositoryException
Return values
$this

withUserMorphTypeActiveScope()

public withUserMorphTypeActiveScope() : self
Return values
self

checkPermissionProcessMailing()

protected checkPermissionProcessMailing(User $context, User $user) : bool
Parameters
$context : User
$user : User
Return values
bool

updateOtherUserPrivacy()

private updateOtherUserPrivacy(User $user, array<string|int, mixed> &$privacy) : void
Parameters
$user : User
$privacy : array<string|int, mixed>

updateUserCustomField()

private updateUserCustomField(User $user, array<string|int, mixed> $profile) : void
Parameters
$user : User
$profile : array<string|int, mixed>

updateUserNotification()

private updateUserNotification(User $user, array<string|int, mixed> $notifications) : void
Parameters
$user : User
$notifications : array<string|int, mixed>

updateUserPrivacy()

private updateUserPrivacy(User $user, array<string|int, mixed> $privacy) : void
Parameters
$user : User
$privacy : array<string|int, mixed>

        
On this page

Search results