TagRepository
extends AbstractRepository
in package
implements
TagRepositoryInterface
Class AbstractRepository.
Table of Contents
Interfaces
- TagRepositoryInterface
- Interface TagRepositoryInterface.
Properties
- $disableSponsor : mixed
- $skipPresenter : mixed
Methods
- buildQueryScopes() : mixed
- cleanContent() : string|null
- cleanData() : array<string, mixed>
- Clean input data before fill in.
- cleanTitle() : string|null
- createHashtag() : Tag
- createMany() : bool
- getTagId() : int
- Get list of tag ids of tags string Insert new tags if there are no associate tag_url.
- getTagIds() : array<string|int, int>
- Get list of tag ids of tags string Insert new tags if there are no associate tag_url.
- getTagIdsForString() : array<string|int, int>
- 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
- searchHashtags() : Collection<string|int, Model>
- suggestionHashtags() : array<int, mixed>
- updateTotalItem() : bool
- viewHashtags() : Paginator
- where() : $this
- withUserMorphTypeActiveScope() : self
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|nullcleanData()
Clean input data before fill in.
public
cleanData(array<string, mixed> $attributes) : array<string, mixed>
Parameters
- $attributes : array<string, mixed>
Tags
Return values
array<string, mixed>cleanTitle()
public
cleanTitle(string|null $string) : string|null
Parameters
- $string : string|null
Return values
string|nullcreateHashtag()
public
createHashtag(User $context, array<string|int, mixed> $attributes) : Tag
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Tags
Return values
TagcreateMany()
public
createMany(array<string|int, mixed> $items) : bool
Parameters
- $items : array<string|int, mixed>
Return values
boolgetTagId()
Get list of tag ids of tags string Insert new tags if there are no associate tag_url.
public
getTagId(string $tag) : int
Parameters
- $tag : string
Return values
intgetTagIds()
Get list of tag ids of tags string Insert new tags if there are no associate tag_url.
public
getTagIds(array<string|int, string> $tags) : array<string|int, int>
Parameters
- $tags : array<string|int, string>
Return values
array<string|int, int>getTagIdsForString()
public
getTagIdsForString(string $tags) : array<string|int, int>
Parameters
- $tags : string
Return values
array<string|int, int>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
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
searchHashtags()
public
searchHashtags(User $context, array<string, mixed> $attributes) : Collection<string|int, Model>
Parameters
- $context : User
- $attributes : array<string, mixed>
Tags
Return values
Collection<string|int, Model>suggestionHashtags()
public
suggestionHashtags(User $context, array<string|int, mixed> $attributes) : array<int, mixed>
Parameters
- $context : User
- $attributes : array<string|int, mixed>
Return values
array<int, mixed>updateTotalItem()
public
updateTotalItem(User $context, int $id) : bool
Parameters
- $context : User
- $id : int
Tags
Return values
boolviewHashtags()
public
viewHashtags(User $context, array<string, mixed> $attributes) : Paginator
Parameters
- $context : User
- $attributes : array<string, mixed>
Tags
Return values
Paginatorwhere()
public
where(array<string|int, mixed> $params) : $this
Parameters
- $params : array<string|int, mixed>
Tags
Return values
$thiswithUserMorphTypeActiveScope()
public
withUserMorphTypeActiveScope() : self