Update6_1_1
extends UpdateRelease27
in package
Table of Contents
- $skip_types : array<string|int, mixed>
- $types : array<string|int, mixed>
- $ignore : array<string|int, mixed>
- Folder to ignore as they are technical or, use named / uuids
- MigrateAllToUUId() : mixed
- MigrateLocalePaths() : mixed
- affectedElements() : null|array<string|int, BaseContent>
- getElements() : Result
- Get element list as mapped result
- migrateElements() : Result
- Migrate all mapped elements to new destination
- updateAttributes() : mixed
- updateSingleAttribute() : mixed
- IgnoreList() : array<string|int, mixed>
- Get list of ignored types
- migrateAssignments() : Result
- Fix known relations, include some additional sub types that are not directly assignable
Properties
$skip_types
protected
static array<string|int, mixed>
$skip_types
= ['company']
$types
protected
static array<string|int, mixed>
$types
= ['country', 'language']
$ignore
Folder to ignore as they are technical or, use named / uuids
private
static array<string|int, mixed>
$ignore
= array('cronjob', 'emailsetup', 'folder', 'group', 'plugin', 'template', 'translation', 'obj', 'widgets', 'widget_extras', 'uploads', 'node_modules', 'country', 'language', 'user', 'company', 'email', 'customer', 'service', 'bill', 'asset', 'article', 'employee', 'resource', 'task', 'taskpart', 'newsletter')
Methods
MigrateAllToUUId()
public
static MigrateAllToUUId() : mixed
Return values
mixed —MigrateLocalePaths()
public
static MigrateLocalePaths() : mixed
Return values
mixed —affectedElements()
protected
static affectedElements( $type) : null|array<string|int, BaseContent>
Parameters
Return values
null|array<string|int, BaseContent> —getElements()
Get element list as mapped result
protected
static getElements(string $type) : Result
Parameters
- $type : string
-
Name of content type
Return values
Result —migrateElements()
Migrate all mapped elements to new destination
protected
static migrateElements(array<string|int, mixed> $map, string $type) : Result
Parameters
- $map : array<string|int, mixed>
-
List of elements with data and relevant locations
- $type : string
-
Name of content type
Return values
Result —updateAttributes()
protected
static updateAttributes(array<string|int, mixed> $rel, BaseContent &$element, array<string|int, mixed> &$map, array<string|int, mixed> $attribute, array<string|int, mixed> $path_components, int $j) : mixed
Parameters
- $rel : array<string|int, mixed>
- $element : BaseContent
- $map : array<string|int, mixed>
- $attribute : array<string|int, mixed>
- $path_components : array<string|int, mixed>
- $j : int
Return values
mixed —updateSingleAttribute()
protected
static updateSingleAttribute(array<string|int, mixed> &$rel, BaseContent $element, array<string|int, mixed> $map, array<string|int, mixed> $attribute) : mixed
Parameters
- $rel : array<string|int, mixed>
- $element : BaseContent
- $map : array<string|int, mixed>
- $attribute : array<string|int, mixed>
Return values
mixed —IgnoreList()
Get list of ignored types
private
static IgnoreList() : array<string|int, mixed>
Return values
array<string|int, mixed> —migrateAssignments()
Fix known relations, include some additional sub types that are not directly assignable
private
static migrateAssignments(string $root, array<string|int, mixed> $languages_map) : Result
Parameters
- $root : string
- $languages_map : array<string|int, mixed>