Sunnysideup\MigrateData\Tasks\WriteAllDataObjects
Synopsis
class WriteAllDataObjects
extends MigrateDataTaskBase
{
- // members
- protected string $title = 'Creates one of each DataObjects and then deletes it again';
- protected string $description = 'Use this task to find errors in your setup';
- protected boolean $enabled = true;
- protected array $listOfFieldTypesRaw = ;
- protected array $listOfFieldTypesClean = ;
- private static array $objects_to_ignore_for_creation = ;
- private static array $objects_to_ignore_for_updates = ;
- private static array $fields_to_ignore_for_updates = ;
- private static array $required_defaults = ;
- // Inherited members from MigrateDataTaskBase
- protected string $title;
- protected string $description;
- protected boolean $enabled;
- protected $_schema;
- protected $_schemaForDataObject;
- // methods
- public void getExampleValue()
- protected void performMigration()
- // Inherited methods from MigrateDataTaskBase
- public void run()
- protected abstract void performMigration()
- protected void runMoveData()
- protected void migrateSimple()
- // Inherited methods from HelperMethods
- public void deleteObject()
- protected void runSQLQueries()
- protected void runUpdateQuery()
- protected void runPublishClasses()
- protected void makeTableObsolete()
- protected void tableExists()
- protected void fieldExists()
- protected void renameField()
- protected void getSchema()
- protected void getSchemaForDataObject()
- protected void getListOfIDs()
- protected void getListAsIterableQuery()
- protected void writeObject()
- protected void writePage()
Hierarchy
Members
private
- $fields_to_ignore_for_updates
—
array
example: [ 'MySensitiveGuy', 'MySensitiveGal', ]. - $objects_to_ignore_for_creation
—
array
example: [ 'MySensitiveGuy', 'MySensitiveGal', ]. - $objects_to_ignore_for_updates
—
array
example: [ 'MySensitiveGuy', 'MySensitiveGal', ]. - $required_defaults
—
array
example: [ 'MySensitiveGuyTwo' => [ 'Title' => 'AAA', ] ].
protected
- $_schema
- $_schemaForDataObject
- $description
- $description
- $enabled
- $enabled
- $listOfFieldTypesClean
- $listOfFieldTypesRaw
- $title
- $title
Methods
protected
public
Inherited from Sunnysideup\MigrateData\Tasks\MigrateDataTaskBase
protected
- migrateSimple() — Migrates data from one table to another.
- performMigration() — Queries the config for Migrate definitions, and runs migrations if you extend this task then overwrite it this method.
- runMoveData() — data needs to be in this format: [ 'include_inserts' => true|false, #assumed true if not provided 'old_table' => 'foo', 'new_table' => 'bar' (can be the same!).
public
Inherited from Sunnysideup\MigrateData\Traits\HelperMethods
protected
- fieldExists()
- getListAsIterableQuery()
- getListOfIDs()
- getSchema()
- getSchemaForDataObject()
- makeTableObsolete()
- renameField()
- runPublishClasses()
- runSQLQueries()
- runUpdateQuery()
- tableExists()
- writeObject()
- writePage()