You are here

public function Salesforce::queryAll in Salesforce Suite 7.3

Same as ::query() but also returns deleted or archived records.

Parameters

SalesforceSelectQuery $query: The constructed SOQL query.

Return value

array Array of Salesforce objects that match the query.

File

includes/salesforce.inc, line 547
Objects, properties, and methods to communicate with the Salesforce REST API

Class

Salesforce
Ability to authorize and communicate with the Salesforce REST API.

Code

public function queryAll(SalesforceSelectQuery $query) {
  drupal_alter('salesforce_query', $query);

  // Casting $query as a string calls SalesforceSelectQuery::__toString().
  $result = $this
    ->apiCall('queryAll?q=' . (string) $query);
  return $result;
}