示例#1
0
 /**
  * Gets the dialog window to be displayed before a record can be sent to a specific stage.
  *
  * @param int $nextStageId
  * @param array|\stdClass[] $elements
  * @return array
  */
 public function sendToSpecificStageWindow($nextStageId, array $elements)
 {
     foreach ($elements as $element) {
         $this->stageService->getRecordService()->add($element->table, $element->uid);
     }
     $result = $this->getSentToStageWindow($nextStageId);
     $result['affects'] = array('nextStage' => $nextStageId);
     return $result;
 }