@@ -141,8 +141,7 @@ discard block |
||
| 141 | 141 | * |
| 142 | 142 | * @param string $url url to request. |
| 143 | 143 | * @param array $options HTTP request options. Keys: query, data, referer. |
| 144 | - * @param boolean $parseJson Whether to parse response in json format. |
|
| 145 | - * @return cURL handle. |
|
| 144 | + * @return resource handle. |
|
| 146 | 145 | */ |
| 147 | 146 | protected function initRequest($url, $options = array()) { |
| 148 | 147 | $ch = parent::initRequest($url, $options); |
@@ -156,7 +155,7 @@ discard block |
||
| 156 | 155 | * @param string $url url to request. |
| 157 | 156 | * @param array $options HTTP request options. Keys: query, data, referer. |
| 158 | 157 | * @param boolean $parseJson Whether to parse response in json format. |
| 159 | - * @return string the response. |
|
| 158 | + * @return stdClass the response. |
|
| 160 | 159 | * @see makeRequest |
| 161 | 160 | */ |
| 162 | 161 | public function makeSignedRequest($url, $options = array(), $parseJson = true) { |
@@ -31,6 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Constructor |
| 33 | 33 | * |
| 34 | + * @param elFinder $elFinder |
|
| 34 | 35 | * @return void |
| 35 | 36 | * @author Dmitry (dio) Levashov |
| 36 | 37 | **/ |
@@ -1000,7 +1000,6 @@ discard block |
||
| 1000 | 1000 | * Return file info or false on error |
| 1001 | 1001 | * |
| 1002 | 1002 | * @param string $hash file hash |
| 1003 | - * @param bool $realpath add realpath field to file info |
|
| 1004 | 1003 | * @return array|false |
| 1005 | 1004 | * @author Dmitry (dio) Levashov |
| 1006 | 1005 | **/ |
@@ -1022,7 +1021,6 @@ discard block |
||
| 1022 | 1021 | * Return folder info |
| 1023 | 1022 | * |
| 1024 | 1023 | * @param string $hash folder hash |
| 1025 | - * @param bool $hidden return hidden file info |
|
| 1026 | 1024 | * @return array|false |
| 1027 | 1025 | * @author Dmitry (dio) Levashov |
| 1028 | 1026 | **/ |
@@ -1349,7 +1347,6 @@ discard block |
||
| 1349 | 1347 | * |
| 1350 | 1348 | * @param Resource $fp file pointer |
| 1351 | 1349 | * @param string $dst destination folder hash |
| 1352 | - * @param string $src file name |
|
| 1353 | 1350 | * @param string $tmpname file tmp name - required to detect mime type |
| 1354 | 1351 | * @return array|false |
| 1355 | 1352 | * @author Dmitry (dio) Levashov |
@@ -1443,7 +1440,6 @@ discard block |
||
| 1443 | 1440 | * Paste files |
| 1444 | 1441 | * |
| 1445 | 1442 | * @param Object $volume source volume |
| 1446 | - * @param string $source file hash |
|
| 1447 | 1443 | * @param string $dst destination dir hash |
| 1448 | 1444 | * @param bool $rmSrc remove source after copy? |
| 1449 | 1445 | * @return array|false |
@@ -1543,7 +1539,7 @@ discard block |
||
| 1543 | 1539 | * Return file contents |
| 1544 | 1540 | * |
| 1545 | 1541 | * @param string $hash file hash |
| 1546 | - * @return string|false |
|
| 1542 | + * @return boolean|string |
|
| 1547 | 1543 | * @author Dmitry (dio) Levashov |
| 1548 | 1544 | **/ |
| 1549 | 1545 | public function getContents($hash) { |
@@ -1765,7 +1761,7 @@ discard block |
||
| 1765 | 1761 | * Return image dimensions |
| 1766 | 1762 | * |
| 1767 | 1763 | * @param string $hash file hash |
| 1768 | - * @return array |
|
| 1764 | + * @return false|string |
|
| 1769 | 1765 | * @author Dmitry (dio) Levashov |
| 1770 | 1766 | **/ |
| 1771 | 1767 | public function dimensions($hash) { |
@@ -1861,7 +1857,8 @@ discard block |
||
| 1861 | 1857 | * Not implemented |
| 1862 | 1858 | * |
| 1863 | 1859 | * @param string path |
| 1864 | - * @return mixed |
|
| 1860 | + * @param string $path |
|
| 1861 | + * @return string |
|
| 1865 | 1862 | * @author Dmitry (dio) Levashov |
| 1866 | 1863 | **/ |
| 1867 | 1864 | protected function crypt($path) { |
@@ -1873,7 +1870,8 @@ discard block |
||
| 1873 | 1870 | * Not implemented |
| 1874 | 1871 | * |
| 1875 | 1872 | * @param mixed hash |
| 1876 | - * @return mixed |
|
| 1873 | + * @param string $hash |
|
| 1874 | + * @return string |
|
| 1877 | 1875 | * @author Dmitry (dio) Levashov |
| 1878 | 1876 | **/ |
| 1879 | 1877 | protected function uncrypt($hash) { |
@@ -1902,7 +1900,6 @@ discard block |
||
| 1902 | 1900 | /** |
| 1903 | 1901 | * Return new unique name based on file name and suffix |
| 1904 | 1902 | * |
| 1905 | - * @param string $path file path |
|
| 1906 | 1903 | * @param string $suffix suffix append to name |
| 1907 | 1904 | * @return string |
| 1908 | 1905 | * @author Dmitry (dio) Levashov |
@@ -2418,7 +2415,7 @@ discard block |
||
| 2418 | 2415 | * @param string $src source path |
| 2419 | 2416 | * @param string $dst destination dir path |
| 2420 | 2417 | * @param string $name new file name (optionaly) |
| 2421 | - * @return string|false |
|
| 2418 | + * @return string|boolean |
|
| 2422 | 2419 | * @author Dmitry (dio) Levashov |
| 2423 | 2420 | **/ |
| 2424 | 2421 | protected function copy($src, $dst, $name) { |
@@ -2468,7 +2465,7 @@ discard block |
||
| 2468 | 2465 | * @param string $src source path |
| 2469 | 2466 | * @param string $dst destination dir path |
| 2470 | 2467 | * @param string $name new file name |
| 2471 | - * @return string|false |
|
| 2468 | + * @return string|boolean |
|
| 2472 | 2469 | * @author Dmitry (dio) Levashov |
| 2473 | 2470 | **/ |
| 2474 | 2471 | protected function move($src, $dst, $name) { |
@@ -2494,7 +2491,7 @@ discard block |
||
| 2494 | 2491 | * @param string $src source file hash |
| 2495 | 2492 | * @param string $destination destination dir path |
| 2496 | 2493 | * @param string $name file name |
| 2497 | - * @return string|false |
|
| 2494 | + * @return boolean|string |
|
| 2498 | 2495 | * @author Dmitry (dio) Levashov |
| 2499 | 2496 | **/ |
| 2500 | 2497 | protected function copyFrom($volume, $src, $destination, $name) { |
@@ -2634,7 +2631,7 @@ discard block |
||
| 2634 | 2631 | * |
| 2635 | 2632 | * @param string $path thumnbnail path |
| 2636 | 2633 | * @param array $stat file stat |
| 2637 | - * @return string|bool |
|
| 2634 | + * @return boolean |
|
| 2638 | 2635 | * @author Dmitry (dio) Levashov |
| 2639 | 2636 | **/ |
| 2640 | 2637 | protected function canCreateTmb($path, $stat) { |
@@ -2651,7 +2648,7 @@ discard block |
||
| 2651 | 2648 | * |
| 2652 | 2649 | * @param string $path thumnbnail path |
| 2653 | 2650 | * @param array $stat file stat |
| 2654 | - * @return string|bool |
|
| 2651 | + * @return boolean |
|
| 2655 | 2652 | * @author Dmitry (dio) Levashov |
| 2656 | 2653 | **/ |
| 2657 | 2654 | protected function canResize($path, $stat) { |
@@ -2662,7 +2659,6 @@ discard block |
||
| 2662 | 2659 | * Create thumnbnail and return it's URL on success |
| 2663 | 2660 | * |
| 2664 | 2661 | * @param string $path file path |
| 2665 | - * @param string $mime file mime type |
|
| 2666 | 2662 | * @return string|false |
| 2667 | 2663 | * @author Dmitry (dio) Levashov |
| 2668 | 2664 | **/ |
@@ -3024,7 +3020,7 @@ discard block |
||
| 3024 | 3020 | * |
| 3025 | 3021 | * @param string $command command line |
| 3026 | 3022 | * @param array $output stdout strings |
| 3027 | - * @param array $return_var process exit code |
|
| 3023 | + * @param integer $return_var process exit code |
|
| 3028 | 3024 | * @param array $error_output stderr strings |
| 3029 | 3025 | * @return int exit code |
| 3030 | 3026 | * @author Alexey Sukhotin |
@@ -3174,7 +3170,7 @@ discard block |
||
| 3174 | 3170 | * @param string $haystack The string being checked. |
| 3175 | 3171 | * @param string $needle The string to find in haystack. |
| 3176 | 3172 | * @param int $offset The search offset. If it is not specified, 0 is used. |
| 3177 | - * @return int|bool |
|
| 3173 | + * @return integer |
|
| 3178 | 3174 | * @author Alexey Sukhotin |
| 3179 | 3175 | **/ |
| 3180 | 3176 | protected function stripos($haystack , $needle , $offset = 0) { |
@@ -3462,7 +3458,6 @@ discard block |
||
| 3462 | 3458 | * Open file and return file pointer |
| 3463 | 3459 | * |
| 3464 | 3460 | * @param string $path file path |
| 3465 | - * @param bool $write open file for writing |
|
| 3466 | 3461 | * @return resource|false |
| 3467 | 3462 | * @author Dmitry (dio) Levashov |
| 3468 | 3463 | **/ |
@@ -3515,7 +3510,7 @@ discard block |
||
| 3515 | 3510 | * Copy file into another file (only inside one volume) |
| 3516 | 3511 | * |
| 3517 | 3512 | * @param string $source source file path |
| 3518 | - * @param string $target target dir path |
|
| 3513 | + * @param string $targetDir target dir path |
|
| 3519 | 3514 | * @param string $name file name |
| 3520 | 3515 | * @return bool |
| 3521 | 3516 | * @author Dmitry (dio) Levashov |
@@ -3527,7 +3522,7 @@ discard block |
||
| 3527 | 3522 | * Return new file path or false. |
| 3528 | 3523 | * |
| 3529 | 3524 | * @param string $source source file path |
| 3530 | - * @param string $target target dir path |
|
| 3525 | + * @param string $targetDir target dir path |
|
| 3531 | 3526 | * @param string $name file name |
| 3532 | 3527 | * @return string|bool |
| 3533 | 3528 | * @author Dmitry (dio) Levashov |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | * Return ftp transfer mode for file |
| 356 | 356 | * |
| 357 | 357 | * @param string $path file path |
| 358 | - * @return string |
|
| 358 | + * @return integer |
|
| 359 | 359 | * @author Dmitry (dio) Levashov |
| 360 | 360 | **/ |
| 361 | 361 | protected function ftpMode($path) { |
@@ -513,7 +513,7 @@ discard block |
||
| 513 | 513 | * If file does not exists - returns empty array or false. |
| 514 | 514 | * |
| 515 | 515 | * @param string $path file path |
| 516 | - * @return array|false |
|
| 516 | + * @return string |
|
| 517 | 517 | * @author Dmitry (dio) Levashov |
| 518 | 518 | **/ |
| 519 | 519 | protected function _stat($path) { |
@@ -651,7 +651,7 @@ discard block |
||
| 651 | 651 | * |
| 652 | 652 | * @param string $path file path |
| 653 | 653 | * @param string $mime file mime type |
| 654 | - * @return string |
|
| 654 | + * @return boolean |
|
| 655 | 655 | * @author Dmitry (dio) Levashov |
| 656 | 656 | **/ |
| 657 | 657 | protected function _dimensions($path, $mime) { |
@@ -684,7 +684,6 @@ discard block |
||
| 684 | 684 | * Open file and return file pointer |
| 685 | 685 | * |
| 686 | 686 | * @param string $path file path |
| 687 | - * @param bool $write open file for writing |
|
| 688 | 687 | * @return resource|false |
| 689 | 688 | * @author Dmitry (dio) Levashov |
| 690 | 689 | **/ |
@@ -705,7 +704,7 @@ discard block |
||
| 705 | 704 | * Close opened file |
| 706 | 705 | * |
| 707 | 706 | * @param resource $fp file pointer |
| 708 | - * @return bool |
|
| 707 | + * @return boolean|null |
|
| 709 | 708 | * @author Dmitry (dio) Levashov |
| 710 | 709 | **/ |
| 711 | 710 | protected function _fclose($fp, $path='') { |
@@ -722,7 +721,7 @@ discard block |
||
| 722 | 721 | * |
| 723 | 722 | * @param string $path parent dir path |
| 724 | 723 | * @param string $name new directory name |
| 725 | - * @return string|bool |
|
| 724 | + * @return false|string |
|
| 726 | 725 | * @author Dmitry (dio) Levashov |
| 727 | 726 | **/ |
| 728 | 727 | protected function _mkdir($path, $name) { |
@@ -740,7 +739,7 @@ discard block |
||
| 740 | 739 | * |
| 741 | 740 | * @param string $path parent dir path |
| 742 | 741 | * @param string $name new file name |
| 743 | - * @return string|bool |
|
| 742 | + * @return string|false |
|
| 744 | 743 | * @author Dmitry (dio) Levashov |
| 745 | 744 | **/ |
| 746 | 745 | protected function _mkfile($path, $name) { |
@@ -772,7 +771,7 @@ discard block |
||
| 772 | 771 | * @param string $source source file path |
| 773 | 772 | * @param string $targetDir target directory path |
| 774 | 773 | * @param string $name new file name |
| 775 | - * @return bool |
|
| 774 | + * @return string|false |
|
| 776 | 775 | * @author Dmitry (dio) Levashov |
| 777 | 776 | **/ |
| 778 | 777 | protected function _copy($source, $targetDir, $name) { |
@@ -797,9 +796,9 @@ discard block |
||
| 797 | 796 | * Return new file path or false. |
| 798 | 797 | * |
| 799 | 798 | * @param string $source source file path |
| 800 | - * @param string $target target dir path |
|
| 799 | + * @param string $targetDir target dir path |
|
| 801 | 800 | * @param string $name file name |
| 802 | - * @return string|bool |
|
| 801 | + * @return string|false |
|
| 803 | 802 | * @author Dmitry (dio) Levashov |
| 804 | 803 | **/ |
| 805 | 804 | protected function _move($source, $targetDir, $name) { |
@@ -837,7 +836,7 @@ discard block |
||
| 837 | 836 | * @param string $dir target dir path |
| 838 | 837 | * @param string $name file name |
| 839 | 838 | * @param array $stat file stat (required by some virtual fs) |
| 840 | - * @return bool|string |
|
| 839 | + * @return string|false |
|
| 841 | 840 | * @author Dmitry (dio) Levashov |
| 842 | 841 | **/ |
| 843 | 842 | protected function _save($fp, $dir, $name, $stat) { |
@@ -955,7 +954,7 @@ discard block |
||
| 955 | 954 | * |
| 956 | 955 | * @param string $path archive path |
| 957 | 956 | * @param array $arc archiver command and arguments (same as in $this->archivers) |
| 958 | - * @return true |
|
| 957 | + * @return false|string |
|
| 959 | 958 | * @author Dmitry (dio) Levashov, |
| 960 | 959 | * @author Alexey Sukhotin |
| 961 | 960 | **/ |
@@ -1062,7 +1061,7 @@ discard block |
||
| 1062 | 1061 | * @param array $files files names list |
| 1063 | 1062 | * @param string $name archive name |
| 1064 | 1063 | * @param array $arc archiver options |
| 1065 | - * @return string|bool |
|
| 1064 | + * @return false|string |
|
| 1066 | 1065 | * @author Dmitry (dio) Levashov, |
| 1067 | 1066 | * @author Alexey Sukhotin |
| 1068 | 1067 | **/ |
@@ -1209,9 +1208,9 @@ discard block |
||
| 1209 | 1208 | /** |
| 1210 | 1209 | * Downloads specified files from remote directory |
| 1211 | 1210 | * if there is a directory among files it is downloaded recursively (omitting symbolic links). |
| 1212 | - * @param $remote_directory string remote FTP path to a source directory to download from. |
|
| 1211 | + * @param string $remote_directory string remote FTP path to a source directory to download from. |
|
| 1213 | 1212 | * @param array $files list of files to download from remote directory. |
| 1214 | - * @param $dest_local_directory string destination folder to store downloaded files. |
|
| 1213 | + * @param string $dest_local_directory string destination folder to store downloaded files. |
|
| 1215 | 1214 | * @return bool true on success and false on failure. |
| 1216 | 1215 | */ |
| 1217 | 1216 | private function ftp_download_files($remote_directory, array $files, $dest_local_directory) |
@@ -1252,7 +1251,7 @@ discard block |
||
| 1252 | 1251 | |
| 1253 | 1252 | /** |
| 1254 | 1253 | * Delete local directory recursively. |
| 1255 | - * @param $dirPath string to directory to be erased. |
|
| 1254 | + * @param string $dirPath string to directory to be erased. |
|
| 1256 | 1255 | * @return bool true on success and false on failure. |
| 1257 | 1256 | */ |
| 1258 | 1257 | private function deleteDir($dirPath) |
@@ -1289,6 +1288,7 @@ discard block |
||
| 1289 | 1288 | * Returns array of strings containing all files and folders in the specified local directory. |
| 1290 | 1289 | * @param $dir |
| 1291 | 1290 | * @param string $prefix |
| 1291 | + * @param boolean $omitSymlinks |
|
| 1292 | 1292 | * @internal param string $path path to directory to scan. |
| 1293 | 1293 | * @return array array of files and folders names relative to the $path |
| 1294 | 1294 | * or an empty array if the directory $path is empty, |
@@ -402,7 +402,6 @@ discard block |
||
| 402 | 402 | * Open file and return file pointer |
| 403 | 403 | * |
| 404 | 404 | * @param string $path file path |
| 405 | - * @param bool $write open file for writing |
|
| 406 | 405 | * @return resource|false |
| 407 | 406 | * @author Dmitry (dio) Levashov |
| 408 | 407 | **/ |
@@ -428,7 +427,7 @@ discard block |
||
| 428 | 427 | * |
| 429 | 428 | * @param string $path parent dir path |
| 430 | 429 | * @param string $name new directory name |
| 431 | - * @return string|bool |
|
| 430 | + * @return string|false |
|
| 432 | 431 | * @author Dmitry (dio) Levashov |
| 433 | 432 | **/ |
| 434 | 433 | protected function _mkdir($path, $name) { |
@@ -447,7 +446,7 @@ discard block |
||
| 447 | 446 | * |
| 448 | 447 | * @param string $path parent dir path |
| 449 | 448 | * @param string $name new file name |
| 450 | - * @return string|bool |
|
| 449 | + * @return string|false |
|
| 451 | 450 | * @author Dmitry (dio) Levashov |
| 452 | 451 | **/ |
| 453 | 452 | protected function _mkfile($path, $name) { |
@@ -492,9 +491,9 @@ discard block |
||
| 492 | 491 | * Return new file path or false. |
| 493 | 492 | * |
| 494 | 493 | * @param string $source source file path |
| 495 | - * @param string $target target dir path |
|
| 494 | + * @param string $targetDir target dir path |
|
| 496 | 495 | * @param string $name file name |
| 497 | - * @return string|bool |
|
| 496 | + * @return string|false |
|
| 498 | 497 | * @author Dmitry (dio) Levashov |
| 499 | 498 | **/ |
| 500 | 499 | protected function _move($source, $targetDir, $name) { |
@@ -532,7 +531,7 @@ discard block |
||
| 532 | 531 | * @param string $dir target dir path |
| 533 | 532 | * @param string $name file name |
| 534 | 533 | * @param array $stat file stat (required by some virtual fs) |
| 535 | - * @return bool|string |
|
| 534 | + * @return false|string |
|
| 536 | 535 | * @author Dmitry (dio) Levashov |
| 537 | 536 | **/ |
| 538 | 537 | protected function _save($fp, $dir, $name, $stat) { |
@@ -555,7 +554,7 @@ discard block |
||
| 555 | 554 | * Get file contents |
| 556 | 555 | * |
| 557 | 556 | * @param string $path file path |
| 558 | - * @return string|false |
|
| 557 | + * @return string |
|
| 559 | 558 | * @author Dmitry (dio) Levashov |
| 560 | 559 | **/ |
| 561 | 560 | protected function _getContents($path) { |
@@ -741,7 +740,7 @@ discard block |
||
| 741 | 740 | * @param array $files files names list |
| 742 | 741 | * @param string $name archive name |
| 743 | 742 | * @param array $arc archiver options |
| 744 | - * @return string|bool |
|
| 743 | + * @return string|false |
|
| 745 | 744 | * @author Dmitry (dio) Levashov, |
| 746 | 745 | * @author Alexey Sukhotin |
| 747 | 746 | **/ |
@@ -273,7 +273,6 @@ discard block |
||
| 273 | 273 | * @param string $hash image file |
| 274 | 274 | * @param int $width new width |
| 275 | 275 | * @param int $height new height |
| 276 | - * @param bool $crop crop image |
|
| 277 | 276 | * @return array|false |
| 278 | 277 | * @author Dmitry (dio) Levashov |
| 279 | 278 | * @author Alexey Sukhotin |
@@ -686,7 +685,7 @@ discard block |
||
| 686 | 685 | * Close opened file |
| 687 | 686 | * |
| 688 | 687 | * @param resource $fp file pointer |
| 689 | - * @return bool |
|
| 688 | + * @return boolean|null |
|
| 690 | 689 | * @author Dmitry (dio) Levashov |
| 691 | 690 | **/ |
| 692 | 691 | protected function _fclose($fp, $path='') { |
@@ -703,7 +702,7 @@ discard block |
||
| 703 | 702 | * |
| 704 | 703 | * @param string $path parent dir path |
| 705 | 704 | * @param string $name new directory name |
| 706 | - * @return string|bool |
|
| 705 | + * @return string|false |
|
| 707 | 706 | * @author Dmitry (dio) Levashov |
| 708 | 707 | **/ |
| 709 | 708 | protected function _mkdir($path, $name) { |
@@ -715,7 +714,7 @@ discard block |
||
| 715 | 714 | * |
| 716 | 715 | * @param string $path parent dir path |
| 717 | 716 | * @param string $name new file name |
| 718 | - * @return string|bool |
|
| 717 | + * @return string|false |
|
| 719 | 718 | * @author Dmitry (dio) Levashov |
| 720 | 719 | **/ |
| 721 | 720 | protected function _mkfile($path, $name) { |
@@ -759,9 +758,9 @@ discard block |
||
| 759 | 758 | * Return new file path or false. |
| 760 | 759 | * |
| 761 | 760 | * @param string $source source file path |
| 762 | - * @param string $target target dir path |
|
| 761 | + * @param string $targetDir target dir path |
|
| 763 | 762 | * @param string $name file name |
| 764 | - * @return string|bool |
|
| 763 | + * @return string|false |
|
| 765 | 764 | * @author Dmitry (dio) Levashov |
| 766 | 765 | **/ |
| 767 | 766 | protected function _move($source, $targetDir, $name) { |
@@ -934,7 +933,7 @@ discard block |
||
| 934 | 933 | * |
| 935 | 934 | * @param string $path archive path |
| 936 | 935 | * @param array $arc archiver command and arguments (same as in $this->archivers) |
| 937 | - * @return true |
|
| 936 | + * @return boolean |
|
| 938 | 937 | * @author Dmitry (dio) Levashov, |
| 939 | 938 | * @author Alexey Sukhotin |
| 940 | 939 | **/ |
@@ -949,7 +948,7 @@ discard block |
||
| 949 | 948 | * @param array $files files names list |
| 950 | 949 | * @param string $name archive name |
| 951 | 950 | * @param array $arc archiver options |
| 952 | - * @return string|bool |
|
| 951 | + * @return boolean |
|
| 953 | 952 | * @author Dmitry (dio) Levashov, |
| 954 | 953 | * @author Alexey Sukhotin |
| 955 | 954 | **/ |
@@ -12,6 +12,10 @@ |
||
| 12 | 12 | public $key; |
| 13 | 13 | public $secret; |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $key |
|
| 17 | + * @param string $secret |
|
| 18 | + */ |
|
| 15 | 19 | function __construct($key, $secret, $callback_url=NULL) { |
| 16 | 20 | $this->key = $key; |
| 17 | 21 | $this->secret = $secret; |
@@ -77,6 +77,8 @@ discard block |
||
| 77 | 77 | |
| 78 | 78 | /** |
| 79 | 79 | * pretty much a helper function to set up the request |
| 80 | + * @param string $http_method |
|
| 81 | + * @param string $http_url |
|
| 80 | 82 | */ |
| 81 | 83 | public static function from_consumer_and_token($consumer, $token, $http_method, $http_url, $parameters=NULL) { |
| 82 | 84 | @$parameters or $parameters = array(); |
@@ -92,6 +94,9 @@ discard block |
||
| 92 | 94 | return new OAuthRequest($http_method, $http_url, $parameters); |
| 93 | 95 | } |
| 94 | 96 | |
| 97 | + /** |
|
| 98 | + * @param string $name |
|
| 99 | + */ |
|
| 95 | 100 | public function set_parameter($name, $value, $allow_duplicates = true) { |
| 96 | 101 | if ($allow_duplicates && isset($this->parameters[$name])) { |
| 97 | 102 | // We have already added parameter(s) with this name, so add to the list |
@@ -185,6 +190,7 @@ discard block |
||
| 185 | 190 | |
| 186 | 191 | /** |
| 187 | 192 | * builds a url usable for a GET request |
| 193 | + * @return string |
|
| 188 | 194 | */ |
| 189 | 195 | public function to_url() { |
| 190 | 196 | $post_data = $this->to_postdata(); |
@@ -227,6 +233,9 @@ discard block |
||
| 227 | 233 | } |
| 228 | 234 | |
| 229 | 235 | |
| 236 | + /** |
|
| 237 | + * @param OAuthSignatureMethod_HMAC_SHA1 $signature_method |
|
| 238 | + */ |
|
| 230 | 239 | public function sign_request($signature_method, $consumer, $token) { |
| 231 | 240 | $this->set_parameter( |
| 232 | 241 | "oauth_signature_method", |
@@ -592,6 +592,8 @@ discard block |
||
| 592 | 592 | * @param int $levelUp. |
| 593 | 593 | * @param boolean $runValidation. |
| 594 | 594 | * @param array $attributes. |
| 595 | + * @param integer $levelUp |
|
| 596 | + * @param boolean $runValidation |
|
| 595 | 597 | * @return boolean. |
| 596 | 598 | */ |
| 597 | 599 | private function addNode($target,$key,$levelUp,$runValidation,$attributes) |
@@ -660,6 +662,7 @@ discard block |
||
| 660 | 662 | |
| 661 | 663 | /** |
| 662 | 664 | * @param array $attributes. |
| 665 | + * @param boolean|null $attributes |
|
| 663 | 666 | * @return boolean. |
| 664 | 667 | */ |
| 665 | 668 | private function makeRoot($attributes) |
@@ -724,6 +727,7 @@ discard block |
||
| 724 | 727 | * @param CActiveRecord $target. |
| 725 | 728 | * @param int $key. |
| 726 | 729 | * @param int $levelUp. |
| 730 | + * @param integer $levelUp |
|
| 727 | 731 | * @return boolean. |
| 728 | 732 | */ |
| 729 | 733 | private function moveNode($target,$key,$levelUp) |
@@ -879,6 +883,7 @@ discard block |
||
| 879 | 883 | /** |
| 880 | 884 | * Correct cache for {@link NestedSetBehavior::addNode()}. |
| 881 | 885 | * @param int $key. |
| 886 | + * @param integer $key |
|
| 882 | 887 | */ |
| 883 | 888 | private function correctCachedOnAddNode($key) |
| 884 | 889 | { |
@@ -907,6 +912,7 @@ discard block |
||
| 907 | 912 | * Correct cache for {@link NestedSetBehavior::moveNode()}. |
| 908 | 913 | * @param int $key. |
| 909 | 914 | * @param int $levelDelta. |
| 915 | + * @param double $levelDelta |
|
| 910 | 916 | */ |
| 911 | 917 | private function correctCachedOnMoveNode($key,$levelDelta) |
| 912 | 918 | { |