PHP Class Owl\Repositories\Eloquent\ItemFtsRepository

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

Protected Properties

Property Type Description
$itemFts

Public Methods

Method Description
__construct ( ItemFts $itemFts )
create ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model Create a item fts.
deleteItemFts ( $item_id ) : boolean Delete a item fts.
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

__construct() public method

public __construct ( ItemFts $itemFts )
$itemFts Owl\Repositories\Eloquent\Models\ItemFts

create() public method

Create a item fts.
public create ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model
$item_id integer
$title string
$body text
return Illuminate\Database\Eloquent\Model

deleteItemFts() public method

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

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

$itemFts protected property

protected $itemFts