Свойство | Тип | Описание | |
---|---|---|---|
$actions | Actions to be executed in this bulk command, given as either an array of arrays or as one newline-delimited string. All actions except delete span two lines. | ||
$db | |||
$index | Default index to execute the queries on. Defaults to null meaning that index needs to be specified in every action. | ||
$options | Options to be appended to the query URL. | ||
$type | Default type to execute the queries on. Defaults to null meaning that type needs to be specified in every action. |
Метод | Описание | |
---|---|---|
addAction ( $line1, $line2 = null ) | Adds an action to the command. Will overwrite existing actions if they are specified as a string. | |
addDeleteAction ( string $id, string $index = null, string $type = null ) | Adds a delete action to the command. | |
execute ( ) : mixed | Executes the bulk command. |
public addAction ( $line1, $line2 = null ) |
public addDeleteAction ( string $id, string $index = null, string $type = null ) | ||
$id | string | Document ID |
$index | string | Index that the document belogs to. Can be set to null if the command has a default index ([[BulkCommand::$index]]) assigned. |
$type | string | Type that the document belogs to. Can be set to null if the command has a default type ([[BulkCommand::$type]]) assigned. |
public $actions |
public $index |