MetaFox

TagRepositoryInterface
in

Interface TagRepositoryInterface.

Tags
mixin

BaseRepository

Table of Contents

Methods

cleanData()  : array<string, mixed>
Clean input data before fill in.
createHashtag()  : Tag
getTagId()  : int
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<int, mixed>
searchHashtags()  : Collection<string|int, Model>
suggestionHashtags()  : array<int, mixed>
updateTotalItem()  : bool
viewHashtags()  : Paginator

Methods

cleanData()

Clean input data before fill in.

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

createHashtag()

public createHashtag(User $context, array<string, mixed> $attributes) : Tag
Parameters
$context : User
$attributes : array<string, mixed>
Return values
Tag

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<int, mixed>
Parameters
$tags : string
Return values
array<int, mixed>

searchHashtags()

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

suggestionHashtags()

public suggestionHashtags(User $context, array<string, mixed> $attributes) : array<int, mixed>
Parameters
$context : User
$attributes : array<string, mixed>
Return values
array<int, mixed>

viewHashtags()

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

        
On this page

Search results