public function init() {
        if (VERBOSE) echo 'INIT:' ,PHP_EOL;
        if (VERBOSE) echo ' CONNECTING API' ,PHP_EOL;
        $this->api->auth();
        if (VERBOSE) echo ' API CONNECTED' ,PHP_EOL;
        if (VERBOSE) echo ' CONNECTING SQL' ,PHP_EOL;
        $this->db->connect();
        if (VERBOSE) echo ' SQL CONNECTED' ,PHP_EOL;
        if (VERBOSE) echo ' CHECKING PATHS' ,PHP_EOL;
        if (DEBUG) echo '  CHECKING TMP DIR AT : '.$this->tmp_dir ,PHP_EOL;
        if (!file_exists($this->tmp_dir)) {
            throw new Exception("Path for 'tmp_dir' not found at '".$this->tmp_dir."'!");
        }
        if (DEBUG) echo '  CHECKING DUMP DIR AT : '.$this->dumps_dir ,PHP_EOL;
        if (!file_exists($this->dumps_dir)) {
            throw new Exception("Path for 'dumps_dir' not found at '".$this->dumps_dir."'!");
        }
        if (VERBOSE) echo ' PATHS FOUND' ,PHP_EOL;
    }
public function init() {
        if (VERBOSE) echo 'INIT:' ,PHP_EOL;
        if (VERBOSE) echo ' CONNECTING API' ,PHP_EOL;
        $this->api->auth();
        if (VERBOSE) echo ' API CONNECTED' ,PHP_EOL;
        if (VERBOSE) echo ' CONNECTING SQL' ,PHP_EOL;
        $this->db->connect();
        if (VERBOSE) echo ' SQL CONNECTED' ,PHP_EOL;
        if (VERBOSE) echo ' CHECKING PATHS' ,PHP_EOL;
        if (DEBUG) echo '  CHECKING TMP DIR AT : '.$this->tmp_dir ,PHP_EOL;
        if (!file_exists($this->tmp_dir)) {
            throw new Exception("Path for 'tmp_dir' not found at '".$this->tmp_dir."'!");
        }
        if (DEBUG) echo '  CHECKING DUMP DIR AT : '.$this->dumps_dir ,PHP_EOL;
        if (!file_exists($this->dumps_dir)) {
            throw new Exception("Path for 'dumps_dir' not found at '".$this->dumps_dir."'!");
        }
        if (VERBOSE) echo ' PATHS FOUND' ,PHP_EOL;
    }
public function init ( ) { if ( VERBOSE ) echo 'INIT:' , PHP_EOL ; if ( VERBOSE ) echo ' CONNECTING API' , PHP_EOL ; $ this -> api -> auth ( ) ; if ( VERBOSE ) echo ' API CONNECTED' , PHP_EOL ; if ( VERBOSE ) echo ' CONNECTING SQL' , PHP_EOL ; $ this -> db -> connect ( ) ; if ( VERBOSE ) echo ' SQL CONNECTED' , PHP_EOL ; if ( VERBOSE ) echo ' CHECKING PATHS' , PHP_EOL ; if ( DEBUG ) echo '  CHECKING TMP DIR AT : ' . $ this -> tmp_dir , PHP_EOL ; if ( ! file_exists ( $ this -> tmp_dir ) ) { throw new Exception ( "Path for 'tmp_dir' not found at '" . $ this -> tmp_dir . "'!" ) ; } if ( DEBUG ) echo '  CHECKING DUMP DIR AT : ' . $ this -> dumps_dir , PHP_EOL ; if ( ! file_exists ( $ this -> dumps_dir ) ) { throw new Exception ( "Path for 'dumps_dir' not found at '" . $ this -> dumps_dir . "'!" ) ; } if ( VERBOSE ) echo ' PATHS FOUND' , PHP_EOL ; }
Connects sql and authenticates with client token to the api

Throws exception on failure to connect either or missing directories
Connects sql and authenticates with client token to the api