コード例 #1
0
 /**
  * Create an array that describes an uploaded file which can
  * be used in a JSON response.
  * @param SubmissionFile $uploadedFile
  * @return array
  */
 function _getUploadedFileInfo($uploadedFile)
 {
     return array('uploadedFile' => array('fileId' => $uploadedFile->getFileId(), 'revision' => $uploadedFile->getRevision(), 'name' => $uploadedFile->getLocalizedName(), 'fileLabel' => $uploadedFile->getFileLabel(), 'type' => $uploadedFile->getDocumentType(), 'genreId' => $uploadedFile->getGenreId()));
 }
コード例 #2
0
 /**
  * Create an array that describes an uploaded file which can
  * be used in a JSON response.
  * @param SubmissionFile $uploadedFile
  * @return array
  */
 function _getUploadedFileInfo($uploadedFile)
 {
     return array('uploadedFile' => array('fileId' => $uploadedFile->getFileId(), 'revision' => $uploadedFile->getRevision()));
 }