[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

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

Upgrade API: File_Upload_Upgrader class

File Size: 132 lines (3 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
Delete the attachment/uploaded file.

return: bool Whether the cleanup was successful.



Generated: Mon Jun 24 08:20:01 2019 Cross-referenced by PHPXref 0.7