$name
$name : string
Connector name.
Class Connector_Installer
log(string $message, array $args, integer $site_id, string $context, string $action, integer|null $state = null, integer $user_id = null) : boolean
Log handler
string | $message | sprintf-ready error message string. |
array | $args | sprintf (and extra) arguments to use. |
integer | $site_id | Target site id. |
string | $context | Context of the event. |
string | $action | Action of the event. |
integer|null | $state | action status: null - N/A, 0 - failed, 1 - success. |
integer | $user_id | User responsible for the event. |
get_changed_keys(mixed $old_value, mixed $new_value, boolean|integer $deep = false) : array
Compare two values and return changed keys if they are arrays
mixed | $old_value | Value before change. |
mixed | $new_value | Value after change. |
boolean|integer | $deep | Get array children changes keys as well, not just parents. |
callback_mainwp_install_update_actions(array $website, string $pAction, array $data, string $type, mixed $post_data = array(), boolean $upload = false)
Log plugin|theme installations.
array | $website | website. |
string | $pAction | install action. |
array | $data | data result. |
string | $type | action type. |
mixed | $post_data | post data (option). |
boolean | $upload | true|false install by upload. |
callback_mainwp_install_plugin_action(array $website, string $plugin_act, array $params, array $action_data, array $others)
Log plugin actions.
array | $website | website. |
string | $plugin_act | plugin action: activate, deactivate, delete. |
array | $params | params array. |
array | $action_data | response data. |
array | $others | others data. |
callback_mainwp_install_theme_action(array $website, string $theme_act, array $params, array $action_data, array $others)
Log themes actions.
array | $website | website. |
string | $theme_act | theme action: activate, delete. |
array | $params | params array. |
array | $action_data | response data. |
array | $others | others data. |