baserCMS クラスリファレンス

ContentFoldersAdminService extends ContentFoldersService
in package
implements ContentFoldersAdminServiceInterface Uses BcContainerTrait

ContentFoldersAdminService

Table of Contents

Interfaces

ContentFoldersAdminServiceInterface
Interface ContentFoldersAdminServiceInterface

Properties

$ContentFolders  : ContentFoldersTable
ContentFolders Table
$ContentFolders  : ContentFoldersTable
$Contents  : ContentsTable
ContentFolders Table

Methods

__construct()  : mixed
ContentFoldersService constructor.
create()  : EntityInterface
コンテンツフォルダー登録
delete()  : bool
物理削除
get()  : EntityInterface
コンテンツフォルダーを取得する
getFolderTemplateList()  : array<string|int, mixed>
フォルダのテンプレートリストを取得する
getIndex()  : Query
コンテンツフォルダー一覧用のデータを取得
getList()  : array<string|int, mixed>
リストを取得する
getNew()  : EntityInterface
新しいデータの初期値を取得する
getParentTemplate()  : string
親のテンプレートを取得する
getService()  : array<string|int, mixed>|mixed|object
Get Service
getTrash()  : EntityInterface
コンテンツフォルダーをゴミ箱から取得する
getViewVarsForEdit()  : array<string|int, mixed>
編集画面に必要なデータを取得する
hasService()  : bool
Has Service
saveSiteRoot()  : false|EntityInterface
サイトルートフォルダを保存
update()  : EntityInterface
コンテンツフォルダー情報を更新する

Properties

Methods

__construct()

ContentFoldersService constructor.

public __construct() : mixed
Tags
checked
noTodo
unitTest

create()

コンテンツフォルダー登録

public create(array<string|int, mixed> $postData[, array<string|int, mixed> $options = [] ]) : EntityInterface
Parameters
$postData : array<string|int, mixed>
$options : array<string|int, mixed> = []
Tags
throws
PersistenceFailedException
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[, array<string|int, mixed> $queryParams = [] ]) : EntityInterface
Parameters
$id : int
$queryParams : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest
Return values
EntityInterface

getFolderTemplateList()

フォルダのテンプレートリストを取得する

public getFolderTemplateList(int $contentId, array<string|int, mixed>|string $theme) : array<string|int, mixed>
Parameters
$contentId : int
$theme : array<string|int, mixed>|string
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getIndex()

コンテンツフォルダー一覧用のデータを取得

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

getList()

リストを取得する

public getList() : array<string|int, mixed>
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>

getNew()

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

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

getParentTemplate()

親のテンプレートを取得する

public getParentTemplate(int $id, string $type) : string
Parameters
$id : int
$type : string

folder|page

Tags
checked
noTodo
unitTest
Return values
string

$parentTemplate

getService()

Get Service

public getService( $service) : array<string|int, mixed>|mixed|object
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
array<string|int, mixed>|mixed|object

getTrash()

コンテンツフォルダーをゴミ箱から取得する

public getTrash(int $id) : EntityInterface
Parameters
$id : int
Tags
throws
RecordNotFoundException
checked
noTodo
unitTest
Return values
EntityInterface

getViewVarsForEdit()

編集画面に必要なデータを取得する

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

hasService()

Has Service

public hasService( $service) : bool
Parameters
$service :
Tags
checked
noTodo
unitTest
Return values
bool

saveSiteRoot()

サイトルートフォルダを保存

public saveSiteRoot(Site|EntityInterface $site[, bool $isUpdateChildrenUrl = false ]) : false|EntityInterface
Parameters
$site : Site|EntityInterface
$isUpdateChildrenUrl : bool = false

子のコンテンツのURLを一括更新するかどうか

Tags
throws
RecordNotFoundException
checked
noTodo
unitTest
Return values
false|EntityInterface

update()

コンテンツフォルダー情報を更新する

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

        
On this page

Search results