PHP Class Owl\Repositories\Fluent\TagFtsRepository

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

Protected Properties

Property Type Description
$table

Public Methods

Method Description
firstOrCreateByIdAndWords ( integer $tag_id, string $words ) : stdClass get a tagFts data or Create a tagFts data by ID and Words.
getById ( $tag_id ) : void get a tagFts by tag_id.
getTableName ( ) : string Get a table name.
match ( $str, integer $limit = 10, integer $offset ) : array get tags data by string for FullTextSearch.

Method Details

firstOrCreateByIdAndWords() public method

get a tagFts data or Create a tagFts data by ID and Words.
public firstOrCreateByIdAndWords ( integer $tag_id, string $words ) : stdClass
$tag_id integer
$words string
return stdClass

getById() public method

get a tagFts by tag_id.
public getById ( $tag_id ) : void
return void

getTableName() public method

Get a table name.
public getTableName ( ) : string
return string

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

$table protected property

protected $table