@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * Set a value in the cache if it's not already stored |
| 156 | 156 | * |
| 157 | 157 | * @param string $key |
| 158 | - * @param mixed $value |
|
| 158 | + * @param integer $value |
|
| 159 | 159 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
| 160 | 160 | * @return bool |
| 161 | 161 | * @throws \Exception |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * Set a value in the cache if it's not already stored |
| 156 | 156 | * |
| 157 | 157 | * @param string $key |
| 158 | - * @param mixed $value |
|
| 158 | + * @param integer $value |
|
| 159 | 159 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
| 160 | 160 | * @return bool |
| 161 | 161 | * @throws \Exception |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * Set a value in the cache if it's not already stored |
| 156 | 156 | * |
| 157 | 157 | * @param string $key |
| 158 | - * @param mixed $value |
|
| 158 | + * @param integer $value |
|
| 159 | 159 | * @param int $ttl Time To Live in seconds. Defaults to 60*60*24 |
| 160 | 160 | * @return bool |
| 161 | 161 | * @throws \Exception |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * StorageTimeoutException constructor. |
| 31 | 31 | * |
| 32 | 32 | * @param string $message |
| 33 | - * @param int $code |
|
| 34 | 33 | * @param \Exception $previous |
| 35 | 34 | * @since 9.0.0 |
| 36 | 35 | */ |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * StorageTimeoutException constructor. |
| 31 | 31 | * |
| 32 | 32 | * @param string $message |
| 33 | - * @param int $code |
|
| 34 | 33 | * @param \Exception $previous |
| 35 | 34 | * @since 9.0.0 |
| 36 | 35 | */ |
@@ -30,7 +30,6 @@ |
||
| 30 | 30 | * StorageTimeoutException constructor. |
| 31 | 31 | * |
| 32 | 32 | * @param string $message |
| 33 | - * @param int $code |
|
| 34 | 33 | * @param \Exception $previous |
| 35 | 34 | * @since 9.0.0 |
| 36 | 35 | */ |
@@ -37,7 +37,6 @@ |
||
| 37 | 37 | /** |
| 38 | 38 | * RemoveOldCalendarShares constructor. |
| 39 | 39 | * |
| 40 | - * @param IDBConnection $db |
|
| 41 | 40 | */ |
| 42 | 41 | public function __construct(IDBConnection $connection) { |
| 43 | 42 | $this->connection = $connection; |
@@ -303,6 +303,7 @@ |
||
| 303 | 303 | * get default share folder |
| 304 | 304 | * |
| 305 | 305 | * @param \OC\Files\View |
| 306 | + * @param View $view |
|
| 306 | 307 | * @return string |
| 307 | 308 | */ |
| 308 | 309 | public static function getShareFolder($view = null) { |
@@ -338,6 +338,9 @@ discard block |
||
| 338 | 338 | } |
| 339 | 339 | } |
| 340 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $root |
|
| 343 | + */ |
|
| 341 | 344 | static public function init($user, $root) { |
| 342 | 345 | if (self::$defaultInstance) { |
| 343 | 346 | return false; |
@@ -521,7 +524,7 @@ discard block |
||
| 521 | 524 | /** |
| 522 | 525 | * mount an \OC\Files\Storage\Storage in our virtual filesystem |
| 523 | 526 | * |
| 524 | - * @param \OC\Files\Storage\Storage|string $class |
|
| 527 | + * @param string $class |
|
| 525 | 528 | * @param array $arguments |
| 526 | 529 | * @param string $mountpoint |
| 527 | 530 | */ |
@@ -653,6 +656,9 @@ discard block |
||
| 653 | 656 | return self::$defaultInstance->is_dir($path); |
| 654 | 657 | } |
| 655 | 658 | |
| 659 | + /** |
|
| 660 | + * @param string $path |
|
| 661 | + */ |
|
| 656 | 662 | static public function is_file($path) { |
| 657 | 663 | return self::$defaultInstance->is_file($path); |
| 658 | 664 | } |
@@ -665,6 +671,9 @@ discard block |
||
| 665 | 671 | return self::$defaultInstance->filetype($path); |
| 666 | 672 | } |
| 667 | 673 | |
| 674 | + /** |
|
| 675 | + * @param string $path |
|
| 676 | + */ |
|
| 668 | 677 | static public function filesize($path) { |
| 669 | 678 | return self::$defaultInstance->filesize($path); |
| 670 | 679 | } |
@@ -677,6 +686,9 @@ discard block |
||
| 677 | 686 | return self::$defaultInstance->isCreatable($path); |
| 678 | 687 | } |
| 679 | 688 | |
| 689 | + /** |
|
| 690 | + * @param string $path |
|
| 691 | + */ |
|
| 680 | 692 | static public function isReadable($path) { |
| 681 | 693 | return self::$defaultInstance->isReadable($path); |
| 682 | 694 | } |
@@ -689,6 +701,9 @@ discard block |
||
| 689 | 701 | return self::$defaultInstance->isDeletable($path); |
| 690 | 702 | } |
| 691 | 703 | |
| 704 | + /** |
|
| 705 | + * @param string $path |
|
| 706 | + */ |
|
| 692 | 707 | static public function isSharable($path) { |
| 693 | 708 | return self::$defaultInstance->isSharable($path); |
| 694 | 709 | } |
@@ -706,6 +721,7 @@ discard block |
||
| 706 | 721 | } |
| 707 | 722 | |
| 708 | 723 | /** |
| 724 | + * @param string $path |
|
| 709 | 725 | * @return string |
| 710 | 726 | */ |
| 711 | 727 | static public function file_get_contents($path) { |
@@ -728,6 +744,10 @@ discard block |
||
| 728 | 744 | return self::$defaultInstance->copy($path1, $path2); |
| 729 | 745 | } |
| 730 | 746 | |
| 747 | + /** |
|
| 748 | + * @param string $path |
|
| 749 | + * @param string $mode |
|
| 750 | + */ |
|
| 731 | 751 | static public function fopen($path, $mode) { |
| 732 | 752 | return self::$defaultInstance->fopen($path, $mode); |
| 733 | 753 | } |
@@ -743,6 +763,9 @@ discard block |
||
| 743 | 763 | return self::$defaultInstance->fromTmpFile($tmpFile, $path); |
| 744 | 764 | } |
| 745 | 765 | |
| 766 | + /** |
|
| 767 | + * @param string $path |
|
| 768 | + */ |
|
| 746 | 769 | static public function getMimeType($path) { |
| 747 | 770 | return self::$defaultInstance->getMimeType($path); |
| 748 | 771 | } |
@@ -755,6 +778,9 @@ discard block |
||
| 755 | 778 | return self::$defaultInstance->free_space($path); |
| 756 | 779 | } |
| 757 | 780 | |
| 781 | + /** |
|
| 782 | + * @param string $query |
|
| 783 | + */ |
|
| 758 | 784 | static public function search($query) { |
| 759 | 785 | return self::$defaultInstance->search($query); |
| 760 | 786 | } |
@@ -868,7 +894,7 @@ discard block |
||
| 868 | 894 | * @param string $path |
| 869 | 895 | * @param boolean $includeMountPoints whether to add mountpoint sizes, |
| 870 | 896 | * defaults to true |
| 871 | - * @return \OC\Files\FileInfo|bool False if file does not exist |
|
| 897 | + * @return \OCP\Files\FileInfo|null False if file does not exist |
|
| 872 | 898 | */ |
| 873 | 899 | public static function getFileInfo($path, $includeMountPoints = true) { |
| 874 | 900 | return self::$defaultInstance->getFileInfo($path, $includeMountPoints); |