MetaFox

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

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|null

cleanData()

Clean input data before fill in.

public cleanData(array<string, mixed> $attributes) : array<string, mixed>
Parameters
$attributes : array<string, mixed>
Tags
inheritdoc
Return values
array<string, mixed>

cleanTitle()

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

createHashtag()

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

createMany()

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

getTagId()

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
int

getTagIds()

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
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

searchHashtags()

public searchHashtags(User $context, array<string, mixed> $attributes) : Collection<string|int, Model>
Parameters
$context : User
$attributes : array<string, mixed>
Tags
SuppressWarnings

(PHPMD.UnusedFormalParameter)

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
throws
AuthorizationException
Return values
bool

viewHashtags()

public viewHashtags(User $context, array<string, mixed> $attributes) : Paginator
Parameters
$context : User
$attributes : array<string, mixed>
Tags
throws
AuthorizationException
Return values
Paginator

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

        
On this page

Search results