示例#1
0
 /**
  * Create the structure for the files to translate.
  *
  * @param Order $order
  *   The Order to extract the data from.
  *
  * @return array
  *   The structure for the attached files.
  */
 protected function extractInputFilesData(Order $order)
 {
     $files = $order->getFiles();
     $inputFiles = array();
     foreach ($files as $file_name) {
         $inputFiles[] = array('InputFile' => array('FileName' => $file_name, 'FileReference' => 'Input/' . $file_name));
     }
     return $inputFiles;
 }
示例#2
0
 /**
  * Set the reference for the translation.
  *
  * @param string $reference
  *   The client refenece to use in all communication about the request.
  */
 public function setReference($reference)
 {
     $this->order->setReference($reference);
 }