Store Locator Plus®

SLP_AddOn_Updates extends SLPlus_BaseClass_Object
in package

Checks remote SLP server for add-on pack updates.

Table of Contents

Properties

$current_version  : string
$current_version  : mixed
$license_status  : string
$license_status  : mixed
$plugin_slug  : string
$plugin_slug  : mixed
$remote_version  : string
$remote_version  : mixed
$slplus  : SLPlus
$slug  : string
$slug  : mixed
$update_request_path  : string
$update_request_path  : mixed
$uses_slplus  : bool
$slplus  : mixed
$uses_slplus  : mixed

Methods

__construct()  : mixed
__get()  : SLPlus_BaseClass_Object
__isset()  : bool
add_hooks_and_filters()  : mixed
Add the WP and SLP hooks and filters.
check_info()  : mixed
Add our self-hosted description to the filter
check_update()  : object
Add our self-hosted autoupdate plugin to the filter transient
configure()  : mixed
Configure an instance of the WordPress Auto-Update class
get_instance()  : SLPlus_BaseClass_Object
Return an instance of the object which is also registered to the slplus global less the SLP_ part.
getRemote_version()  : string
Return the remote version
set_new_version_available()  : mixed
Set a new version flag via the WP update_plugins transient.
set_properties()  : mixed
Set our properties.
show_update_notification()  : mixed
show update notification row -- needed for multisite subsites, because WP won't tell you otherwise!
turn_off_ssl_verify()  : array<string|int, mixed>
Turn off SSL verification on plugin updates.
initialize()  : mixed
Do these things when this object is invoked. Override in your class.
get_version_object()  : stdClass
Return a version object from the current version info.
getRemote_information()  : mixed
Get information about the remote version
set_plugin_version()  : string
Set the current version of the addon that is installed.
set_update_request_path()  : mixed
Set the update path.

Properties

$current_version

public string $current_version

The current version installed by the user.

$plugin_slug

public string $plugin_slug

Plugin Slug (plugin_directory/plugin_file.php)

$remote_version

public string $remote_version

The current production version reported by the SLP upates server.

$update_request_path

public string $update_request_path

The plugin remote update path.

$uses_slplus

public bool $uses_slplus

Set to true (default) if the object needs access to the SLPlus plugin object.

Methods

__construct()

public __construct([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

__isset()

public __isset(string $property) : bool
Parameters
$property : string
Return values
bool

add_hooks_and_filters()

Add the WP and SLP hooks and filters.

public add_hooks_and_filters() : mixed

check_update()

Add our self-hosted autoupdate plugin to the filter transient

public check_update( $transient) : object
Parameters
$transient :
Return values
object

$ transient

get_instance()

Return an instance of the object which is also registered to the slplus global less the SLP_ part.

public static get_instance([bool $no_global = false ][, mixed $params = array() ]) : SLPlus_BaseClass_Object

TODO: PHP7.4 and PHP8.0 the static instance variable returns an object matching $class TODO: PHP8.1 the static instance continually returns the FIRST object (SLP_Admin_Helper) every time -- it is like PHP8.1 static instance is bound to base_class-object versus the calling class object

Parameters
$no_global : bool = false

set to true to skip assigning object to SLP global as a property.

$params : mixed = array()

object init params

Return values
SLPlus_BaseClass_Object

getRemote_version()

Return the remote version

public getRemote_version(string $slug) : string
Parameters
$slug : string
Return values
string

$remote_version

set_new_version_available()

Set a new version flag via the WP update_plugins transient.

public set_new_version_available() : mixed

set_properties()

Set our properties.

public set_properties([array<string|int, mixed> $options = array() ]) : mixed
Parameters
$options : array<string|int, mixed> = array()

show_update_notification()

show update notification row -- needed for multisite subsites, because WP won't tell you otherwise!

public show_update_notification(string $file, string $plugin) : mixed
Parameters
$file : string
$plugin : string

turn_off_ssl_verify()

Turn off SSL verification on plugin updates.

public turn_off_ssl_verify(array<string|int, mixed> $args, string $url) : array<string|int, mixed>
Parameters
$args : array<string|int, mixed>
$url : string
Return values
array<string|int, mixed>

initialize()

Do these things when this object is invoked. Override in your class.

protected initialize() : mixed

get_version_object()

Return a version object from the current version info.

private get_version_object() : stdClass

Run getRemove_version first.

Return values
stdClass

getRemote_information()

Get information about the remote version

private getRemote_information([string $slug = null ]) : mixed
Parameters
$slug : string = null
Return values
mixed

false if cannot get info, unserialized info if we could

set_plugin_version()

Set the current version of the addon that is installed.

private set_plugin_version(string $slug) : string
Parameters
$slug : string
Return values
string

set_update_request_path()

Set the update path.

private set_update_request_path(string $slug) : mixed
Parameters
$slug : string

        
On this page

Search results