프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$itemFtsRepo | |||
$tagFtsRepo |
메소드 | 설명 | |
---|---|---|
__construct ( Owl\Repositories\ItemFtsRepositoryInterface $itemFtsRepo, Owl\Repositories\TagFtsRepositoryInterface $tagFtsRepo ) | ||
itemCreate ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model | Create a item fts. | |
itemDelete ( $item_id ) : boolean | Delete a item fts. | |
itemMatch ( string $str, integer $limit = 10, integer $offset ) : array | item match | |
itemMatchCount ( string $str ) : array | item matchCount | |
tagFirstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model | get a tagFts data or Create a tagFts data by ID and Words. | |
tagMatch ( $str, integer $limit = 10, integer $offset ) : array | get tags data by string for FullTextSearch. |
public __construct ( Owl\Repositories\ItemFtsRepositoryInterface $itemFtsRepo, Owl\Repositories\TagFtsRepositoryInterface $tagFtsRepo ) | ||
$itemFtsRepo | Owl\Repositories\ItemFtsRepositoryInterface | |
$tagFtsRepo | Owl\Repositories\TagFtsRepositoryInterface |
public itemCreate ( integer $item_id, string $title, text $body ) : Illuminate\Database\Eloquent\Model | ||
$item_id | integer | |
$title | string | |
$body | text | |
리턴 | Illuminate\Database\Eloquent\Model |
public itemDelete ( $item_id ) : boolean | ||
$item_id | int | |
리턴 | boolean |
public itemMatchCount ( string $str ) : array | ||
$str | string | |
리턴 | array |
public tagFirstOrCreateByIdAndWords ( integer $tag_id, string $words ) : Illuminate\Database\Eloquent\Model | ||
$tag_id | integer | |
$words | string | |
리턴 | Illuminate\Database\Eloquent\Model |