Properties

$yaml

$yaml : array

Type

array

$bid

$bid : integer

Type

integer

$meta

$meta : array

Type

array

$failedMeta

$failedMeta : array

Type

array

$failedContents

$failedContents : array

Type

array

$newIDs

$newIDs : array

Type

array

$oldModules

$oldModules : array

Type

array

Methods

run()

run(integer  $bid, array  $yaml) : void

import config from yaml

Parameters

integer $bid
array $yaml

Throws

\Exception

getFailedContents()

getFailedContents() : array

Returns

array

fixSequence()

fixSequence() : void

fix sequence

import()

import() : void

import

oldModule()

oldModule() : void

古いモジュールIDを変換用に一時保存

getNewModuleId()

getNewModuleId(integer  $old_mid) : integer

古いモジュールIDから新しいモジュールIDを取得

Parameters

integer $old_mid

Returns

integer

fixException()

fixException() : void

バナーモジュールとモジュールフィールドのファイル・画像のmidを更新

valid()

valid() : void

validate data

dropData()

dropData() : void

drop data

registerNewIDs()

registerNewIDs() : void

registerNewID()

registerNewID(string  $table) : void

Parameters

string $table

insertData()

insertData(string  $table) : void

Parameters

string $table

configFix()

configFix(string  $field, mixed  $value) : integer

Config テーブルの修正

Parameters

string $field
mixed $value

Returns

integer

ruleFix()

ruleFix(string  $field, mixed  $value) : integer

ルール テーブルの修正

Parameters

string $field
mixed $value

Returns

integer

moduleFix()

moduleFix(string  $field, mixed  $value) : integer

モジュール テーブルの修正

Parameters

string $field
mixed $value

Returns

integer

fieldFix()

fieldFix(string  $field, mixed  $value) : integer

フィールド テーブルの修正

Parameters

string $field
mixed $value

Returns

integer

existsYaml()

existsYaml(  $table) : boolean

check yaml data

Parameters

$table

Returns

boolean

getNewID()

getNewID(string  $table, integer  $id) : integer

Parameters

string $table
integer $id

Returns

integer

getCurrentID()

getCurrentID(string  $type, integer  $id) : integer

Parameters

string $type
integer $id

Returns

integer

getIdFromCode()

getIdFromCode(string  $type, string  $code, boolean  $hierarchy = false) : integer

get id from code

Parameters

string $type
string $code
boolean $hierarchy

Returns

integer —

| bool

checkAuth()

checkAuth() : boolean

check auth

Returns

boolean