Copy bind values from this query to another given DatabaseQuery or \PDOStatement
This is a more readable interface to the getBindValues() method and does the same thing as passing a DatabaseQuery or PDOStatement to the getBindValues() method.
Available since version 3.0.157.
Usage
// basic usage
$int = $databaseQuery->copyBindValuesTo($query);
// usage with all arguments
$int = $databaseQuery->copyBindValuesTo($query, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
query | DatabaseQuery, \PDOStatement | |
options (optional) | array | Additional options
|
Return value
int
Number of bind values that were copied
DatabaseQuery methods and properties
API reference based on ProcessWire core version 3.0.236