Function Hook_import_mybb->probe_db_access

Definitions

sources/hooks/modules/admin_import/mybb.php

  • Probe a file path for DB access details.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: array

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$file_base string No No required parameter N/A N/A The probe path

Returns

  • A quartet of the details (db_name, db_user, db_pass, table_prefix)
  • Type: array
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Probe a file path for DB access details.
 *
 * @param  string $file_base The probe path
 * @return array A quartet of the details (db_name, db_user, db_pass, table_prefix)
 */

public function probe_db_access(string $file_base) : array