[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

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

Upgrade API: File_Upload_Upgrader class

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

Defines 1 class

File_Upload_Upgrader:: (2 methods):
  __construct()
  cleanup()


Class: File_Upload_Upgrader  - X-Ref

Core class used for handling file uploads.

This class handles the upload process and passes it as if it's a local file
to the Upgrade/Installer functions.

__construct( $form, $urlholder )   X-Ref
Construct the upgrader for a form.

param: string $form      The name of the form the file was uploaded from.
param: string $urlholder The name of the `GET` parameter that holds the filename.

cleanup()   X-Ref
Deletes the attachment/uploaded file.

return: bool Whether the cleanup was successful.



Generated : Sat Dec 21 08:20:01 2024 Cross-referenced by PHPXref