PocketMine-MP 5.21.2 git-a6534ecbbbcf369264567d27e5ed70f7f5be9816
|
Public Member Functions | |
__construct (Server $server, string $endpoint) | |
checkUpdateCallback (UpdateInfo $updateInfo) | |
checkUpdateError (string $error) | |
doCheck () | |
getChannel () | |
getEndpoint () | |
getUpdateInfo () | |
hasUpdate () | |
showConsoleUpdate () | |
Protected Member Functions | |
checkUpdate (UpdateInfo $updateInfo) | |
printConsoleMessage (array $lines, string $logLevel=\LogLevel::INFO) | |
showChannelSuggestionBeta () | |
showChannelSuggestionStable () | |
Protected Attributes | |
string | $endpoint |
Server | $server |
UpdateInfo | $updateInfo = null |
Definition at line 35 of file UpdateChecker.php.
pocketmine\updater\UpdateChecker::__construct | ( | Server | $server, |
string | $endpoint ) |
Definition at line 42 of file UpdateChecker.php.
|
protected |
Checks the update information against the current server version to decide if there's an update
Definition at line 140 of file UpdateChecker.php.
pocketmine\updater\UpdateChecker::checkUpdateCallback | ( | UpdateInfo | $updateInfo | ) |
Callback used at the end of the update checking task
Definition at line 59 of file UpdateChecker.php.
References pocketmine\server(), and pocketmine\updater\UpdateChecker\showConsoleUpdate().
Referenced by pocketmine\updater\UpdateCheckTask\onCompletion().
pocketmine\updater\UpdateChecker::checkUpdateError | ( | string | $error | ) |
Definition at line 52 of file UpdateChecker.php.
pocketmine\updater\UpdateChecker::doCheck | ( | ) |
Schedules an AsyncTask to check for an update.
Definition at line 133 of file UpdateChecker.php.
References pocketmine\server().
pocketmine\updater\UpdateChecker::getChannel | ( | ) |
Returns the channel used for update checking (stable, beta, dev)
Definition at line 160 of file UpdateChecker.php.
References pocketmine\server().
pocketmine\updater\UpdateChecker::getEndpoint | ( | ) |
Returns the host used for update checks.
Definition at line 167 of file UpdateChecker.php.
pocketmine\updater\UpdateChecker::getUpdateInfo | ( | ) |
Returns the last retrieved update data.
Definition at line 126 of file UpdateChecker.php.
pocketmine\updater\UpdateChecker::hasUpdate | ( | ) |
Returns whether there is an update available.
Definition at line 78 of file UpdateChecker.php.
|
protected |
string[] | $lines |
Definition at line 117 of file UpdateChecker.php.
|
protected |
Definition at line 107 of file UpdateChecker.php.
|
protected |
Definition at line 100 of file UpdateChecker.php.
pocketmine\updater\UpdateChecker::showConsoleUpdate | ( | ) |
Posts a warning to the console to tell the user there is an update available
Definition at line 85 of file UpdateChecker.php.
Referenced by pocketmine\updater\UpdateChecker\checkUpdateCallback().
|
protected |
Definition at line 38 of file UpdateChecker.php.
|
protected |
Definition at line 37 of file UpdateChecker.php.
|
protected |
Definition at line 39 of file UpdateChecker.php.