PHP Class Owl\Repositories\Eloquent\TagFtsRepository

Inheritance: implements Owl\Repositories\TagFtsRepositoryInterface
Show file Open project: owl/owl

Protected Properties

Property Type Description
$tagFts

Public Methods

Method Description
__construct ( TagFts $tagFts )
firstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model get a tagFts data or Create a tagFts data by ID and Words.
match ( $str, integer $limit = 10, integer $offset ) : array get tags data by string for FullTextSearch.

Method Details

__construct() public method

public __construct ( TagFts $tagFts )
$tagFts Owl\Repositories\Eloquent\Models\TagFts

firstOrCreateByIdAndWords() public method

get a tagFts data or Create a tagFts data by ID and Words.
public firstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model
$tag_id integer
$words string
return Illuminate\Database\Eloquent\Model

match() public method

get tags data by string for FullTextSearch.
public match ( $str, integer $limit = 10, integer $offset ) : array
$limit integer
$offset integer
return array

Property Details

$tagFts protected property

protected $tagFts