class PageJsonMigrator

Helper for migrating JSON content in page versions, templates and components to a new version

Constants

CURRENT_FORMAT_VERSION

Methods

__construct(Component $pageVersion)

No description

static bool
isLatestVersion(Component $model)

No description

void
run()

Runs all migrations if necessary and saves the passed page version if changes have been made.

Details

at line 24
__construct(Component $pageVersion)

No description

Parameters

Component $pageVersion

at line 28
static bool isLatestVersion(Component $model)

No description

Parameters

Component $model

Return Value

bool

at line 40
void run()

Runs all migrations if necessary and saves the passed page version if changes have been made.

Return Value

void

Exceptions

Exception