[ Index ] |
WordPress Cross Reference |
[Source view] [Print] [Project Stats]
WordPress Direct Filesystem.
File Size: | 384 lines (10 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
WP_Filesystem_Direct:: (27 methods):
__construct()
get_contents()
get_contents_array()
put_contents()
cwd()
chdir()
chgrp()
chmod()
chown()
owner()
getchmod()
group()
copy()
move()
delete()
exists()
is_file()
is_dir()
is_readable()
is_writable()
atime()
mtime()
size()
touch()
mkdir()
rmdir()
dirlist()
Class: WP_Filesystem_Direct - X-Ref
WordPress Filesystem Class for direct PHP file and folder manipulation.__construct($arg) X-Ref |
constructor param: mixed $arg ignored argument |
get_contents($file) X-Ref |
Reads entire file into a string param: string $file Name of the file to read. return: string|bool The function returns the read data or false on failure. |
get_contents_array($file) X-Ref |
Reads entire file into an array param: string $file Path to the file. return: array|bool the file contents in an array or false on failure. |
put_contents( $file, $contents, $mode = false ) X-Ref |
Write a string to a file 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. return: bool False upon failure. |
cwd() X-Ref |
Gets the current working directory return: string|bool the current working directory on success, or false on failure. |
chdir($dir) X-Ref |
Change directory param: string $dir The new current directory. return: bool Returns true on success or false on failure. |
chgrp($file, $group, $recursive = false) X-Ref |
Changes file group 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. Defaults to False. return: bool Returns true on success or false on failure. |
chmod($file, $mode = false, $recursive = false) X-Ref |
Changes filesystem permissions param: string $file Path to the file. param: int $mode (optional) The permissions as octal number, usually 0644 for files, 0755 for dirs. param: bool $recursive (optional) If set True changes file group recursively. Defaults to False. return: bool Returns true on success or false on failure. |
chown($file, $owner, $recursive = false) X-Ref |
Changes file owner 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. Defaults to False. return: bool Returns true on success or false on failure. |
owner($file) X-Ref |
Gets file owner param: string $file Path to the file. return: string|bool Username of the user or false on error. |
getchmod($file) X-Ref |
Gets file permissions FIXME does not handle errors in fileperms() param: string $file Path to the file. return: string Mode of the file (last 4 digits). |
group($file) X-Ref |
No description |
copy($source, $destination, $overwrite = false, $mode = false) X-Ref |
No description |
move($source, $destination, $overwrite = false) X-Ref |
No description |
delete($file, $recursive = false, $type = false) X-Ref |
No description |
exists($file) X-Ref |
No description |
is_file($file) X-Ref |
No description |
is_dir($path) X-Ref |
No description |
is_readable($file) X-Ref |
No description |
is_writable($file) X-Ref |
No description |
atime($file) X-Ref |
No description |
mtime($file) X-Ref |
No description |
size($file) X-Ref |
No description |
touch($file, $time = 0, $atime = 0) X-Ref |
No description |
mkdir($path, $chmod = false, $chown = false, $chgrp = false) X-Ref |
No description |
rmdir($path, $recursive = false) X-Ref |
No description |
dirlist($path, $include_hidden = true, $recursive = false) X-Ref |
No description |
Generated: Tue Mar 25 01:41:18 2014 | WordPress honlapkészítés: online1.hu |