Function Hook_import_cms_merge->pre_import_tests

Definitions

sources/hooks/modules/admin_import/cms_merge.php

  • Do some tests, to make sure we're happy to continue importing.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: object

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$db object No No required parameter N/A N/A The database connector to import from
$table_prefix string No No required parameter N/A N/A The table prefix the target prefix is using
$file_base PATH No No required parameter N/A N/A The base directory we are importing from

Returns

  • Error/warning UI (null: no error/warning)
  • Type: ?Tempcode
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Do some tests, to make sure we're happy to continue importing.
 *
 * @param  object $db The database connector to import from
 * @param  string $table_prefix The table prefix the target prefix is using
 * @param  PATH $file_base The base directory we are importing from
 * @return ?Tempcode Error/warning UI (null: no error/warning)
 */

public function pre_import_tests(object $db, string $table_prefix, string $file_base) : ?object