function _ensureCollection() { if(!$this->collection) { $iterator =& $this->dao->fetch(); for($iterator->rewind();$iterator->valid();$iterator->next()) { $object =& LimbHandle :: resolve($this->class_handle); $record =& $iterator->current(); $this->mapper->load($record, $object); $this->collection[] =& $object; } } }
function LimbHandle($class, $args = array()) { parent :: Handle(LimbHandle :: _processClass($class), $args); }