UserShortcutRepository
extends AbstractRepository
in package
implements
UserShortcutRepositoryInterface
Class AbstractRepository.
Tags
Table of Contents
Interfaces
- UserShortcutRepositoryInterface
- Interface UserShortcut.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanTitle() : string|null
- createdBy() : void
- createMany() : bool
- deletedBy() : void
- deletedByItem() : void
- find() : UserShortcut
- getModel() : UserShortcut
- getUserContractMorphTypeColumns() : array<string|int, string>
- hasSponsorView() : bool
- isNoSponsorView() : bool
- likeOperator() : string
- return the case-insensitive LIKE operator bases on the current database driver.
- model() : mixed
- updateShortType() : UserShortcut
- Update sort type.
- viewForEdit() : Collection
- Browse users.
- viewShortcuts() : Collection
- Browse users.
- where() : $this
- withUserMorphTypeActiveScope() : self
- buildShortcutQuery() : Builder
- toUserEntities() : Collection
Properties
$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
cleanContent()
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|nullcreatedBy()
public
createdBy(HasShortcutItem $item) : void
Parameters
- $item : HasShortcutItem
Tags
createMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
booldeletedBy()
public
deletedBy(HasShortcutItem $item) : void
Parameters
- $item : HasShortcutItem
Tags
deletedByItem()
public
deletedByItem(User $item) : void
Parameters
- $item : User
Tags
find()
public
find(mixed $id, mixed $columns) : UserShortcut
Parameters
- $id : mixed
- $columns : mixed
Return values
UserShortcutgetModel()
public
getModel() : UserShortcut
Return values
UserShortcutgetUserContractMorphTypeColumns()
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()
public
model() : mixed
updateShortType()
Update sort type.
public
updateShortType(User $context, Content $content, int $sortType) : UserShortcut
Parameters
Return values
UserShortcutviewForEdit()
Browse users.
public
viewForEdit(User $context, array<string|int, mixed> $attributes) : Collection
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
CollectionviewShortcuts()
Browse users.
public
viewShortcuts(User $context, array<string|int, mixed> $attributes) : Collection
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
Collectionwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self
Return values
selfbuildShortcutQuery()
protected
buildShortcutQuery(User $context) : Builder
Parameters
- $context : User
Return values
BuildertoUserEntities()
private
toUserEntities(array<string|int, mixed> $collection) : Collection
Parameters
- $collection : array<string|int, mixed>