\MainWP\DashboardMainWP_Api_Manager_Plugin_Update

Class MainWP_Api_Manager_Plugin_Update

MainWP API Manager Update Handler.

Summary

Methods
Properties
Constants
instance()
__construct()
update_check()
bulk_update_check()
request()
plugin_information()
No public properties found
No constants found
No protected methods found
$instance
N/A
create_upgrade_api_url()
No private properties found
N/A

Properties

$instance

$instance : null

Protected static variable to hold the instance.

Type

null — Default value.

Methods

instance()

instance() : \MainWP\Dashboard\class

Method instance()

Returns

\MainWP\Dashboard\class —

instance

__construct()

__construct() 

MainWP_Api_Manager_Plugin_Update constructor.

Run each time the class is called.

update_check()

update_check(array  $plugin) : array

Returns plugin information in an array.

Parameters

array $plugin

Plugin to check.

Returns

array —

Plugin information.

bulk_update_check()

bulk_update_check(array  $plugins) : array

Check if bulkupdateapi is true|false & grab domain name adn extensions list.

Parameters

array $plugins

List of plugins (extensions).

Returns

array —

Plugin Information & bulkupdatecheck.

request()

request(array  $args) : array|false

Check $args, if there is a response, an object exists & response is not false.

Parameters

array $args

Request arguments.

Returns

array|false —

$response Plugin information.

plugin_information()

plugin_information(array  $args, boolean  $bulk_check = false) : array|false

Sends and receives data to and from the server API.

Parameters

array $args

Request arguments.

boolean $bulk_check

Check if updating in bulk true|false.

Returns

array|false —

Plugin information.

create_upgrade_api_url()

create_upgrade_api_url(array  $args, boolean  $bulk_check = true) : string

Create upgrade request API URL.

Parameters

array $args

Request arguments.

boolean $bulk_check

Bulk check request.

Returns

string —

Build URL.