protected function firstrun()
 {
     $data = new \SplStack();
     foreach ($this->source as $val) {
         $data->push($val);
     }
     parent::__construct($data);
 }
 public function firstrun()
 {
     $lookup = new LookupIterator($this->aiterator, $this->keyselect, $this->elementselect, $this->ismatch);
     if ($this->resultselect) {
         $resultsel = $this->resultselect;
         $lookup = new TransformIterator($lookup, function (GroupIterator $group) use($resultsel) {
             return call_user_func_array($resultsel, array($group->groupkey, $group));
         });
         parent::__construct($lookup);
     } else {
         parent::__construct($lookup);
     }
 }
Beispiel #3
0
 public function firstrun()
 {
     parent::__construct(new \ArrayIterator($this->elements));
 }