X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fupload%2FUploadFromChunks.php;h=14993023dfa720894a022a69a60a127522fe0251;hb=de79f9af57f3e72d30a88e26311907daa55893b7;hp=6f90280108991352aa447e9af56893d9d508626c;hpb=166191535f486569277e95b7e6a3850b5db6757d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/upload/UploadFromChunks.php b/includes/upload/UploadFromChunks.php index 6f90280108..14993023df 100644 --- a/includes/upload/UploadFromChunks.php +++ b/includes/upload/UploadFromChunks.php @@ -32,6 +32,8 @@ class UploadFromChunks extends UploadFromFile { protected $mChunkIndex; protected $mFileKey; protected $mVirtualTempPath; + /** @var LocalRepo */ + private $repo; /** * Setup local pointers to stash, repo and user (similar to UploadFromStash) @@ -60,15 +62,13 @@ class UploadFromChunks extends UploadFromFile { } $this->stash = new UploadStash( $this->repo, $this->user ); } - - return true; } /** * Calls the parent stashFile and updates the uploadsession table to handle "chunks" * * @param User|null $user - * @return UploadStashFile stashed file + * @return UploadStashFile Stashed file */ public function stashFile( User $user = null ) { // Stash file is the called on creating a new chunk session: @@ -201,9 +201,9 @@ class UploadFromChunks extends UploadFromFile { /** * Add a chunk to the temporary directory * - * @param string $chunkPath path to temporary chunk file - * @param int $chunkSize size of the current chunk - * @param int $offset offset of current chunk ( mutch match database chunk offset ) + * @param string $chunkPath Path to temporary chunk file + * @param int $chunkSize Size of the current chunk + * @param int $offset Offset of current chunk ( mutch match database chunk offset ) * @return Status */ public function addChunk( $chunkPath, $chunkSize, $offset ) {