private function updateLevel() { if (!(isset($this->options['include_record']) && $this->options['include_record'] && $this->index == 0)) { $left = $this->collection->get($this->key)->getNode()->getLeftValue(); $this->level += $this->prevLeft - $left + 2; $this->prevLeft = $left; } }
/** * returns the current record * * @return Doctrine_Record */ public function current() { return $this->collection->get($this->key); }