| 包 | orm | 
|---|---|
| 类层次 | QDB_ActiveRecord_Association_Coll » QColl | 
| 实现的接口 | |
| 版本 | $Id: coll.php 1937 2009-01-05 19:09:40Z dualface $ | 
QDB_ActiveRecord_Association_Coll 封装了对象的关联关系,并且提供操作这些关联关系的方法
| 方法 | 描述 | 定义于 | 
|---|---|---|
| __construct() | 构造函数 | QColl | 
| createFromArray() | 从数组创建一个集合 | QColl | 
| values() | 遍历集合中的所有对象,返回包含特定属性值的数组 | QColl | 
| offsetExists() | 检查指定索引的对象是否存在,实现 ArrayAccess 接口 | QColl | 
| offsetGet() | 返回指定索引的对象,实现 ArrayAccess 接口 | QColl | 
| offsetSet() | 设置指定索引的对象,实现 ArrayAccess 接口 | QColl | 
| offsetUnset() | 注销指定索引的对象,实现 ArrayAccess 接口 | QColl | 
| shift() | Shift an element off the beginning of QColl | QColl | 
| current() | 返回当前位置的对象,实现 Iterator 接口 | QColl | 
| key() | 返回遍历时的当前索引,实现 Iterator 接口 | QColl | 
| next() | 遍历下一个对象,实现 Iterator 接口 | QColl | 
| rewind() | 重置遍历索引,实现 Iterator 接口 | QColl | 
| valid() | 判断是否是调用了 rewind() 或 next() 之后获得的有效对象,实现 Iterator 接口 | QColl | 
| count() | 返回对象总数,实现 Countable 接口 | QColl | 
| isEmpty() | 确定集合是否是空的 | QColl | 
| first() | 返回集合中的第一个对象,如果没有任何对象,则抛出异常 | QColl | 
| last() | 返回集合中的最后一个对象,如果没有任何对象,则抛出异常 | QColl | 
| append() | 追加数组或 QColl 对象的内容到集合中 | QColl | 
| search() | 查找符合指定属性值的对象,没找到返回 NULL | QColl | 
| toHashMap() | 将集合所有元素的值转换为一个名值对数组 | QColl | 
| getCols() | 返回指定键的所有值 | QColl | 
| __call() | 对集合中每一个对象调用指定的方法 | QColl |