\PluginRecords

Add plugin migration

Summary

Methods
Properties
Constants
updateRecords()
loadModels()
before()
after()
$description
$migration
$records
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$description

$description : string

Migration description

Type

string

$migration

$migration : array

Actions to be performed

Type

array

$records

$records : array

plugin data

Type

array

Methods

updateRecords()

updateRecords(string  $model, string  $records, string  $clear = true) : boolean

Update model records

Parameters

string $model

model name to update

string $records

records to be stored

string $clear

初期化するかどうか

Returns

boolean —

Should process continue

loadModels()

loadModels(array  $models = array(), string  $source = 'master') : void

Load models

Parameters

array $models

models to load

string $source

data source

before()

before(string  $direction) : boolean

Before migration callback

Parameters

string $direction

Direction of migration process (up or down)

Returns

boolean —

Should process continue

after()

after(string  $direction) : boolean

After migration callback

Parameters

string $direction

Direction of migration process (up or down)

Returns

boolean —

Should process continue