original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Uploads the document to project director for translation
  
  @param
  $document
  PDDocument that requires translation
  @return Document ticket
docstring_tokens: Uploads the document to project director for translation