PHP Class Owl\Repositories\Fluent\ItemFtsRepository

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

Protected Properties

Property Type Description
$table

Public Methods

Method Description
create ( integer $item_id, string $title, text $body ) : integer Create a item fts.
deleteItemFts ( $item_id ) : boolean Delete a item fts.
getById ( integer $item_id ) : void get a itemFts by item_id.
getTableName ( ) : string Get a table name.
match ( string $str, integer $limit = 10, integer $offset ) : array match
matchCount ( string $str ) : array matchCount
toNgram ( string $title, text $body ) : string Convert String into N-Gramed string.

Method Details

create() public method

Create a item fts.
public create ( integer $item_id, string $title, text $body ) : integer
$item_id integer
$title string
$body text
return integer

deleteItemFts() public method

Delete a item fts.
public deleteItemFts ( $item_id ) : boolean
$item_id int
return boolean

getById() public method

get a itemFts by item_id.
public getById ( integer $item_id ) : void
$item_id integer
return void

getTableName() public method

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

match() public method

match
public match ( string $str, integer $limit = 10, integer $offset ) : array
$str string
$limit integer
$offset integer
return array

matchCount() public method

matchCount
public matchCount ( string $str ) : array
$str string
return array

toNgram() public method

Convert String into N-Gramed string.
public toNgram ( string $title, text $body ) : string
$title string
$body text
return string

Property Details

$table protected property

protected $table