- Timestamp:
- 12/01/2014 12:12:05 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r29454 r30678 470 470 * 471 471 * @since 2.5.0 472 * 472 * @abstract 473 473 * @return bool True on success or false on failure (always true for WP_Filesystem_Direct). 474 474 */ … … 481 481 * 482 482 * @since 2.5.0 483 * 483 * @abstract 484 484 * @param string $file Name of the file to read. 485 * @return string|bool Returns the read data or false on failure.485 * @return mixed|bool Returns the read data or false on failure. 486 486 */ 487 487 public function get_contents( $file ) { … … 493 493 * 494 494 * @since 2.5.0 495 * 495 * @abstract 496 496 * @param string $file Path to the file. 497 497 * @return array|bool the file contents in an array or false on failure. … … 505 505 * 506 506 * @since 2.5.0 507 * 507 * @abstract 508 508 * @param string $file Remote path to the file where to write the data. 509 509 * @param string $contents The data to write. … … 519 519 * 520 520 * @since 2.5.0 521 * 521 * @abstract 522 522 * @return string|bool The current working directory on success, or false on failure. 523 523 */ … … 530 530 * 531 531 * @since 2.5.0 532 * 532 * @abstract 533 533 * @param string $dir The new current directory. 534 534 * @return bool Returns true on success or false on failure. … … 542 542 * 543 543 * @since 2.5.0 544 * 544 * @abstract 545 545 * @param string $file Path to the file. 546 546 * @param mixed $group A group name or number. … … 556 556 * 557 557 * @since 2.5.0 558 * 558 * @abstract 559 559 * @param string $file Path to the file. 560 560 * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs. … … 570 570 * 571 571 * @since 2.5.0 572 * 572 * @abstract 573 573 * @param string $file Path to the file. 574 574 * @return string|bool Username of the user or false on error. … … 582 582 * 583 583 * @since 2.5.0 584 * 584 * @abstract 585 585 * @param string $file Path to the file. 586 586 * @return string|bool The group or false on error. … … 594 594 * 595 595 * @since 2.5.0 596 * 596 * @abstract 597 597 * @param string $source Path to the source file. 598 598 * @param string $destination Path to the destination file. … … 611 611 * 612 612 * @since 2.5.0 613 * 613 * @abstract 614 614 * @param string $source Path to the source file. 615 615 * @param string $destination Path to the destination file. … … 626 626 * 627 627 * @since 2.5.0 628 * 628 * @abstract 629 629 * @param string $file Path to the file. 630 630 * @param bool $recursive Optional. If set True changes file group recursively. Defaults to False. … … 642 642 * 643 643 * @since 2.5.0 644 * 644 * @abstract 645 645 * @param string $file Path to file/directory. 646 646 * @return bool Whether $file exists or not. … … 654 654 * 655 655 * @since 2.5.0 656 * 656 * @abstract 657 657 * @param string $file File path. 658 658 * @return bool Whether $file is a file. … … 666 666 * 667 667 * @since 2.5.0 668 * 668 * @abstract 669 669 * @param string $path Directory path. 670 670 * @return bool Whether $path is a directory. … … 678 678 * 679 679 * @since 2.5.0 680 * 680 * @abstract 681 681 * @param string $file Path to file. 682 682 * @return bool Whether $file is readable. … … 690 690 * 691 691 * @since 2.5.0 692 * 693 * @param string $path Path to file/directory. 692 * @abstract 694 693 * @return bool Whether $file is writable. 695 694 */ … … 702 701 * 703 702 * @since 2.5.0 704 * 703 * @abstract 705 704 * @param string $file Path to file. 706 * @return int Unix timestamp representing last access time.705 * @return int|bool Unix timestamp representing last access time. 707 706 */ 708 707 public function atime( $file ) { … … 714 713 * 715 714 * @since 2.5.0 716 * 715 * @abstract 717 716 * @param string $file Path to file. 718 * @return int Unix timestamp representing modification time.717 * @return int|bool Unix timestamp representing modification time. 719 718 */ 720 719 public function mtime( $file ) { … … 726 725 * 727 726 * @since 2.5.0 728 * 727 * @abstract 729 728 * @param string $file Path to file. 730 * @return int Size of the file in bytes.729 * @return int|bool Size of the file in bytes. 731 730 */ 732 731 public function size( $file ) { … … 740 739 * 741 740 * @since 2.5.0 742 * 741 * @abstract 743 742 * @param string $file Path to file. 744 743 * @param int $time Optional. Modified time to set for file. … … 756 755 * 757 756 * @since 2.5.0 758 * 757 * @abstract 759 758 * @param string $path Path for new directory. 760 759 * @param mixed $chmod Optional. The permissions as octal number, (or False to skip chmod) … … 774 773 * 775 774 * @since 2.5.0 776 * 775 * @abstract 777 776 * @param string $path Path to directory. 778 777 * @param bool $recursive Optional. Whether to recursively remove files/directories. … … 788 787 * 789 788 * @since 2.5.0 790 * 789 * @abstract 791 790 * @param string $path Path to directory or file. 792 791 * @param bool $include_hidden Optional. Whether to include details of hidden ("." prefixed) files.
Note: See TracChangeset
for help on using the changeset viewer.