baserCMS クラスリファレンス

FavoritesService
in package
implements FavoritesServiceInterface

FavoritesService

Table of Contents

Interfaces

FavoritesServiceInterface
FavoritesServiceInterface

Properties

$Favorites  : FavoritesTable|Table
Favorites Table

Methods

__construct()  : mixed
FavoritesService constructor.
changeSort()  : bool
優先度を変更する
create()  : EntityInterface
お気に入りを新規登録する
delete()  : mixed
削除する
get()  : EntityInterface
お気に入りを取得する
getIndex()  : Query
お気に入り一覧を取得
getNew()  : EntityInterface
新しいデータの初期値を取得する
update()  : EntityInterface
編集する

Properties

Methods

__construct()

FavoritesService constructor.

public __construct() : mixed
Tags
checked
noTodo

changeSort()

優先度を変更する

public changeSort(int $id, int $offset[, array<string|int, mixed> $conditions = [] ]) : bool
Parameters
$id : int
$offset : int
$conditions : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
bool

create()

お気に入りを新規登録する

public create(array<string|int, mixed> $postData) : EntityInterface
Parameters
$postData : array<string|int, mixed>
Tags
throws
PersistenceFailedException
checked
noTodo
unitTest
Return values
EntityInterface

delete()

削除する

public delete(int $id) : mixed
Parameters
$id : int
Tags
checked
noTodo
unitTest

get()

お気に入りを取得する

public get(int $id) : EntityInterface
Parameters
$id : int
Tags
checked
noTodo
unitTest
Return values
EntityInterface

getIndex()

お気に入り一覧を取得

public getIndex(array<string|int, mixed> $queryParams) : Query
Parameters
$queryParams : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
Query

getNew()

新しいデータの初期値を取得する

public getNew() : EntityInterface
Tags
checked
noTodo
unitTest
Return values
EntityInterface

update()

編集する

public update(EntityInterface $target, array<string|int, mixed> $postData) : EntityInterface
Parameters
$target : EntityInterface
$postData : array<string|int, mixed>
Tags
throws
PersistenceFailedException
checked
noTodo
unitTest
Return values
EntityInterface

        
On this page

Search results