@@ -277,10 +277,10 @@ discard block |
||
| 277 | 277 | return $this; |
| 278 | 278 | } |
| 279 | 279 | |
| 280 | - /** |
|
| 281 | - * Get the uploade file array |
|
| 282 | - * @return array |
|
| 283 | - */ |
|
| 280 | + /** |
|
| 281 | + * Get the uploade file array |
|
| 282 | + * @return array |
|
| 283 | + */ |
|
| 284 | 284 | public function getUploadedFileData() { |
| 285 | 285 | return $this->uploadedFileData; |
| 286 | 286 | } |
@@ -320,10 +320,10 @@ discard block |
||
| 320 | 320 | return $this; |
| 321 | 321 | } |
| 322 | 322 | |
| 323 | - /** |
|
| 324 | - * Get the filename |
|
| 325 | - * @return string |
|
| 326 | - */ |
|
| 323 | + /** |
|
| 324 | + * Get the filename |
|
| 325 | + * @return string |
|
| 326 | + */ |
|
| 327 | 327 | public function getFilename() { |
| 328 | 328 | return $this->filename; |
| 329 | 329 | } |
@@ -352,23 +352,23 @@ discard block |
||
| 352 | 352 | return $this; |
| 353 | 353 | } |
| 354 | 354 | |
| 355 | - /** |
|
| 356 | - * Get the max file size |
|
| 357 | - * @return double|int |
|
| 358 | - */ |
|
| 355 | + /** |
|
| 356 | + * Get the max file size |
|
| 357 | + * @return double|int |
|
| 358 | + */ |
|
| 359 | 359 | public function getMaxFileSize() { |
| 360 | 360 | return $this->maxFileSize; |
| 361 | 361 | } |
| 362 | 362 | |
| 363 | - /** |
|
| 364 | - * Append a mime type to allowed mime types |
|
| 365 | - * |
|
| 366 | - * @since 1.0 |
|
| 367 | - * @version 1.0.1 |
|
| 368 | - * @param string $mime |
|
| 369 | - * @return object |
|
| 370 | - * @method boolean setAllowMimeType |
|
| 371 | - */ |
|
| 363 | + /** |
|
| 364 | + * Append a mime type to allowed mime types |
|
| 365 | + * |
|
| 366 | + * @since 1.0 |
|
| 367 | + * @version 1.0.1 |
|
| 368 | + * @param string $mime |
|
| 369 | + * @return object |
|
| 370 | + * @method boolean setAllowMimeType |
|
| 371 | + */ |
|
| 372 | 372 | public function setAllowMimeType($mime) { |
| 373 | 373 | $this->allowedMimeTypes[] = strtolower($mime); |
| 374 | 374 | $this->file['allowed_mime_types'][] = strtolower($mime); |
@@ -485,10 +485,10 @@ discard block |
||
| 485 | 485 | return $this; |
| 486 | 486 | } |
| 487 | 487 | |
| 488 | - /** |
|
| 489 | - * Get the upload function name like "copy", "move_uploaded_file" |
|
| 490 | - * @return string |
|
| 491 | - */ |
|
| 488 | + /** |
|
| 489 | + * Get the upload function name like "copy", "move_uploaded_file" |
|
| 490 | + * @return string |
|
| 491 | + */ |
|
| 492 | 492 | public function getUploadFunction() { |
| 493 | 493 | return $this->uploadFunction; |
| 494 | 494 | } |
@@ -506,10 +506,10 @@ discard block |
||
| 506 | 506 | return $this; |
| 507 | 507 | } |
| 508 | 508 | |
| 509 | - /** |
|
| 510 | - * Get the allow overwriting |
|
| 511 | - * @return boolean |
|
| 512 | - */ |
|
| 509 | + /** |
|
| 510 | + * Get the allow overwriting |
|
| 511 | + * @return boolean |
|
| 512 | + */ |
|
| 513 | 513 | public function isAllowOverwriting() { |
| 514 | 514 | return $this->overwriteFile ; |
| 515 | 515 | } |
@@ -614,14 +614,14 @@ discard block |
||
| 614 | 614 | return $this->error; |
| 615 | 615 | } |
| 616 | 616 | |
| 617 | - /** |
|
| 618 | - * Retrive status of upload |
|
| 619 | - * |
|
| 620 | - * @since 1.0 |
|
| 621 | - * @version 1.0 |
|
| 622 | - * @return boolean |
|
| 623 | - * @method boolean getStatus |
|
| 624 | - */ |
|
| 617 | + /** |
|
| 618 | + * Retrive status of upload |
|
| 619 | + * |
|
| 620 | + * @since 1.0 |
|
| 621 | + * @version 1.0 |
|
| 622 | + * @return boolean |
|
| 623 | + * @method boolean getStatus |
|
| 624 | + */ |
|
| 625 | 625 | public function getStatus() { |
| 626 | 626 | return $this->file['status']; |
| 627 | 627 | } |
@@ -654,11 +654,11 @@ discard block |
||
| 654 | 654 | && is_file($file); |
| 655 | 655 | } |
| 656 | 656 | |
| 657 | - /** |
|
| 658 | - * Set the filename if is empty using the uploaded data information |
|
| 659 | - * |
|
| 660 | - * @return object the current instance |
|
| 661 | - */ |
|
| 657 | + /** |
|
| 658 | + * Set the filename if is empty using the uploaded data information |
|
| 659 | + * |
|
| 660 | + * @return object the current instance |
|
| 661 | + */ |
|
| 662 | 662 | protected function setFilenameUsingUploadedData() { |
| 663 | 663 | // set original filename if not have a new name |
| 664 | 664 | if (empty($this->filename)) { |
@@ -745,12 +745,12 @@ discard block |
||
| 745 | 745 | return true; |
| 746 | 746 | } |
| 747 | 747 | |
| 748 | - /** |
|
| 749 | - * Check the file overwritting |
|
| 750 | - * @since 1.0 |
|
| 751 | - * @version 1.0 |
|
| 752 | - * @return boolean |
|
| 753 | - */ |
|
| 748 | + /** |
|
| 749 | + * Check the file overwritting |
|
| 750 | + * @since 1.0 |
|
| 751 | + * @version 1.0 |
|
| 752 | + * @return boolean |
|
| 753 | + */ |
|
| 754 | 754 | protected function checkFileOverwritting() { |
| 755 | 755 | if ($this->fileExists($this->destinationDirectory . $this->filename)) { |
| 756 | 756 | return $this->overwriteFile; |