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

Public 成员函数

 __construct ($name, $version, $context, $scanner)
 
 next ()
 
- Public 成员函数 继承自 ACService
 __construct ($name, $version, $context)
 
 getName ()
 
 getVersion ()
 
 getContext ()
 
 getLastError ()
 

额外继承的成员函数

- Protected 成员函数 继承自 ACService
 resetLastError ($errCode=0, $errMessage='')
 

详细描述

AbleCloud存储服务查询结果集合的迭代器。

构造及析构函数说明

◆ __construct()

ACStoreIterator::__construct (   $name,
  $version,
  $context,
  $scanner 
)

构造函数。

参数
$name数据存储服务的名字。
$version数据存储服务的版本。
$contextACContext对象,表示访问该远程服务所依赖的环境信息。
$scannerACStoreScanner对象,表示查询条件。

成员函数说明

◆ next()

ACStoreIterator::next ( )

取查询结果集合中的下一批数据记录。返回NULL时表示已遍历完整个数据集。

实际上,当前第一次调用本方法就返回所有符合条件的记录,因此不用多次调用来检查是否已取到了所有数据。

返回
- 返回一个数组。数组中的每个元素是一个关联数组,表示一条数据记录。
  • 返回NULL表示已遍历完整个集合。
  • 返回FALSE时,表示有错误发生。此时可调用getLastError()方法获取错误消息。

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