\MainWP\DashboardMainWP_Premium_Update

Class MainWP_Premium_Update

Summary

Methods
Properties
Constants
get_class_name()
check_premium_updates()
maybe_request_premium_updates()
check_request_update_premium()
redirect_request_site()
request_premiums_update()
try_to_detect_premiums_update()
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() : object

Method get_class_name()

Get Class Name.

Returns

object

check_premium_updates()

check_premium_updates(array  $updates, mixed  $type) : boolean

Method check_premium_updates()

Check for Premium Plugin updates.

Parameters

array $updates

Array of updates.

mixed $type

Type of update.

Returns

boolean —

true|false.

maybe_request_premium_updates()

maybe_request_premium_updates(mixed  $website, mixed  $what, mixed  $params) : mixed

Method maybe_request_premium_updates()

Parameters

mixed $website

Child Site info.

mixed $what

stats|upgradeplugintheme What function to perform.

mixed $params

plugin|theme Update Type.

Returns

mixed —

$request_update

check_request_update_premium()

check_request_update_premium(array  $list_items, string  $type) : boolean

Method check_request_update_premium()

Check if any updates are on the premiums list.

Parameters

array $list_items

List of updates.

string $type

Type of update. plugin|theme.

Returns

boolean —

true|false.

redirect_request_site()

redirect_request_site(mixed  $website, mixed  $where_url) 

Method redirect_request_site()

Redirect to requested Site.

Parameters

mixed $website

Child Site.

mixed $where_url

page to redirerct to.

request_premiums_update()

request_premiums_update(mixed  $website, mixed  $type, mixed  $list_items) : mixed

Method request_premiums_update()

Request to update plugin or theme.

Parameters

mixed $website

Child Site to update.

mixed $type

Type of update, plugin|theme.

mixed $list_items

list of plugins & themes installed.

Returns

mixed —

null|true.

try_to_detect_premiums_update()

try_to_detect_premiums_update(mixed  $website, mixed  $type) : mixed

Method try_to_detect_premiums_update()

Try to detect if pugin and themes are premium.

Parameters

mixed $website

Child Site.

mixed $type

Type of update, plugin|theme.

Returns

mixed —

false|self::redirect_request_site()