FavoritesService
in package
implements
FavoritesServiceInterface
FavoritesService
Interfaces, Classes, Traits and Enums
- FavoritesServiceInterface
- FavoritesServiceInterface
Table of Contents
- $Favorites : Table
- Favorites Table
- __construct() : mixed
- FavoritesService constructor.
- changeSort() : bool
- 優先度を変更する
- create() : EntityInterface
- お気に入りを新規登録する
- delete() : mixed
- 削除する
- get() : EntityInterface
- お気に入りを取得する
- getIndex() : Query
- お気に入り一覧を取得
- getNew() : EntityInterface
- 新しいデータの初期値を取得する
- update() : EntityInterface
- 編集する
Properties
$Favorites
Favorites Table
public
Table
$Favorites
Methods
__construct()
FavoritesService constructor.
public
__construct() : mixed
Return values
mixed —changeSort()
優先度を変更する
public
changeSort(int $id, int $offset[, array<string|int, mixed> $conditions = [] ]) : bool
Parameters
- $id : int
- $offset : int
- $conditions : array<string|int, mixed> = []
Tags
Return values
bool —create()
お気に入りを新規登録する
public
create(array<string|int, mixed> $postData) : EntityInterface
Parameters
- $postData : array<string|int, mixed>
Tags
Return values
EntityInterface —delete()
削除する
public
delete(int $id) : mixed
Parameters
- $id : int
Tags
Return values
mixed —get()
お気に入りを取得する
public
get(int $id) : EntityInterface
Parameters
- $id : int
Tags
Return values
EntityInterface —getIndex()
お気に入り一覧を取得
public
getIndex(array<string|int, mixed> $queryParams) : Query
Parameters
- $queryParams : array<string|int, mixed>
Tags
Return values
Query —getNew()
新しいデータの初期値を取得する
public
getNew() : EntityInterface
Tags
Return values
EntityInterface —update()
編集する
public
update(EntityInterface $target, array<string|int, mixed> $postData) : EntityInterface
Parameters
- $target : EntityInterface
- $postData : array<string|int, mixed>