Documentation

ZubZetValueBinder extends ValueBinder
in package

This class extends CakePHP`s ValueBinder to change the placeholder format to '?' and to change the bind method to match that of mysqli.

This allows us to use CakePHP`s Query Builder while still executing queries as prepared statements using mysqli, which is much faster than using PDO (which CakePHP uses by default).

Table of Contents

bind()  : void
generateManyNamed()  : array<string|int, mixed>
placeholder()  : string

Methods

bind()

public bind(mixed $param, mixed $value[, mixed $type = null ]) : void
Parameters
$param : mixed
$value : mixed
$type : mixed = null
Return values
void

generateManyNamed()

public generateManyNamed(iteratable<string|int, mixed> $values[, mixed $type = null ]) : array<string|int, mixed>
Parameters
$values : iteratable<string|int, mixed>
$type : mixed = null
Return values
array<string|int, mixed>

placeholder()

public placeholder(string $token) : string
Parameters
$token : string
Return values
string

Search results