PhotoGroupRepository
extends AbstractRepository
in package
implements
PhotoGroupRepositoryInterface
Uses
CheckModeratorSettingTrait
Class AlbumRepository.
Tags
Table of Contents
Interfaces
- PhotoGroupRepositoryInterface
- Interface PhotoRepositoryInterface.
Properties
- $model : PhotoGroup
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- checkModeratorSetting() : bool
- cleanContent() : string|null
- cleanTitle() : string|null
- cleanUpGroup() : bool
- createMany() : bool
- deleteUserPhotoGroups() : void
- forceContentForGlobalSearch() : array<string|int, mixed>
- getModel() : PhotoGroup
- getUserContractMorphTypeColumns() : array<string|int, string>
- handleContent() : array<string|int, mixed>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : string
- updateApprovedStatus() : bool
- updateGlobalSearchForSingleMedia() : void
- viewPhotoGroup() : PhotoGroup
- where() : $this
- withUserMorphTypeActiveScope() : self
- assertApproveStatus() : bool
Properties
$model
public
PhotoGroup
$model
$disableSponsor
protected
mixed
$disableSponsor
$skipPresenter
protected
mixed
$skipPresenter
= true
Methods
buildQueryScopes()
public
buildQueryScopes(mixed $query, mixed $model, mixed $criteria) : mixed
Parameters
- $query : mixed
- $model : mixed
- $criteria : mixed
checkModeratorSetting()
public
checkModeratorSetting(User $user, User $owner, string $settingName) : bool
Parameters
Return values
boolcleanContent()
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|nullcleanUpGroup()
public
cleanUpGroup(PhotoGroup|null $group) : bool
Parameters
- $group : PhotoGroup|null
Return values
boolcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
booldeleteUserPhotoGroups()
public
deleteUserPhotoGroups(User $user) : void
Parameters
- $user : User
forceContentForGlobalSearch()
public
forceContentForGlobalSearch(array<string|int, mixed> $files, string|null $content) : array<string|int, mixed>
Parameters
- $files : array<string|int, mixed>
- $content : string|null
Return values
array<string|int, mixed>getModel()
public
getModel() : PhotoGroup
Return values
PhotoGroupgetUserContractMorphTypeColumns()
public
getUserContractMorphTypeColumns() : array<string|int, string>
Return values
array<string|int, string>handleContent()
public
handleContent(array<string|int, mixed> $attributes[, string $field = 'content' ]) : array<string|int, mixed>
Parameters
- $attributes : array<string|int, mixed>
- $field : string = 'content'
Return values
array<string|int, mixed>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()
public
model() : string
Return values
stringupdateApprovedStatus()
public
updateApprovedStatus(PhotoGroup|null $group) : bool
Parameters
- $group : PhotoGroup|null
Tags
Return values
boolupdateGlobalSearchForSingleMedia()
public
updateGlobalSearchForSingleMedia(PhotoGroup $group, string|null $text, int $total[, array<string|int, mixed>|null $oldFiles = null ]) : void
Parameters
- $group : PhotoGroup
- $text : string|null
- $total : int
- $oldFiles : array<string|int, mixed>|null = null
viewPhotoGroup()
public
viewPhotoGroup(User $context, int $id) : PhotoGroup
Parameters
- $context : User
- $id : int
Return values
PhotoGroupwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfassertApproveStatus()
private
assertApproveStatus(PhotoGroup $group) : bool
Parameters
- $group : PhotoGroup