baserCMS クラスリファレンス

BcSchema extends TableSchema
in package

BcSchema

バックアップで利用するスキーマで継承して利用する 継承するクラスファイルは、BcDatabaseService::writeSchema() で生成する。

Table of Contents

Properties

$connection  : string
コネクション名
$fields  : array<string|int, mixed>
フィールド
$table  : string
テーブル名

Methods

__construct()  : mixed
Construct
connection()  : string
コネクション名を取得
create()  : void
テーブルを作成する
drop()  : void
テーブルを削除する
init()  : mixed
初期化処理
setTable()  : mixed
テーブルをセットする
_schemaFromFields()  : void
fields プロパティからスキーマを構築 Cake\TestSuite\Fixture\TestFixture::_schemaFromFields() を移植

Properties

$connection

コネクション名

public string $connection

$fields

フィールド

public array<string|int, mixed> $fields

$table

テーブル名

public string $table

Methods

__construct()

Construct

public __construct([string $table = '' ][, array<string|int, mixed> $columns = [] ]) : mixed
Parameters
$table : string = ''
$columns : array<string|int, mixed> = []
Tags
checked
noTodo
unitTest

connection()

コネクション名を取得

public connection() : string
Tags
checked
noTodo
unitTest
Return values
string

create()

テーブルを作成する

public create() : void
Tags
checked
noTodo
unitTest

drop()

テーブルを削除する

public drop() : void
Tags
checked
noTodo
unitTest

init()

初期化処理

public init() : mixed
Tags
checked
noTodo
unitTest

setTable()

テーブルをセットする

public setTable(string $table) : mixed
Parameters
$table : string
Tags
checked
noTodo

_schemaFromFields()

fields プロパティからスキーマを構築 Cake\TestSuite\Fixture\TestFixture::_schemaFromFields() を移植

protected _schemaFromFields() : void
Tags
unitTest

移植のためテストをスキップ

noTodo
checked

        
On this page

Search results