[ Index ]

PHP Cross Reference of Wordpress 2.9.1

title

Body

[close]

/wp-admin/includes/ -> class-wp-filesystem-direct.php (summary)

WordPress Direct Filesystem.

File Size: 365 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Filesystem_Direct:: (28 methods):
  WP_Filesystem_Direct()
  connect()
  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.

WP_Filesystem_Direct($arg)   X-Ref
constructor

param: $arg mixed ingored argument

connect()   X-Ref
connect filesystem.

return: bool Returns true on success or false on failure (always true for WP_Filesystem_Direct).

get_contents($file)   X-Ref
Reads entire file into a string

param: $file string 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: $file string Path to the file.
return: array|bool the file contents in an array or false on failure.

put_contents($file, $contents, $mode = false, $type = '')   X-Ref
Write a string to a file

param: $file string Path to the file where to write the data.
param: $contents string The data to write.
param: $mode int (optional) The file permissions as octal number, usually 0644.
param: $type string (optional) Specifies additional type of access you require to the file.
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: $dir string 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: $file string Path to the file.
param: $group mixed A group name or number.
param: $recursive bool (optional) If set True changes file group recursivly. 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: $file string Path to the file.
param: $mode int (optional) The permissions as octal number, usually 0644 for files, 0755 for dirs.
param: $recursive bool (optional) If set True changes file group recursivly. Defaults to False.
return: bool Returns true on success or false on failure.

chown($file, $owner, $recursive = false)   X-Ref
Changes file owner

param: $file string Path to the file.
param: $owner mixed A user name or number.
param: $recursive bool (optional) If set True changes file owner recursivly. Defaults to False.
return: bool Returns true on success or false on failure.

owner($file)   X-Ref
Gets file owner

param: $file string Path to the file.
return: string Username of the user.

getchmod($file)   X-Ref
Gets file permissions

FIXME does not handle errors in fileperms()

param: $file string Path to the file.
return: string Mode of the file (last 4 digits).

group($file)   X-Ref
No description

copy($source, $destination, $overwrite = false)   X-Ref
No description

move($source, $destination, $overwrite = false)   X-Ref
No description

delete($file, $recursive = 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: Fri Jan 8 00:19:48 2010 Cross-referenced by PHPXref 0.7