/** * Setter for DbItem ids of DbCollections * * @param void $ids unique DbObject id * * @return $this for more fluent interface */ public final function setIds(array $ids) { $ids = array_unique($ids); foreach ($ids as $k => $id) { $ids[$k] = BaseZF_DbItem::getIdFromExtendedId($id); } $this->_ids = $ids; foreach ($this as $item) { } // create DbItem object for each id if not exist $this->rewind(); return $this; }