Dynamic\BlockMigration\Tools\BlockElementTranslator
Class BlockElementTranslator
Synopsis
class BlockElementTranslator
{
- // members
- private static bool $explicit_data_transfer = false;
- // methods
- public static void translate_block()
- protected static void duplicateRelations()
- protected static void duplicateManyManyRelations()
- protected static void duplicateManyManyRelation()
- protected static void duplicateHasManyRelation()
- protected static void duplicateHasOneRelation()
- protected static void duplicateBelongsToRelation()
- protected static bool|string get_require_new_instance()
- protected static mixed set_explicit()
Hierarchy
Uses
- SilverStripe\Core\Extensible
- SilverStripe\Core\Injector\Injectable
- SilverStripe\Core\Config\Configurable
Tasks
Line | Task |
---|---|
301 | Write this component in onAfterWrite instead, assigning the FieldID then |
Members
private
- $explicit_data_transfer
—
Dynamic\BlockMigration\Tools\bool
Explicitly traverse $db fields and migrate field to field.
Methods
protected
- duplicateBelongsToRelation() — Duplicates a single belongs_to relation from one object to another.
- duplicateHasManyRelation() — Duplicates a single many_many relation from one object to another.
- duplicateHasOneRelation() — Duplicates a single has_one relation from one object to another.
- duplicateManyManyRelation() — Duplicates a single many_many relation from one object to another.
- duplicateManyManyRelations() — Copies the many_many and belongs_many_many relations from one object to another instance of the name of object.
- duplicateRelations() — Copies the given relations from this object to the destination.
- get_require_new_instance()
- set_explicit()