PHP Класс Owl\Repositories\Eloquent\ItemFtsRepository

Наследование: implements Owl\Repositories\ItemFtsRepositoryInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$itemFts

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный метод

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

create() публичный метод

Create a item fts.
public create ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model
$item_id integer
$title string
$body text
Результат Illuminate\Database\Eloquent\Model

deleteItemFts() публичный метод

Delete a item fts.
public deleteItemFts ( $item_id ) : boolean
$item_id int
Результат boolean

match() публичный метод

match
public match ( string $str, integer $limit = 10, integer $offset ) : array
$str string
$limit integer
$offset integer
Результат array

matchCount() публичный метод

matchCount
public matchCount ( string $str ) : array
$str string
Результат array

toNgram() публичный метод

Convert String into N-Gramed string.
public toNgram ( string $title, text $body ) : string
$title string
$body text
Результат string

Описание свойств

$itemFts защищенное свойство

protected $itemFts