[ Index ]

PHP Cross Reference of Wordpress 2.9.1

title

Body

[close]

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

Base WordPress Filesystem.

File Size: 320 lines (9 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

WP_Filesystem_Base:: (11 methods):
  abspath()
  wp_content_dir()
  wp_plugins_dir()
  wp_themes_dir()
  find_base_dir()
  get_base_dir()
  find_folder()
  search_for_folder()
  gethchmod()
  getnumchmodfromh()
  is_binary()


Class: WP_Filesystem_Base  - X-Ref

Base WordPress Filesystem class for which Filesystem implementations extend

abspath()   X-Ref
Returns the path on the remote filesystem of ABSPATH

return: string The location of the remote path.

wp_content_dir()   X-Ref
Returns the path on the remote filesystem of WP_CONTENT_DIR

return: string The location of the remote path.

wp_plugins_dir()   X-Ref
Returns the path on the remote filesystem of WP_PLUGIN_DIR

return: string The location of the remote path.

wp_themes_dir()   X-Ref
Returns the path on the remote filesystem of the Themes Directory

return: string The location of the remote path.

find_base_dir($base = '.', $echo = false)   X-Ref
Locates a folder on the remote filesystem.

Deprecated; use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead.

param: string $base The folder to start searching from
param: bool $echo True to display debug information
return: string The location of the remote path.

get_base_dir($base = '.', $echo = false)   X-Ref
Locates a folder on the remote filesystem.

Deprecated; use WP_Filesystem::abspath() or WP_Filesystem::wp_*_dir() methods instead.

param: string $base The folder to start searching from
param: bool $echo True to display debug information
return: string The location of the remote path.

find_folder($folder)   X-Ref
Locates a folder on the remote filesystem.

Assumes that on Windows systems, Stripping off the Drive letter is OK
Sanitizes \\ to / in windows filepaths.

param: string $folder the folder to locate
return: string The location of the remote path.

search_for_folder($folder, $base = '.', $loop = false )   X-Ref
Locates a folder on the remote filesystem.

Expects Windows sanitized path

param: string $folder the folder to locate
param: string $base the folder to start searching from
param: bool $loop if the function has recursed, Internal use only
return: string The location of the remote path.

gethchmod($file)   X-Ref
Returns the *nix style file permissions for a file

From the PHP documentation page for fileperms()

param: string $file string filename
return: int octal representation of permissions

getnumchmodfromh($mode)   X-Ref
Converts *nix style file permissions to a octal number.

Converts '-rw-r--r--' to 0644
From "info at rvgate dot nl"'s comment on the PHP documentation for chmod()

param: string $mode string *nix style file permission
return: int octal representation

is_binary( $text )   X-Ref
Determines if the string provided contains binary characters.

param: string $text String to test against
return: bool true if string is binary, false otherwise



Generated: Fri Jan 8 00:19:48 2010 Cross-referenced by PHPXref 0.7