Свойство | Тип | Описание | |
---|---|---|---|
$_castedExpressions | string | Whether or not values have been casted to expressions already. | |
$_columns | array | List of columns to ensure are part of the insert. | |
$_query | The Query object to use as a values expression | ||
$_values | array | Array of values to insert. |
Метод | Описание | |
---|---|---|
__construct ( array $columns, Cake\Database\TypeMap $typeMap ) | Constructor | |
add ( array | |
Add a row of data to be inserted. | |
columns ( array | null $cols = null ) : array | $this | Sets the columns to be inserted. If no params are passed, then it returns the currently stored columns | |
query ( |
Sets the query object to be used as the values expression to be evaluated to insert records in the table. If no params are passed, then it returns the currently stored query | |
sql ( |
Convert the values into a SQL string with placeholders. | |
traverse ( callable $visitor ) : void | Traverse the values expression. | |
values ( array | null $values = null ) : array | $this | Sets the values to be inserted. If no params are passed, then it returns the currently stored values |
Метод | Описание | |
---|---|---|
_columnNames ( ) : array | Get the bare column names. | |
_processExpressions ( ) : void | Converts values that need to be casted to expressions |
public __construct ( array $columns, Cake\Database\TypeMap $typeMap ) | ||
$columns | array | The list of columns that are going to be part of the values. |
$typeMap | Cake\Database\TypeMap | A dictionary of column -> type names |
protected _columnNames ( ) : array | ||
Результат | array |
protected _processExpressions ( ) : void | ||
Результат | void |
protected string $_castedExpressions | ||
Результат | string |
protected array $_columns | ||
Результат | array |
protected Query,Cake\Database|null $_query | ||
Результат |