You are here

class SelectQueryRaw in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 src/SelectQueryRaw.php \Drupal\salesforce\SelectQueryRaw
  2. 5.0.x src/SelectQueryRaw.php \Drupal\salesforce\SelectQueryRaw

Class SelectQueryRaw to construct SOQL manually from a string.

Hierarchy

Expanded class hierarchy of SelectQueryRaw

1 file declares its use of SelectQueryRaw
SalesforceCommands.php in src/Commands/SalesforceCommands.php

File

src/SelectQueryRaw.php, line 8

Namespace

Drupal\salesforce
View source
class SelectQueryRaw implements SelectQueryInterface {

  /**
   * The query.
   *
   * @var string
   */
  protected $query;

  /**
   * SelectQueryRaw constructor.
   *
   * @param string $query
   *   The SOQL query.
   */
  public function __construct($query) {
    $this->query = $query;
  }

  /**
   * {@inheritdoc}
   */
  public function __toString() {
    return str_replace(' ', '+', $this->query);
  }

}

Members

Namesort descending Modifiers Type Description Overrides
SelectQueryRaw::$query protected property The query.
SelectQueryRaw::__construct public function SelectQueryRaw constructor.
SelectQueryRaw::__toString public function Return the query as a string. Overrides SelectQueryInterface::__toString