WireDatabaseBackup::setDatabaseConfig() method

Set the database configuration information

Usage

$backup->setDatabaseConfig($config);

Arguments

NameType(s)Description
configarray, Config, object

Containing these properties:

  • dbUser
  • dbHost
  • dbPort
  • dbName
  • dbPass
  • dbPath (optional)
  • dbCharset (optional)

Return value

$this

Object instance it was called from (method supports fluent interface).

Exceptions

Method can throw exceptions on error:

  • \Exception - if missing required config settings


$backup methods and properties

API reference based on ProcessWire core version 3.0.244

“To Drupal, or to ProcessWire? The million dollar choice. We decided to make an early switch to PW. And in retrospect, ProcessWire was probably the best decision we made. Thanks are due to ProcessWire and the amazing system and set of modules that are in place.” —Unni Krishnan, Founder of PigtailPundits