ModuleExport
extends Export
in package
Table of Contents
Properties
- $bid : int
- $metaIds : string
- $metaTargetIds : string
- $mid : int
- $yaml : array<string|int, mixed>
Methods
- __construct() : mixed
- Export constructor.
- exportAll() : void
- export config data
- exportDefaultConfig() : void
- export default config data
- exportModule() : void
- export module data
- exportPartsConfig() : mixed
- getArray() : array<string|int, mixed>
- get data as array
- getYaml() : string
- get data as yaml
- buildConfigSetYaml() : mixed
- buildConfigYaml() : void
- buildFieldYaml() : void
- buildModuleYaml() : void
- buildRuleYaml() : void
- extractMetaIds() : mixed
- meta data を抽出
- getCode() : string|false
- get code for id
- setYaml() : void
- set data as yaml
Properties
$bid
protected
int
$bid
$metaIds
protected
string
$metaIds
$metaTargetIds
protected
string
$metaTargetIds
$mid
protected
int
$mid
$yaml
protected
array<string|int, mixed>
$yaml
Methods
__construct()
Export constructor.
public
__construct() : mixed
exportAll()
export config data
public
exportAll(int $bid) : void
Parameters
- $bid : int
exportDefaultConfig()
export default config data
public
exportDefaultConfig(int $bid) : void
Parameters
- $bid : int
exportModule()
export module data
public
exportModule(int $mid) : void
Parameters
- $mid : int
exportPartsConfig()
public
exportPartsConfig(Field $field) : mixed
Parameters
- $field : Field
getArray()
get data as array
public
getArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getYaml()
get data as yaml
public
getYaml() : string
Return values
stringbuildConfigSetYaml()
protected
buildConfigSetYaml() : mixed
buildConfigYaml()
protected
buildConfigYaml() : void
buildFieldYaml()
protected
buildFieldYaml() : void
buildModuleYaml()
protected
buildModuleYaml() : void
buildRuleYaml()
protected
buildRuleYaml() : void
extractMetaIds()
meta data を抽出
protected
extractMetaIds(array<string|int, mixed> $record) : mixed
Parameters
- $record : array<string|int, mixed>
getCode()
get code for id
protected
getCode(string $type, int $id) : string|false
Parameters
- $type : string
- $id : int
Return values
string|falsesetYaml()
set data as yaml
protected
setYaml(array<string|int, mixed> $records, string $table) : void
Parameters
- $records : array<string|int, mixed>
- $table : string