Method | Description | |
---|---|---|
__construct ( string | array $fields, array | Cake\Database\ExpressionInterface $values, array $types = [], string $conjunction = '=' ) | Constructor | |
isMulti ( ) : boolean | Determines if each of the values in this expressions is a tuple in itself | |
sql ( |
Convert the expression into a SQL fragment. | |
traverse ( callable $callable ) : void | Traverses the tree of expressions stored in this object, visiting first expressions in the left hand side and then the rest. |
Method | Description | |
---|---|---|
_bindValue ( |
Registers a value in the placeholder generator and returns the generated placeholder | |
_stringifyValues ( |
Returns a string with the values as placeholders in a string to be used for the SQL version of this expression | |
_traverseValue ( mixed $value, callable $callable ) : void | Conditionally executes the callback for the passed value if it is an ExpressionInterface |
public __construct ( string | array $fields, array | Cake\Database\ExpressionInterface $values, array $types = [], string $conjunction = '=' ) | ||
$fields | string | array | the fields to use to form a tuple |
$values | array | Cake\Database\ExpressionInterface | the values to use to form a tuple |
$types | array | the types names to use for casting each of the values, only one type per position in the value array in needed |
$conjunction | string | the operator used for comparing field and value |
protected _stringifyValues ( |
||
$generator | The value binder to convert expressions with. | |
return | string |