Basecoat\DB::setServerConfig PHP Method

setServerConfig() public static method

Set Server Connection Parameters The server list can have all the fields listed in $connectDefaults. At a minimum, it should have a lablel
public static setServerConfig ( array $servers, mixed $masterKey = null )
$servers array list of servers to connect to. The array key should be the "id" of the server.
$masterKey mixed the array key in $servers that acts as the Master server
    public static function setServerConfig(array $servers, $masterKey = null)
    {
        self::$servers = $servers;
        if (is_null($masterKey)) {
            $masterKey = 0;
        }
        self::setConnectParamsMaster($servers[$masterKey]);
        if (isset($servers[$masterKey]['label'])) {
            self::$mConnectionLabel = $servers[$masterKey]['label'];
        }
        return 1;
    }