UserAdminRepository
extends AbstractRepository
in package
implements
UserAdminRepositoryInterface
Class UserRepositoryRepository.
Tags
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
$model
public
User
$model
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
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
BuildercleanContent()
public
cleanContent(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolfind()
public
find(mixed $id, mixed $columns) : User
Parameters
- $id : mixed
- $columns : mixed
Return values
UsergetModel()
public
getModel() : User
Return values
UsergetUserContractMorphTypeColumns()
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
boolisNoSponsorView()
public
isNoSponsorView(string|null $view) : bool
Parameters
- $view : string|null
Return values
boollikeOperator()
return the case-insensitive LIKE operator bases on the current database driver.
public
likeOperator() : string
Return values
stringmodel()
Specify Model class name.
public
model() : string
Return values
stringmoveRole()
public
moveRole(User $context, User $user, int $roleId) : bool
Parameters
Return values
boolprocessMailing()
public
processMailing(User $context, User $user) : bool
Parameters
Return values
boolprocessMailingAll()
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
Return values
UserupdateUserAvatar()
public
updateUserAvatar(User $user, array<string|int, mixed> $image) : void
Parameters
- $user : User
- $image : array<string|int, mixed>
verifyUser()
public
verifyUser(User $context, User $user) : bool
Parameters
Return values
boolviewUsers()
public
viewUsers(User $context, array<string|int, mixed> $attributes) : LengthAwarePaginator
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Tags
Return values
LengthAwarePaginatorwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfcheckPermissionProcessMailing()
protected
checkPermissionProcessMailing(User $context, User $user) : bool
Parameters
Return values
boolupdateOtherUserPrivacy()
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>