메소드 | 설명 | |
---|---|---|
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 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 |
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. |