\MainWP\DashboardMainWP_Install_Bulk

Class MainWP_Install_Bulk

Summary

Methods
Properties
Constants
get_class_name()
init()
admin_init()
render_upload()
prepare_install()
addition_post_data()
perform_install()
prepare_upload()
perform_upload()
clean_upload()
install_plugin_theme_handler()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

get_class_name()

get_class_name() : string

Get Class Name

Returns

string —

CLASS

init()

init() 

Method init()

Instantiate the main page

Has to be called in System constructor, adds handling for the main page.

admin_init()

admin_init() 

Method admin_init()

Handles the uploading of a file.

render_upload()

render_upload(string  $type) 

Method render_upload()

Renders the upload sub part.

Parameters

string $type

Plugin|Theme Type of upload.

addition_post_data()

addition_post_data(array  $post_data = array()) : mixed

Method addition_post_data()

Grab Post addition data.

Parameters

array $post_data

Data for post.

Returns

mixed —

$post_data Bulk post addition data.

perform_upload()

perform_upload() 

Method perform_upload()

Perform the upload.

clean_upload()

clean_upload() 

Clean the upload

Do file structure maintenance and tmp file removals.

install_plugin_theme_handler()

install_plugin_theme_handler(mixed  $data, object  $website, mixed  $output, mixed  $post_data = array()) : mixed

Plugin & Theme upload handler.

Parameters

mixed $data

Processing data.

object $website

The website object.

mixed $output

Function output.

mixed $post_data

Post data.

Returns

mixed —

$output->ok[ $website->id ] = array( $website->name )|Error, Already installed, Undefined error! Please reinstall the MainWP Child plugin on the child site, Error while installing.