Esempio n. 1
0
 protected function firstrun()
 {
     $data = new \SplStack();
     foreach ($this->source as $val) {
         $data->push($val);
     }
     parent::__construct($data);
 }
Esempio n. 2
0
 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);
     }
 }
Esempio n. 3
0
 public function firstrun()
 {
     parent::__construct(new \ArrayIterator($this->elements));
 }