[ Index ]

PHP Cross Reference of Wordpress 2.7.1

title

Body

[close]

/wp-admin/includes/ -> file.php (summary)

File contains all the administration image manipulation functions.

File Size: 777 lines (28 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 2 files
 wp-admin/includes/class-wp-filesystem-base.php
 wp-admin/includes/class-pclzip.php

Defines 17 functions

  get_file_description()
  get_home_path()
  get_real_file_to_edit()
  list_files()
  get_temp_dir()
  wp_tempnam()
  validate_file_to_edit()
  wp_handle_upload()
  wp_handle_upload_error()
  wp_handle_sideload()
  wp_handle_upload_error()
  download_url()
  unzip_file()
  copy_dir()
  WP_Filesystem()
  get_filesystem_method()
  request_filesystem_credentials()

Functions
Functions that are not part of a class:

get_file_description( $file )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $file
return: unknown

get_home_path()   X-Ref
{@internal Missing Short Description}}

return: unknown

get_real_file_to_edit( $file )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $file
return: unknown

list_files( $folder = '', $levels = 100 )   X-Ref
{@internal Missing Short Description}}

param: string $folder Optional. Full path to folder
param: int $levels Optional. Levels of folders to follow, Default: 100 (PHP Loop limit).
return: bool|array

get_temp_dir()   X-Ref
{@internal Missing Short Description}}

return: unknown

wp_tempnam($filename = '', $dir = '')   X-Ref
{@internal Missing Short Description}}

param: unknown_type $filename
param: unknown_type $dir
return: unknown

validate_file_to_edit( $file, $allowed_files = '' )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $file
param: unknown_type $allowed_files
return: unknown

wp_handle_upload( &$file, $overrides = false, $time = null )   X-Ref
{@internal Missing Short Description}}

param: array $file Reference to a single element of $_FILES. Call the function once for each uploaded file.
param: array $overrides Optional. An associative array of names=>values to override default variables with extract( $overrides, EXTR_OVERWRITE ).
return: array On success, returns an associative array of file attributes. On failure, returns $overrides['upload_error_handler'](&$file, $message ) or array( 'error'=>$message ).

wp_handle_upload_error( &$file, $message )   X-Ref
No description

wp_handle_sideload( &$file, $overrides = false )   X-Ref
{@internal Missing Short Description}}

Pass this function an array similar to that of a $_FILES POST array.

param: unknown_type $file
param: unknown_type $overrides
return: unknown

wp_handle_upload_error( &$file, $message )   X-Ref
No description

download_url( $url )   X-Ref
Downloads a url to a local file using the Snoopy HTTP Class.

param: string $url the URL of the file to download
return: mixed WP_Error on failure, string Filename on success.

unzip_file($file, $to)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $file
param: unknown_type $to
return: unknown

copy_dir($from, $to)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $from
param: unknown_type $to
return: unknown

WP_Filesystem( $args = false )   X-Ref
{@internal Missing Short Description}}

param: unknown_type $args
return: unknown

get_filesystem_method($args = array()   X-Ref
{@internal Missing Short Description}}

param: unknown_type $args
return: unknown

request_filesystem_credentials($form_post, $type = '', $error = false)   X-Ref
{@internal Missing Short Description}}

param: unknown_type $form_post
param: unknown_type $type
param: unknown_type $error
return: unknown



Generated: Mon Mar 23 16:23:02 2009 Cross-referenced by PHPXref 0.7