\MainWP\DashboardMainWP_Sync

Class MainWP_Sync

Summary

Methods
Properties
Constants
sync_website()
sync_site()
sync_information_array()
get_wp_icon()
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

sync_website()

sync_website(object  $website, boolean  $clear_session = true) : boolean

Method sync_website()

Sync Child Site.

Parameters

object $website

object.

boolean $clear_session

to run the ending session or not.

Returns

boolean —

sync result.

sync_site()

sync_site(mixed  $pWebsite = null, boolean  $pForceFetch = false, boolean  $pAllowDisconnect = true, boolean  $clear_session = true) : boolean

Method sync_site()

Parameters

mixed $pWebsite

Null|userid.

boolean $pForceFetch

Check if a fourced Sync.

boolean $pAllowDisconnect

Check if allowed to disconect.

boolean $clear_session

to run the ending session or not.

Returns

boolean —

sync_information_array

sync_information_array()

sync_information_array(object  $pWebsite, array  $information, string  $sync_errors = '', integer  $check_result = 1, boolean  $error = false, boolean  $pAllowDisconnect = true) : boolean

Method sync_information_array()

Grab all Child Site Information.

Parameters

object $pWebsite

The website object.

array $information

Array contaning information returned from child site.

string $sync_errors

Check for Sync Errors.

integer $check_result

Check if offline.

boolean $error

True|False.

boolean $pAllowDisconnect

True|False.

Returns

boolean —

true|false True on success, false on failure.