Sunnysideup\MigrateData\Tasks\CheckClassNames
Synopsis
class CheckClassNames
extends MigrateDataTaskBase
{
- // members
- protected string $title = 'Check all tables for valid class names';
- protected string $description = 'Check all tables for valid class names';
- protected boolean $enabled = true;
- protected array $listOfAllClasses = ;
- protected array $countsOfAllClasses = ;
- protected array $dbTablesPresent = ;
- protected boolean $fixErrors = true;
- protected boolean $forReal = true;
- protected $dataObjectSchema;
- protected array $onlyRunFor = ;
- private static array $other_fields_to_check = ;
- // Inherited members from MigrateDataTaskBase
- protected string $title;
- protected string $description;
- protected boolean $enabled;
- protected $_schema;
- protected $_schemaForDataObject;
- // methods
- protected void performMigration()
- protected void fixingClassNames()
- // 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
- $other_fields_to_check
—
array
example: [ ClassName => [ FieldA, FieldB, ].
protected
- $_schema
- $_schemaForDataObject
- $countsOfAllClasses
- $dataObjectSchema
- $dbTablesPresent
- $description
- $description
- $enabled
- $enabled
- $fixErrors
- $forReal
- $listOfAllClasses
- $onlyRunFor
- $title
- $title
Methods
protected
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()