AbleCloud PHP SDK  1.8.x
PHP SDK of AbleCloud API
Public 成员函数 | Protected 成员函数 | 所有成员列表
ACService类 参考
类 ACService 继承关系图:
Inheritance graph
[图例]

Public 成员函数

 __construct ($name, $version, $context)
 
 getName ()
 
 getVersion ()
 
 getContext ()
 
 getLastError ()
 

Protected 成员函数

 resetLastError ($errCode=0, $errMessage='')
 

详细描述

AbleCloud服务。

构造及析构函数说明

◆ __construct()

ACService::__construct (   $name,
  $version,
  $context 
)

构造函数。

参数
$namestring 服务的名字。字符串。
$versionint 服务的主版本值。整数。
$contextACContext 表示访问该远程服务所依赖的环境信息。

成员函数说明

◆ getContext()

ACService::getContext ( )

取访问该服务所依赖的环境信息。

返回
ACContext 返回ACContext对象,表示环境信息。

◆ getLastError()

ACService::getLastError ( )

取最近一次错误消息。

返回
array 返回一个包含错误码和消息的关联数组:['errCode': 0, 'errMessage': '']。errCode为0时表示没有错误发生。

◆ getName()

ACService::getName ( )

取服务的名字。

返回
string 返回服务的名字。

◆ getVersion()

ACService::getVersion ( )

取服务的主版本值。

返回
int 返回一个整数,表示服务的主版本值。

◆ resetLastError()

ACService::resetLastError (   $errCode = 0,
  $errMessage = '' 
)
protected

重置错误信息。

参数
$errCodeint 错误消息码。
$errMessagestring 消息内容。

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