AbleCloud PHP SDK  1.8.x
PHP SDK of AbleCloud API
Public 成员函数 | 所有成员列表
ACOtaVersion类 参考

Public 成员函数

 __construct ($currentVersion, $newVersion, $updateLog='')
 
 getCurrentVersion ()
 
 getNewVersion ()
 
 getUpdateLog ()
 
 canUpdate ()
 

详细描述

OTA版本信息。

构造及析构函数说明

◆ __construct()

ACOtaVersion::__construct (   $currentVersion,
  $newVersion,
  $updateLog = '' 
)

构造函数。

参数
$currentVersion字符串,表示当前版本号,如:1-0-1。
$newVersion字符串,表示新版本号,如:1-0-2。
$updateLog字符串,表示新版本的升级说明。

成员函数说明

◆ canUpdate()

ACOtaVersion::canUpdate ( )

检查是否可升级:检查新版本是否高于当前版本。

返回
返回TRUE表示新版本高于当前版本;否则返回FALSE。

◆ getCurrentVersion()

ACOtaVersion::getCurrentVersion ( )

取当前版本信息。

返回
返回一个字符串,表示当前版本。

◆ getNewVersion()

ACOtaVersion::getNewVersion ( )

取新版本信息。

返回
返回一个字符串,表示新版本。

◆ getUpdateLog()

ACOtaVersion::getUpdateLog ( )

取新版本的更新信息。

返回
返回一个字符串,表示新版本的升级信息。

该类的文档由以下文件生成: