From 0c8f30b3c4dd0ab1357f2845418576536600f25e Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sun, 16 Oct 2011 22:01:10 +0000 Subject: [PATCH] Few bits of documentation --- includes/upload/UploadFromStash.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/upload/UploadFromStash.php b/includes/upload/UploadFromStash.php index 8392270f3c..d67cebd299 100644 --- a/includes/upload/UploadFromStash.php +++ b/includes/upload/UploadFromStash.php @@ -134,6 +134,7 @@ class UploadFromStash extends UploadBase { /** * This should return the key instead of the UploadStashFile instance, for backward compatibility. + * @return String */ public function stashSession() { return $this->stashFile()->getFileKey(); @@ -164,9 +165,12 @@ class UploadFromStash extends UploadBase { /** * Append a chunk to the temporary file. * + * @param $chunk + * @param $chunkSize + * @param $offset * @return Status */ - public function appendChunk($chunk, $chunkSize, $offset) { + public function appendChunk( $chunk, $chunkSize, $offset ) { //to use $this->getFileSize() here, db needs to be updated //in appendToUploadFile for that $fileSize = $this->stash->getFile( $this->mFileKey )->getSize(); -- 2.20.1