Inheritance diagram for Update:
Collaboration diagram for Update:Static Public Member Functions | |
| static | add ($name, $beaconid, $current_version) |
| static | check () |
| static | cron ($cronjob=null) |
| static | check_plugins () |
| static | updates_available ($guid=null) |
Public Attributes | |
| const | UPDATE_URL = 'https://beacon.habariproject.org/' |
Static Protected Member Functions | |
| static | instance () |
Checks for updates to Habari and its libraries
public
Definition at line 9 of file update.php.
| static Update::add | ( | $ | name, | |
| $ | beaconid, | |||
| $ | current_version | |||
| ) | [static] |
Add a beaconid to the list of beaconids to version-check.
| string | $name the name of the component that will be checked | |
| string | $beaconid the id of the beacon to check | |
| string | $current_version the current version of the resource represented by this beaconid |
Definition at line 33 of file update.php.
| static Update::check | ( | ) | [static] |
Perform a check of all beaconids. Notifies update_check plugin hooks when checking so that they can add their beaconids to the list.
| Exception |
Definition at line 60 of file update.php.
Referenced by cron().
| static Update::check_plugins | ( | ) | [static] |
Compare the current set of plugins with those we last checked for updates. This is run by AdminHandler on every page load to make sure we always have fresh data on the dashboard.
Definition at line 258 of file update.php.
Referenced by AdminHandler::__construct().
| static Update::cron | ( | $ | cronjob = null |
) | [static] |
Endpoint for the update-check cronjob. Loads beacons, checks for updates from hp.o, and saves any updates to the DB.
| null | $cronjob Unused. The CronJob object being executed when being run as cron. |
Definition at line 182 of file update.php.
| static Update::instance | ( | ) | [static, protected] |
Enables singleton working properly
Reimplemented from Singleton.
Definition at line 21 of file update.php.
| static Update::updates_available | ( | $ | guid = null |
) | [static] |
Return all available updates, or the updates available for a single GUID.
| string | $guid A GUID to return available updates for. |
Definition at line 288 of file update.php.
1.7.1