\MainWP\ChildMainWP_Clone_Page

Class MainWP_Clone_Page

MainWP Clone extension handler.

Summary

Methods
Properties
Constants
get_class_name()
get()
print_scripts()
render()
render_normal_restore()
render_java_script()
render_style()
permalink_admin_notice()
render_restore()
No public properties found
No constants found
No protected methods found
$instance
N/A
render_form()
render_clone_from_server()
render_clone_from_server_form()
No private properties found
N/A

Properties

$instance

$instance : mixed

Public static variable to hold the single instance of the class.

Type

mixed — Default null

Methods

get_class_name()

get_class_name() : string

Method get_class_name()

Get class name.

Returns

string —

CLASS Class name.

print_scripts()

print_scripts() 

Method print_scripts()

render_style()

render_style() 

Render style.

permalink_admin_notice()

permalink_admin_notice() 

Method permalink_admin_notice()

render_restore()

render_restore() 

Render Restore.

render_form()

render_form(array  $sitesToClone, mixed  $uploadFile, string  $uploadSize, boolean  $error, string  $uploadError) 

Render clone form.

Parameters

array $sitesToClone

Sites that may be cloned.

mixed $uploadFile

Path to File.

string $uploadSize

Size of upload.

boolean $error

true|false.

string $uploadError

Upload error message.

render_clone_from_server()

render_clone_from_server() 

Render Clone from server Allows the Media Manager to add files from the webservers filesystem. Note: All files are copied to the uploads directory.

render_clone_from_server_form()

render_clone_from_server_form(string  $current_dir, string  $url) 

Render clone from server form.

Parameters

string $current_dir

Current parent directory.

string $url

URL of file to upload.