class SelectQueryRaw in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 src/SelectQueryRaw.php \Drupal\salesforce\SelectQueryRaw
- 5.0.x src/SelectQueryRaw.php \Drupal\salesforce\SelectQueryRaw
Class SelectQueryRaw to construct SOQL manually from a string.
Hierarchy
- class \Drupal\salesforce\SelectQueryRaw implements SelectQueryInterface
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\salesforceView 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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
SelectQueryRaw:: |
protected | property | The query. | |
SelectQueryRaw:: |
public | function | SelectQueryRaw constructor. | |
SelectQueryRaw:: |
public | function |
Return the query as a string. Overrides SelectQueryInterface:: |