function uploadTranslatable($document) {
		if (! isset ( $this->submission ) || ! isset ( $this->submission->ticket )) {
			throw new Exception ( "Submission not initialized." );
		}
		$this->_validateDocument ( $document );
		
		$documentInfo = $document->getDocumentInfo ( $this->submission );
		$resourceInfo = $document->getResourceInfo ();
		
		$submitDocumentWithBinaryResourceRequest = new submitDocumentWithBinaryResource ();
		
		$submitDocumentWithBinaryResourceRequest->documentInfo = $documentInfo;
		$submitDocumentWithBinaryResourceRequest->resourceInfo = $resourceInfo;
		$submitDocumentWithBinaryResourceRequest->data = $document->data;
		
		$documentTicket = $this->documentService->submitDocumentWithBinaryResource ( $submitDocumentWithBinaryResourceRequest )->return;
		if (isset ( $documentTicket )) {
			$this->submission->ticket = $documentTicket->submissionTicket;
		}
		
		return $documentTicket->ticketId;
	}
function uploadTranslatable($document) {
		if (! isset ( $this->submission ) || ! isset ( $this->submission->ticket )) {
			throw new Exception ( "Submission not initialized." );
		}
		$this->_validateDocument ( $document );
		
		$documentInfo = $document->getDocumentInfo ( $this->submission );
		$resourceInfo = $document->getResourceInfo ();
		
		$submitDocumentWithBinaryResourceRequest = new submitDocumentWithBinaryResource ();
		
		$submitDocumentWithBinaryResourceRequest->documentInfo = $documentInfo;
		$submitDocumentWithBinaryResourceRequest->resourceInfo = $resourceInfo;
		$submitDocumentWithBinaryResourceRequest->data = $document->data;
		
		$documentTicket = $this->documentService->submitDocumentWithBinaryResource ( $submitDocumentWithBinaryResourceRequest )->return;
		if (isset ( $documentTicket )) {
			$this->submission->ticket = $documentTicket->submissionTicket;
		}
		
		return $documentTicket->ticketId;
	}
function uploadTranslatable ( $ document ) { if ( ! isset ( $ this -> submission ) || ! isset ( $ this -> submission -> ticket ) ) { throw new Exception ( "Submission not initialized." ) ; } $ this -> _validateDocument ( $ document ) ; $ documentInfo = $ document -> getDocumentInfo ( $ this -> submission ) ; $ resourceInfo = $ document -> getResourceInfo ( ) ; $ submitDocumentWithBinaryResourceRequest = new submitDocumentWithBinaryResource ( ) ; $ submitDocumentWithBinaryResourceRequest -> documentInfo = $ documentInfo ; $ submitDocumentWithBinaryResourceRequest -> resourceInfo = $ resourceInfo ; $ submitDocumentWithBinaryResourceRequest -> data = $ document -> data ; $ documentTicket = $ this -> documentService -> submitDocumentWithBinaryResource ( $ submitDocumentWithBinaryResourceRequest ) -> return ; if ( isset ( $ documentTicket ) ) { $ this -> submission -> ticket = $ documentTicket -> submissionTicket ; } return $ documentTicket -> ticketId ; }
Uploads the document to project director for translation

@param
$document
PDDocument that requires translation
@return Document ticket
Uploads the document to project director for translation