public function writeCoreSetupData($user, $password, $backend = 'SQLite', $properties = array())
    {
        return $this->write(array(
            'MsgType' => 'CoreSetupData',
            'SetupData' => array(
                'AdminUser' => (string)$user,
                'AdminPasswd' => (string)$password,
                'Backend' => (string)$backend,
                'ConnectionProperties' => $properties
            )
        ));
    }
public function writeCoreSetupData($user, $password, $backend = 'SQLite', $properties = array())
    {
        return $this->write(array(
            'MsgType' => 'CoreSetupData',
            'SetupData' => array(
                'AdminUser' => (string)$user,
                'AdminPasswd' => (string)$password,
                'Backend' => (string)$backend,
                'ConnectionProperties' => $properties
            )
        ));
    }
public function writeCoreSetupData ( $ user , $ password , $ backend = 'SQLite' , $ properties = array ( ) ) { return $ this -> write ( array ( 'MsgType' => 'CoreSetupData' , 'SetupData' => array ( 'AdminUser' => ( string ) $ user , 'AdminPasswd' => ( string ) $ password , 'Backend' => ( string ) $ backend , 'ConnectionProperties' => $ properties ) ) ) ; }
send setup data

expect either of CoreSetupAck or CoreSetupReject["Error"] in response

Possible values for the $backend and $properties parameters are reported
as part of the ClientInitAck["StorageBackends"] list of maps.

At the time of writing this, the only supported backends are the default
"SQLite" which requires no additional configuration and the significantly
faster "PostgreSQL" which accepts a map with your database credentials.

@param string $user       admin user name
@param string $password   admin password
@param string $backend    One of the available "DisplayName" values from ClientInitAck["StorageBackends"]
@param array  $properties (optional) map with keys from "SetupKeys" from ClientInitAck["StorageBackends"], where missing keys default to those from the "SetupDefaults"
@return boolean
send setup data