X-Git-Url: https://scripts.mit.edu/gitweb/autoinstalls/wordpress.git/blobdiff_plain/dc1231b7312fbdca99e9e887cc2bb35a28f85cdc..refs/tags/wordpress-4.4:/wp-admin/includes/class-wp-filesystem-direct.php diff --git a/wp-admin/includes/class-wp-filesystem-direct.php b/wp-admin/includes/class-wp-filesystem-direct.php index f8979c2a..bb37b8f3 100644 --- a/wp-admin/includes/class-wp-filesystem-direct.php +++ b/wp-admin/includes/class-wp-filesystem-direct.php @@ -19,6 +19,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * constructor * + * @access public + * * @param mixed $arg ignored argument */ public function __construct($arg) { @@ -29,6 +31,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Reads entire file into a string * + * @access public + * * @param string $file Name of the file to read. * @return string|bool The function returns the read data or false on failure. */ @@ -39,6 +43,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Reads entire file into an array * + * @access public + * * @param string $file Path to the file. * @return array|bool the file contents in an array or false on failure. */ @@ -49,6 +55,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Write a string to a file * + * @access public + * * @param string $file Remote path to the file where to write the data. * @param string $contents The data to write. * @param int $mode Optional. The file permissions as octal number, usually 0644. @@ -81,6 +89,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Gets the current working directory * + * @access public + * * @return string|bool the current working directory on success, or false on failure. */ public function cwd() { @@ -90,6 +100,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Change directory * + * @access public + * * @param string $dir The new current directory. * @return bool Returns true on success or false on failure. */ @@ -100,6 +112,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Changes file group * + * @access public + * * @param string $file Path to the file. * @param mixed $group A group name or number. * @param bool $recursive Optional. If set True changes file group recursively. Default false. @@ -124,6 +138,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Changes filesystem permissions * + * @access public + * * @param string $file Path to the file. * @param int $mode Optional. The permissions as octal number, usually 0644 for files, * 0755 for dirs. Default false. @@ -154,6 +170,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Changes file owner * + * @access public + * * @param string $file Path to the file. * @param mixed $owner A user name or number. * @param bool $recursive Optional. If set True changes file owner recursively. @@ -178,6 +196,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { /** * Gets file owner * + * @access public + * * @param string $file Path to the file. * @return string|bool Username of the user or false on error. */ @@ -196,6 +216,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { * * FIXME does not handle errors in fileperms() * + * @access public + * * @param string $file Path to the file. * @return string Mode of the file (last 3 digits). */ @@ -204,6 +226,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @return string|false */ @@ -218,6 +242,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $source * @param string $destination * @param bool $overwrite @@ -235,6 +261,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $source * @param string $destination * @param bool $overwrite @@ -257,6 +285,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @param bool $recursive * @param string $type @@ -290,6 +320,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { return $retval; } /** + * @access public + * * @param string $file * @return bool */ @@ -297,6 +329,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { return @file_exists($file); } /** + * @access public + * * @param string $file * @return bool */ @@ -304,6 +338,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { return @is_file($file); } /** + * @access public + * * @param string $path * @return bool */ @@ -312,6 +348,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @return bool */ @@ -320,6 +358,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @return bool */ @@ -328,6 +368,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @return int */ @@ -336,6 +378,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @return int */ @@ -344,6 +388,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @return int */ @@ -352,6 +398,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $file * @param int $time * @param int $atime @@ -366,6 +414,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $path * @param mixed $chmod * @param mixed $chown @@ -392,6 +442,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $path * @param bool $recursive * @return bool @@ -401,6 +453,8 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base { } /** + * @access public + * * @param string $path * @param bool $include_hidden * @param bool $recursive