'phid', ); } protected function defineReturnType() { return 'list'; } protected function execute(ConduitAPIRequest $request) { $viewer = $request->getUser(); $file_phid = $request->getValue('filePHID'); $file = $this->loadFileByPHID($viewer, $file_phid); $chunks = $this->loadFileChunks($viewer, $file); $results = array(); foreach ($chunks as $chunk) { $results[] = array( 'byteStart' => $chunk->getByteStart(), 'byteEnd' => $chunk->getByteEnd(), 'complete' => (bool)$chunk->getDataFilePHID(), ); } return $results; } }