Import
in package
Table of Contents
Properties
- $bid : int
- $failedContents : array<string|int, mixed>
- $failedMeta : array<string|int, mixed>
- $meta : array<string|int, mixed>
- $newIDs : array<string|int, mixed>
- $oldModules : array<string|int, mixed>
- $yaml : array<string|int, mixed>
Methods
- getFailedContents() : array<string|int, mixed>
- run() : void
- import config from yaml
- config_setFix() : mixed
- config_set テーブルの修正
- configFix() : mixed
- config テーブルの修正
- dropData() : void
- drop data
- existsYaml() : bool
- check yaml data
- fieldFix() : int
- フィールド テーブルの修正
- fixException() : void
- バナーモジュールとモジュールフィールドのファイル・画像のmidを更新
- fixSequence() : void
- fix sequence
- getCurrentID() : int|null
- getIdFromCode() : int|bool
- get id from code
- getNewID() : int|null
- getNewModuleId() : int
- 古いモジュールIDから新しいモジュールIDを取得
- import() : void
- import
- insertData() : void
- moduleFix() : mixed
- module テーブルの修正
- oldModule() : void
- 古いモジュールIDを変換用に一時保存
- registerNewID() : void
- registerNewIDs() : void
- ruleFix() : mixed
- rule テーブルの修正
- valid() : void
- validate data
- checkAuth() : bool
- check auth
Properties
$bid
protected
int
$bid
$failedContents
protected
array<string|int, mixed>
$failedContents
$failedMeta
protected
array<string|int, mixed>
$failedMeta
$meta
protected
array<string|int, mixed>
$meta
$newIDs
protected
array<string|int, mixed>
$newIDs
$oldModules
protected
array<string|int, mixed>
$oldModules
$yaml
protected
array<string|int, mixed>
$yaml
Methods
getFailedContents()
public
getFailedContents() : array<string|int, mixed>
Return values
array<string|int, mixed>run()
import config from yaml
public
run(int $bid, array<string|int, mixed> $yaml) : void
Parameters
- $bid : int
- $yaml : array<string|int, mixed>
Tags
config_setFix()
config_set テーブルの修正
protected
config_setFix(string $field, mixed $value) : mixed
Parameters
- $field : string
- $value : mixed
configFix()
config テーブルの修正
protected
configFix(string $field, mixed $value) : mixed
Parameters
- $field : string
- $value : mixed
dropData()
drop data
protected
dropData() : void
existsYaml()
check yaml data
protected
existsYaml(mixed $table) : bool
Parameters
- $table : mixed
Return values
boolfieldFix()
フィールド テーブルの修正
protected
fieldFix(string $field, mixed $value) : int
Parameters
- $field : string
- $value : mixed
Return values
intfixException()
バナーモジュールとモジュールフィールドのファイル・画像のmidを更新
protected
fixException() : void
fixSequence()
fix sequence
protected
fixSequence() : void
getCurrentID()
protected
getCurrentID(string $type, int $id) : int|null
Parameters
- $type : string
- $id : int
Return values
int|nullgetIdFromCode()
get id from code
protected
getIdFromCode(string $type, string $code[, bool $hierarchy = false ]) : int|bool
Parameters
- $type : string
- $code : string
- $hierarchy : bool = false
Return values
int|boolgetNewID()
protected
getNewID(string $table, int $id) : int|null
Parameters
- $table : string
- $id : int
Return values
int|nullgetNewModuleId()
古いモジュールIDから新しいモジュールIDを取得
protected
getNewModuleId(int $old_mid) : int
Parameters
- $old_mid : int
Return values
intimport()
import
protected
import() : void
insertData()
protected
insertData(string $table) : void
Parameters
- $table : string
moduleFix()
module テーブルの修正
protected
moduleFix(string $field, mixed $value) : mixed
Parameters
- $field : string
- $value : mixed
oldModule()
古いモジュールIDを変換用に一時保存
protected
oldModule() : void
registerNewID()
protected
registerNewID(string $table) : void
Parameters
- $table : string
registerNewIDs()
protected
registerNewIDs() : void
ruleFix()
rule テーブルの修正
protected
ruleFix(string $field, mixed $value) : mixed
Parameters
- $field : string
- $value : mixed
valid()
validate data
protected
valid() : void
checkAuth()
check auth
private
checkAuth() : bool