salesforce-8.x-4.x-dev/src/SelectQueryRaw.php

src/SelectQueryRaw.php
<?php

namespace Drupal\salesforce;

/**
 * Class SelectQueryRaw to construct SOQL manually from a string.
 */
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);
  }

}

Главная | Обратная связь

drupal hosting | друпал хостинг | it patrol .inc