private function isNorthstar($northstarConfig, $curlUrl)
  {

    // Confirm each of the required config settings are available
    if (empty($northstarConfig['host'])) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }
    if (empty($northstarConfig['id'])) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }
    if (empty($northstarConfig['key'])) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }

    // Validate cURL as being for Northstar
    if (strpos($curlUrl, $northstarConfig['host']) === false) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }

    $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar true', 1);
    return true;
  }
private function isNorthstar($northstarConfig, $curlUrl)
  {

    // Confirm each of the required config settings are available
    if (empty($northstarConfig['host'])) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }
    if (empty($northstarConfig['id'])) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }
    if (empty($northstarConfig['key'])) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }

    // Validate cURL as being for Northstar
    if (strpos($curlUrl, $northstarConfig['host']) === false) {
      $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar false', 1);
      return false;
    }

    $this->statHat->ezCount('MB_Toolbox: MB_Toolbox_cURL: isNorthstar true', 1);
    return true;
  }
private function isNorthstar ( $ northstarConfig , $ curlUrl ) { // Confirm each of the required config settings are available if ( empty ( $ northstarConfig [ 'host' ] ) ) { $ this -> statHat -> ezCount ( 'MB_Toolbox: MB_Toolbox_cURL: isNorthstar false' , 1 ) ; return false ; } if ( empty ( $ northstarConfig [ 'id' ] ) ) { $ this -> statHat -> ezCount ( 'MB_Toolbox: MB_Toolbox_cURL: isNorthstar false' , 1 ) ; return false ; } if ( empty ( $ northstarConfig [ 'key' ] ) ) { $ this -> statHat -> ezCount ( 'MB_Toolbox: MB_Toolbox_cURL: isNorthstar false' , 1 ) ; return false ; } // Validate cURL as being for Northstar if ( strpos ( $ curlUrl , $ northstarConfig [ 'host' ] ) === false ) { $ this -> statHat -> ezCount ( 'MB_Toolbox: MB_Toolbox_cURL: isNorthstar false' , 1 ) ; return false ; } $ this -> statHat -> ezCount ( 'MB_Toolbox: MB_Toolbox_cURL: isNorthstar true' , 1 ) ; return true ; }
Test if the Northstar configuration settings are valid and the cURL is for Northstar.

@param array  $northstarConfig
Configuration settings for connecting to Northstar API
@param string $curlUrl
A cURL path.

@return boolean
Test if the Northstar configuration settings are valid and the cURL is for Northstar .