- Timestamp:
- 09/10/2015 01:20:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-filesystem-base.php
r32962 r33984 25 25 * Cached list of local filepaths to mapped remote filepaths. 26 26 * 27 * @access public 27 28 * @since 2.7.0 28 29 * @var array … … 39 40 public $method = ''; 40 41 42 /** 43 * @access public 44 */ 41 45 public $errors = null; 42 46 47 /** 48 * @access public 49 */ 43 50 public $options = array(); 44 51 … … 231 238 * Expects Windows sanitized path. 232 239 * 240 * @access public 233 241 * @since 2.7.0 234 242 * … … 355 363 * Gets the permissions of the specified file or filepath in their octal format 356 364 * 365 * @access public 357 366 * @since 2.5.0 358 367 * @param string $file … … 402 411 * Determine if the string provided contains binary characters. 403 412 * 413 * @access public 404 414 * @since 2.7.0 405 415 * … … 416 426 * Default behavior is to do nothing, override this in your subclass, if desired. 417 427 * 428 * @access public 418 429 * @since 2.5.0 419 430 * … … 430 441 * Connect filesystem. 431 442 * 432 * @since 2.5.0 433 * @abstract 443 * @access public 444 * @since 2.5.0 445 * @abstract 446 * 434 447 * @return bool True on success or false on failure (always true for WP_Filesystem_Direct). 435 448 */ … … 441 454 * Read entire file into a string. 442 455 * 443 * @since 2.5.0 444 * @abstract 456 * @access public 457 * @since 2.5.0 458 * @abstract 459 * 445 460 * @param string $file Name of the file to read. 446 461 * @return mixed|bool Returns the read data or false on failure. … … 453 468 * Read entire file into an array. 454 469 * 455 * @since 2.5.0 456 * @abstract 470 * @access public 471 * @since 2.5.0 472 * @abstract 473 * 457 474 * @param string $file Path to the file. 458 475 * @return array|bool the file contents in an array or false on failure. … … 465 482 * Write a string to a file. 466 483 * 467 * @since 2.5.0 468 * @abstract 484 * @access public 485 * @since 2.5.0 486 * @abstract 487 * 469 488 * @param string $file Remote path to the file where to write the data. 470 489 * @param string $contents The data to write. … … 479 498 * Get the current working directory. 480 499 * 481 * @since 2.5.0 482 * @abstract 500 * @access public 501 * @since 2.5.0 502 * @abstract 503 * 483 504 * @return string|bool The current working directory on success, or false on failure. 484 505 */ … … 490 511 * Change current directory. 491 512 * 492 * @since 2.5.0 493 * @abstract 513 * @access public 514 * @since 2.5.0 515 * @abstract 516 * 494 517 * @param string $dir The new current directory. 495 518 * @return bool|string … … 502 525 * Change the file group. 503 526 * 504 * @since 2.5.0 505 * @abstract 527 * @access public 528 * @since 2.5.0 529 * @abstract 530 * 506 531 * @param string $file Path to the file. 507 532 * @param mixed $group A group name or number. … … 516 541 * Change filesystem permissions. 517 542 * 518 * @since 2.5.0 519 * @abstract 543 * @access public 544 * @since 2.5.0 545 * @abstract 546 * 520 547 * @param string $file Path to the file. 521 548 * @param int $mode Optional. The permissions as octal number, usually 0644 for files, 0755 for dirs. … … 530 557 * Get the file owner. 531 558 * 532 * @since 2.5.0 533 * @abstract 559 * @access public 560 * @since 2.5.0 561 * @abstract 562 * 534 563 * @param string $file Path to the file. 535 564 * @return string|bool Username of the user or false on error. … … 542 571 * Get the file's group. 543 572 * 544 * @since 2.5.0 545 * @abstract 573 * @access public 574 * @since 2.5.0 575 * @abstract 576 * 546 577 * @param string $file Path to the file. 547 578 * @return string|bool The group or false on error. … … 554 585 * Copy a file. 555 586 * 556 * @since 2.5.0 557 * @abstract 587 * @access public 588 * @since 2.5.0 589 * @abstract 590 * 558 591 * @param string $source Path to the source file. 559 592 * @param string $destination Path to the destination file. … … 571 604 * Move a file. 572 605 * 573 * @since 2.5.0 574 * @abstract 606 * @access public 607 * @since 2.5.0 608 * @abstract 609 * 575 610 * @param string $source Path to the source file. 576 611 * @param string $destination Path to the destination file. … … 586 621 * Delete a file or directory. 587 622 * 588 * @since 2.5.0 589 * @abstract 623 * @access public 624 * @since 2.5.0 625 * @abstract 626 * 590 627 * @param string $file Path to the file. 591 628 * @param bool $recursive Optional. If set True changes file group recursively. Defaults to False. … … 602 639 * Check if a file or directory exists. 603 640 * 604 * @since 2.5.0 605 * @abstract 641 * @access public 642 * @since 2.5.0 643 * @abstract 644 * 606 645 * @param string $file Path to file/directory. 607 646 * @return bool Whether $file exists or not. … … 614 653 * Check if resource is a file. 615 654 * 616 * @since 2.5.0 617 * @abstract 655 * @access public 656 * @since 2.5.0 657 * @abstract 658 * 618 659 * @param string $file File path. 619 660 * @return bool Whether $file is a file. … … 626 667 * Check if resource is a directory. 627 668 * 628 * @since 2.5.0 629 * @abstract 669 * @access public 670 * @since 2.5.0 671 * @abstract 672 * 630 673 * @param string $path Directory path. 631 674 * @return bool Whether $path is a directory. … … 638 681 * Check if a file is readable. 639 682 * 640 * @since 2.5.0 641 * @abstract 683 * @access public 684 * @since 2.5.0 685 * @abstract 686 * 642 687 * @param string $file Path to file. 643 688 * @return bool Whether $file is readable. … … 650 695 * Check if a file or directory is writable. 651 696 * 652 * @since 2.5.0 653 * @abstract 697 * @access public 698 * @since 2.5.0 699 * @abstract 700 * 654 701 * @return bool Whether $file is writable. 655 702 */ … … 661 708 * Gets the file's last access time. 662 709 * 663 * @since 2.5.0 664 * @abstract 710 * @access public 711 * @since 2.5.0 712 * @abstract 713 * 665 714 * @param string $file Path to file. 666 715 * @return int|bool Unix timestamp representing last access time. … … 673 722 * Gets the file modification time. 674 723 * 675 * @since 2.5.0 676 * @abstract 724 * @access public 725 * @since 2.5.0 726 * @abstract 727 * 677 728 * @param string $file Path to file. 678 729 * @return int|bool Unix timestamp representing modification time. … … 685 736 * Gets the file size (in bytes). 686 737 * 687 * @since 2.5.0 688 * @abstract 738 * @access public 739 * @since 2.5.0 740 * @abstract 741 * 689 742 * @param string $file Path to file. 690 743 * @return int|bool Size of the file in bytes. … … 699 752 * Note: If $file doesn't exist, it will be created. 700 753 * 701 * @since 2.5.0 702 * @abstract 754 * @access public 755 * @since 2.5.0 756 * @abstract 757 * 703 758 * @param string $file Path to file. 704 759 * @param int $time Optional. Modified time to set for file. … … 715 770 * Create a directory. 716 771 * 717 * @since 2.5.0 718 * @abstract 772 * @access public 773 * @since 2.5.0 774 * @abstract 775 * 719 776 * @param string $path Path for new directory. 720 777 * @param mixed $chmod Optional. The permissions as octal number, (or False to skip chmod) … … 733 790 * Delete a directory. 734 791 * 735 * @since 2.5.0 736 * @abstract 792 * @access public 793 * @since 2.5.0 794 * @abstract 795 * 737 796 * @param string $path Path to directory. 738 797 * @param bool $recursive Optional. Whether to recursively remove files/directories. … … 747 806 * Get details for files in a directory or a specific file. 748 807 * 808 * @access public 749 809 * @since 2.5.0 750 810 * @abstract
Note: See TracChangeset
for help on using the changeset viewer.