Get or set a bind option
Available since version 3.0.157.
Usage
// basic usage
$string = $databaseQuery->bindOption($optionName);
// usage with all arguments
$string = $databaseQuery->bindOption($optionName, $optionValue = null);
Arguments
Name | Type(s) | Description |
---|---|---|
optionName | string, bool | One of 'prefix' or 'global', boolean true to get/set all |
optionValue (optional) | null, int, string, array | Omit when getting, Specify option value to set, or array when setting all |
Return value
string
int
array
DatabaseQuery methods and properties
API reference based on ProcessWire core version 3.0.236