Lines Matching refs:action
50 foreach ($this->getActions() as $action) {
51 $data .= (string) $action;
100 public function addAction(Action $action): self
102 $this->_actions[] = $action;
114 foreach ($actions as $action) {
115 $this->addAction($action);
134 $action = AbstractDocumentAction::create($document, $opType);
136 return $this->addAction($action);
158 $action = AbstractDocumentAction::create($script, $opType);
160 return $this->addAction($action);
214 // add previous action
215 if (isset($action)) {
216 $this->addAction($action);
218 $action = new Action($opType, $metadata);
219 } elseif (isset($action)) {
220 $action->setSource($row);
221 $this->addAction($action);
222 $action = null;
224 throw new InvalidException('Invalid bulk data, source must follow action metadata');
231 // add last action if available
232 if (isset($action)) {
233 $this->addAction($action);
280 foreach ($this->getActions() as $action) {
281 foreach ($action->toArray() as $row) {
322 throw new InvalidException('No response found for action #'.$key);
325 $action = $actions[$key];
330 if ($action instanceof AbstractDocumentAction) {
331 $data = $action->getData();
342 $bulkResponses[] = new BulkResponse($bulkResponseData, $action, $opType);