$_bindings
$_bindings : array
Array containing a list of bound values to the conditions on this object. Each array entry is another array structure containing the actual bound value, its type and the placeholder it is bound to.
Value binder class manages list of values bound to conditions.
bind(string|integer $param, mixed $value, string|integer $type = 'string') : void
Associates a query placeholder to a value and a type
string|integer | $param | placeholder to be replaced with quoted version of $value |
mixed | $value | The value to be bound |
string|integer | $type | the mapped type name, used for casting when sending to database |
placeholder(string $token) : string
Creates a unique placeholder name if the token provided does not start with ":" otherwise, it will return the same string and internally increment the number of placeholders generated by this object.
string | $token | string from which the placeholder will be derived from, if it starts with a colon, then the same string is returned |
to be used as a placeholder in a query expression
generateManyNamed(array|\Traversable $values, string $type = 'string') : array
Creates unique named placeholders for each of the passed values and binds them with the specified type.
array|\Traversable | $values | The list of values to be bound |
string | $type | The type with which all values will be bound |
with the placeholders to insert in the query
attachTo(\Cake\Database\StatementInterface $statement) : void
Binds all the stored values in this object to the passed statement.
\Cake\Database\StatementInterface | $statement | The statement to add parameters to. |
Loading…