Changeset 15590 for trunk/wp-admin/includes/class-wp-filesystem-direct.php
- Timestamp:
- 09/07/2010 11:21:11 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-filesystem-direct.php
r13025 r15590 20 20 * constructor 21 21 * 22 * @param $arg mixedingored argument22 * @param mixed $arg ingored argument 23 23 */ 24 24 function WP_Filesystem_Direct($arg) { … … 37 37 * Reads entire file into a string 38 38 * 39 * @param $file stringName of the file to read.39 * @param string $file Name of the file to read. 40 40 * @return string|bool The function returns the read data or false on failure. 41 41 */ … … 46 46 * Reads entire file into an array 47 47 * 48 * @param $file stringPath to the file.48 * @param string $file Path to the file. 49 49 * @return array|bool the file contents in an array or false on failure. 50 50 */ … … 55 55 * Write a string to a file 56 56 * 57 * @param $file stringRemote path to the file where to write the data.58 * @param $contents stringThe data to write.59 * @param $mode int(optional) The file permissions as octal number, usually 0644.57 * @param string $file Remote path to the file where to write the data. 58 * @param string $contents The data to write. 59 * @param int $mode (optional) The file permissions as octal number, usually 0644. 60 60 * @return bool False upon failure. 61 61 */ … … 79 79 * Change directory 80 80 * 81 * @param $dir stringThe new current directory.81 * @param string $dir The new current directory. 82 82 * @return bool Returns true on success or false on failure. 83 83 */ … … 88 88 * Changes file group 89 89 * 90 * @param $file stringPath to the file.91 * @param $group mixedA group name or number.92 * @param $recursive bool(optional) If set True changes file group recursivly. Defaults to False.90 * @param string $file Path to the file. 91 * @param mixed $group A group name or number. 92 * @param bool $recursive (optional) If set True changes file group recursivly. Defaults to False. 93 93 * @return bool Returns true on success or false on failure. 94 94 */ … … 111 111 * Changes filesystem permissions 112 112 * 113 * @param $file stringPath to the file.114 * @param $mode int(optional) The permissions as octal number, usually 0644 for files, 0755 for dirs.115 * @param $recursive bool(optional) If set True changes file group recursivly. Defaults to False.113 * @param string $file Path to the file. 114 * @param int $mode (optional) The permissions as octal number, usually 0644 for files, 0755 for dirs. 115 * @param bool $recursive (optional) If set True changes file group recursivly. Defaults to False. 116 116 * @return bool Returns true on success or false on failure. 117 117 */ … … 139 139 * Changes file owner 140 140 * 141 * @param $file stringPath to the file.142 * @param $owner mixedA user name or number.143 * @param $recursive bool(optional) If set True changes file owner recursivly. Defaults to False.141 * @param string $file Path to the file. 142 * @param mixed $owner A user name or number. 143 * @param bool $recursive (optional) If set True changes file owner recursivly. Defaults to False. 144 144 * @return bool Returns true on success or false on failure. 145 145 */ … … 161 161 * Gets file owner 162 162 * 163 * @param $file stringPath to the file.163 * @param string $file Path to the file. 164 164 * @return string Username of the user. 165 165 */ … … 178 178 * FIXME does not handle errors in fileperms() 179 179 * 180 * @param $file stringPath to the file.180 * @param string $file Path to the file. 181 181 * @return string Mode of the file (last 4 digits). 182 182 */
Note: See TracChangeset
for help on using the changeset viewer.