]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/class-wp-filesystem-direct.php
WordPress 4.4.1-scripts
[autoinstalls/wordpress.git] / wp-admin / includes / class-wp-filesystem-direct.php
index 1e4cb50a283db48c1bdb6929a8d2a8a363f3a276..bb37b8f3c59475fe458a4c615ef58bea9ed60bc2 100644 (file)
@@ -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,15 +442,19 @@ class WP_Filesystem_Direct extends WP_Filesystem_Base {
        }
 
        /**
+        * @access public
+        *
         * @param string $path
         * @param bool $recursive
-        * @return type
+        * @return bool
         */
        public function rmdir($path, $recursive = false) {
                return $this->delete($path, $recursive);
        }
 
        /**
+        * @access public
+        *
         * @param string $path
         * @param bool $include_hidden
         * @param bool $recursive