Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: Dashboard API > Methods and objects of the dashboard API > Usable methods

Access external databases (getDBConnection)

Scroll Prev Top Next More

This function allows you to access external databases.

As name please enter the name of a previously created external database connections.

Parameter

Type

Description

$connectionName

string

Name of the global database connection

This function returns an object of the JobDB type, which can then be used to query the external database using various SQL statements.

In case of an error a JobRouterException is thrown.

Example:

$jobDB = $this->getDBConnection('DOCUWARE');