baserCMS クラスリファレンス

ContentLinksService
in package
implements ContentLinksServiceInterface

ContentLinksService

Table of Contents

Interfaces

ContentLinksServiceInterface
ContentLinksServiceInterface

Properties

$ContentLinks  : ContentLinksTable

Methods

__construct()  : mixed
Constructor
create()  : EntityInterface
コンテンツリンクを新しく登録する
delete()  : bool
リンクをを削除する
get()  : EntityInterface
単一のエンティティを取得する
update()  : EntityInterface
コンテンツリンクを更新する

Properties

Methods

__construct()

Constructor

public __construct() : mixed

ContentLinksTable を初期化し、メンバーにセットする

Tags
checked
noTodo
unitTest

create()

コンテンツリンクを新しく登録する

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

delete()

リンクをを削除する

public delete(int $id) : bool
Parameters
$id : int
Tags
checked
noTodo
unitTest
Return values
bool

get()

単一のエンティティを取得する

public get(int $id[, mixed $options = [] ]) : EntityInterface

Site を内包した、Content を内包する

Parameters
$id : int
  • status: ステータス。publish を指定すると公開状態のもののみ取得(初期値:全て)
$options : mixed = []
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