Свойство | Type | Description | |
---|---|---|---|
$itemHistoryRepo | |||
$itemRepo | |||
$searchService |
Méthode | Description | |
---|---|---|
__construct ( Owl\Repositories\ItemRepositoryInterface $itemRepo, Owl\Repositories\ItemHistoryRepositoryInterface $itemHistoryRepo, |
||
changeFts ( integer $id, object $obj ) : Illuminate\Database\Eloquent\Model | change fts data. (delete and insert) | |
create ( $obj ) : Illuminate\Database\Eloquent\Model | Create a new item. | |
createHistory ( object $item, object $user ) : Illuminate\Database\Eloquent\Model | Create a item history. | |
createOpenItemId ( ) : string | Create open item id. | |
delete ( $item_id ) : boolean | Delete a item. | |
getAll ( ) : Illuminate\Database\Eloquent\Model | Get all items. | |
getAllFlowPublished ( ) : Illuminate\Database\Eloquent\Model | Get flow published items. | |
getAllPublished ( ) : Illuminate\Database\Eloquent\Model | Get all published items. | |
getAllStockPublished ( ) : Illuminate\Database\Eloquent\Model | Get stock published items. | |
getById ( integer $item_id ) : Illuminate\Database\Eloquent\Model | Get a item by item id. | |
getByOpenItemId ( integer $open_item_id ) : Illuminate\Database\Eloquent\Model | Get a item by open item id. | |
getByOpenItemIdWithComment ( integer $open_item_id ) : Illuminate\Database\Eloquent\Model | Get a item by open item id with comments. | |
getHistoryByOpenItemId ( string $open_item_id ) : Illuminate\Database\Eloquent\Model | Get a item history by open item id. | |
getLikeUsersById ( integer $item_id ) : Illuminate\Database\Eloquent\Model | Get like users by item id. | |
getRecentsByLoginUserIdWithPaginate ( integer $user_id ) : Illuminate\Database\Eloquent\Model | Get recent items by login user id with paginate. | |
getRecentsByTagId ( $tag_id ) : Illuminate\Database\Eloquent\Model | Get recent items by tag id. | |
getRecentsByUserId ( integer $user_id ) : Illuminate\Database\Eloquent\Model | Get recent items by user id. | |
getRecentsByUserIdWithPaginate ( integer $user_id ) : Illuminate\Database\Eloquent\Model | Get recent items by user id with paginate. | |
getTagsToArray ( object $item ) : array | get item tags array | |
update ( $id, $obj ) : Illuminate\Database\Eloquent\Model | Update a item. |
public __construct ( Owl\Repositories\ItemRepositoryInterface $itemRepo, Owl\Repositories\ItemHistoryRepositoryInterface $itemHistoryRepo, |
||
$itemRepo | Owl\Repositories\ItemRepositoryInterface | |
$itemHistoryRepo | Owl\Repositories\ItemHistoryRepositoryInterface | |
$searchService |
public create ( $obj ) : Illuminate\Database\Eloquent\Model | ||
$obj | user_id, open_item_id, title, body, published | |
Résultat | Illuminate\Database\Eloquent\Model |
public createHistory ( object $item, object $user ) : Illuminate\Database\Eloquent\Model | ||
$item | object | |
$user | object | |
Résultat | Illuminate\Database\Eloquent\Model |
public createOpenItemId ( ) : string | ||
Résultat | string |
public getAll ( ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getAllFlowPublished ( ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getAllPublished ( ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getAllStockPublished ( ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getByOpenItemId ( integer $open_item_id ) : Illuminate\Database\Eloquent\Model | ||
$open_item_id | integer | |
Résultat | Illuminate\Database\Eloquent\Model |
public getByOpenItemIdWithComment ( integer $open_item_id ) : Illuminate\Database\Eloquent\Model | ||
$open_item_id | integer | |
Résultat | Illuminate\Database\Eloquent\Model |
public getHistoryByOpenItemId ( string $open_item_id ) : Illuminate\Database\Eloquent\Model | ||
$open_item_id | string | |
Résultat | Illuminate\Database\Eloquent\Model |
public getLikeUsersById ( integer $item_id ) : Illuminate\Database\Eloquent\Model | ||
$item_id | integer | |
Résultat | Illuminate\Database\Eloquent\Model |
public getRecentsByLoginUserIdWithPaginate ( integer $user_id ) : Illuminate\Database\Eloquent\Model | ||
$user_id | integer | |
Résultat | Illuminate\Database\Eloquent\Model |
public getRecentsByTagId ( $tag_id ) : Illuminate\Database\Eloquent\Model | ||
Résultat | Illuminate\Database\Eloquent\Model |
public getRecentsByUserId ( integer $user_id ) : Illuminate\Database\Eloquent\Model | ||
$user_id | integer | |
Résultat | Illuminate\Database\Eloquent\Model |
public getRecentsByUserIdWithPaginate ( integer $user_id ) : Illuminate\Database\Eloquent\Model | ||
$user_id | integer | |
Résultat | Illuminate\Database\Eloquent\Model |
public getTagsToArray ( object $item ) : array | ||
$item | object | |
Résultat | array |
public update ( $id, $obj ) : Illuminate\Database\Eloquent\Model | ||
$obj | user_id, open_item_id, title, body, published | |
Résultat | Illuminate\Database\Eloquent\Model |