a-blog cms PHP API Reference

Import
in package

フォームのインポート処理。エントリー/ブログ/モジュールのインポートと同様に専用クラスとして用意する。

対象ブログに同じ form_code が存在する場合は form_id を維持して上書きし、 投稿ログ(log_form)・エントリー(entry_form_id)の紐付けを保持する。 存在しない場合は新規に採番して作成する。 認可(form_edit ロール等)と CSRF はハンドラ側の責務とする。

Table of Contents

Properties

$failedContents  : array<int, array<string, mixed>>
$repository  : RepositoryInterface

Methods

__construct()  : mixed
getFailedContents()  : array<int, array<string, mixed>>
インポートに失敗した内容を取得する
run()  : void
フォームを YAML(パース済み配列)からインポートする

Properties

$failedContents

private array<int, array<string, mixed>> $failedContents = []

Methods

getFailedContents()

インポートに失敗した内容を取得する

public getFailedContents() : array<int, array<string, mixed>>
Return values
array<int, array<string, mixed>>

run()

フォームを YAML(パース済み配列)からインポートする

public run(int $blogId, array<string, mixed> $yaml) : void
Parameters
$blogId : int
$yaml : array<string, mixed>
Tags
throws
RuntimeException

        
On this page

Search results