Метод | Описание | |
---|---|---|
add ( string $name, string $beaconid, string $current_version ) : boolean | Add a beaconid to the list of beaconids to version-check. | |
check ( ) : array | Perform a check of all beaconids. | |
check_plugins ( ) | Compare the current set of plugins with those we last checked for updates. | |
cron ( null $cronjob = null ) : boolean | Endpoint for the update-check cronjob. | |
filter_unchanged ( array $beacon ) : boolean | Return true if the beacon data contains updates from the server | |
updates_available ( string $guid = null ) : boolean | Return all available updates, or the updates available for a single GUID. |
Метод | Описание | |
---|---|---|
instance ( ) | Enables singleton working properly |
Метод | Описание | |
---|---|---|
add_plugins ( ) | Loop through all the active plugins and add their information to the list of plugins to check for updates. | |
add_theme ( ) | Add the currently active theme's information to the list of beacons to check for updates. | |
register_beacons ( ) | Register beacons to check for updates. |
public static add ( string $name, string $beaconid, string $current_version ) : boolean | ||
$name | string | the name of the component that will be checked |
$beaconid | string | the id of the beacon to check |
$current_version | string | the current version of the resource represented by this beaconid |
Результат | boolean |
public static check_plugins ( ) |
public static filter_unchanged ( array $beacon ) : boolean | ||
$beacon | array | the beacon data from the $beacons array |
Результат | boolean | true if there are updates available for this beacon |
protected static instance ( ) |
public static updates_available ( string $guid = null ) : boolean | ||
$guid | string | A GUID to return available updates for. |
Результат | boolean | Array of all available updates if no GUID is specified. |