コード例 #1
0
 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;
     }
 }
コード例 #2
0
ファイル: Iterator.php プロジェクト: googlecode-mirror/orso
 /**
  * returns the current record
  *
  * @return Doctrine_Record
  */
 public function current()
 {
     return $this->collection->get($this->key);
 }