Drupal 8  8.0.2
TestDrupal6SqlBase Class Reference
Inheritance diagram for TestDrupal6SqlBase:

Public Member Functions

 fields ()
 
 query ()
 
 setDatabase (Connection $database)
 
 setModuleHandler (ModuleHandlerInterface $module_handler)
 
 moduleExistsWrapper ($module)
 
 getModuleSchemaVersionWrapper ($module)
 
 variableGetWrapper ($name, $default)
 
 getIds ()
 
- Public Member Functions inherited from DrupalSqlBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state, EntityManagerInterface $entity_manager)
 
 getSystemData ()
 
 checkRequirements ()
 
 calculateDependencies ()
 
- Public Member Functions inherited from SqlBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration, StateInterface $state)
 
 __toString ()
 
 getDatabase ()
 
 query ()
 
 count ()
 
- Public Member Functions inherited from SourcePluginBase
 __construct (array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration)
 
 prepareRow (Row $row)
 
 current ()
 
 key ()
 
 valid ()
 
 rewind ()
 
 next ()
 
 getCurrentIds ()
 
 count ($refresh=FALSE)
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 

Additional Inherited Members

- Static Public Member Functions inherited from DrupalSqlBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from SqlBase
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition, MigrationInterface $migration=NULL)
 
- Static Public Member Functions inherited from ContainerFactoryPluginInterface
static create (ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition)
 
- Protected Member Functions inherited from DrupalSqlBase
 getModuleSchemaVersion ($module)
 
 moduleExists ($module)
 
 variableGet ($name, $default)
 
- Protected Member Functions inherited from SqlBase
 setUpDatabase (array $database_info)
 
 select ($table, $alias=NULL, array $options=array())
 
 prepareQuery ()
 
 initializeIterator ()
 
 mapJoinable ()
 
- Protected Member Functions inherited from SourcePluginBase
 initializeIterator ()
 
 getModuleHandler ()
 
 getIterator ()
 
 aboveHighwater (Row $row)
 
 rowChanged (Row $row)
 
 getCache ()
 
- Protected Attributes inherited from DrupalSqlBase
 $systemData
 
 $requirements = TRUE
 
 $entityManager
 
- Protected Attributes inherited from SqlBase
 $query
 
 $database
 
 $state
 
- Protected Attributes inherited from SourcePluginBase
 $moduleHandler
 
 $migration
 
 $highWaterProperty
 
 $currentRow
 
 $currentSourceIds
 
 $originalHighWater
 
 $cacheCounts = FALSE
 
 $cacheKey
 
 $skipCount = FALSE
 
 $trackChanges = FALSE
 
 $mapRowAdded = FALSE
 
 $cache
 
 $idMap
 
 $iterator
 

Detailed Description

Extends the Drupal6SqlBase abstract class.

Member Function Documentation

fields ( )

{Returns available fields on the source.

Returns
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
}

Implements MigrateSourceInterface.

References t().

Here is the call graph for this function:

getIds ( )

{Defines the source fields uniquely identifying a source row.None of these fields should contain a NULL value. If necessary, use prepareRow() or hook_migrate_prepare_row() to rewrite NULL values to appropriate empty values (such as '' or 0).

Returns
array Array keyed by source field name, with values being a schema array describing the field (such as ['type' => 'string]).
}

Implements MigrateSourceInterface.

getModuleSchemaVersionWrapper (   $module)

Wrapper method to test protected method getModuleSchemaVersion().

moduleExistsWrapper (   $module)

Wrapper method to test protected method moduleExists().

query ( )

{}

References Drupal\database().

Here is the call graph for this function:

setDatabase ( Connection  $database)

Tweaks Drupal6SqlBase to set a new database connection for tests.

Parameters
\Drupal\Core\Database\ConnectionThe new connection to use.
See Also

References Drupal\database().

Here is the call graph for this function:

setModuleHandler ( ModuleHandlerInterface  $module_handler)

Tweaks Drupal6SqlBase to set a new module handler for tests.

Parameters
\Drupal\Core\Extension\ModuleHandlerInterfaceThe new module handler to use.
See Also

References Drupal\moduleHandler().

Here is the call graph for this function:

variableGetWrapper (   $name,
  $default 
)

Wrapper method to test protected method variableGet().


The documentation for this class was generated from the following file: