a-blog cms PHP API Reference

ModuleImport extends 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
register new ids
ruleFix()  : mixed
rule テーブルの修正
valid()  : void
validate data

Properties

$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
throws
Exception

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

existsYaml()

check yaml data

protected existsYaml(mixed $table) : bool
Parameters
$table : mixed
Return values
bool

fieldFix()

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

protected fieldFix(string $field, mixed $value) : int
Parameters
$field : string
$value : mixed
Return values
int

fixException()

バナーモジュールとモジュールフィールドのファイル・画像の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|null

getIdFromCode()

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|bool

getNewID()

protected getNewID(string $table, int $id) : int|null
Parameters
$table : string
$id : int
Return values
int|null

getNewModuleId()

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

protected getNewModuleId(int $old_mid) : int
Parameters
$old_mid : int
Return values
int

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()

register new ids

protected registerNewIDs() : void

ruleFix()

rule テーブルの修正

protected ruleFix(string $field, mixed $value) : mixed
Parameters
$field : string
$value : mixed

valid()

validate data

protected valid() : void

        
On this page

Search results