/**
  * Skips the next item in the iterator
  *
  * @return void
  * @public
  */
 function skipNext()
 {
     if ($this->hasNext()) {
         $this->_i++;
     } else {
         throwError(new Error(SharedException::NO_MORE_ITERATOR_ELEMENTS(), get_class($this), true));
     }
 }
 /**
  * Return the next Entry.
  *  
  * @return object Entry
  * 
  * @throws object LoggingException An exception with one of the
  *         following messages defined in org.osid.logging.LoggingException
  *         may be thrown:   {@link
  *         org.osid.logging.LoggingException#UNIMPLEMENTED UNIMPLEMENTED},
  *         {@link org.osid.logging.LoggingException#OPERATION_FAILED
  *         OPERATION_FAILED}, {@link
  *         org.osid.logging.LoggingException#CONFIGURATION_ERROR
  *         CONFIGURATION_ERROR}, {@link
  *         org.osid.logging.LoggingException#PERMISSION_DENIED
  *         PERMISSION_DENIED}, {@link
  *         org.osid.logging.LoggingException#NO_MORE_ITERATOR_ELEMENTS
  *         NO_MORE_ITERATOR_ELEMENTS}
  * 
  * @access public
  */
 function next()
 {
     if (!$this->hasNext()) {
         throwError(new Error(SharedException::NO_MORE_ITERATOR_ELEMENTS(), get_class($this), true));
     }
     if (!isset($this->_entries[$this->_current])) {
         $this->loadNext();
     }
     $entry = $this->_entries[$this->_current];
     $this->_current++;
     return $entry;
 }
 /**
  * Skips the next item in the iterator
  *
  * @return void
  * @public
  */
 function skipNext()
 {
     for ($i = max(0, $this->_i); $i < count($this->_elements); $i++) {
         if ($this->_elements[$i]->hasNext()) {
             $this->_elements[$i]->skipNext();
             return;
         } else {
             $this->_i++;
         }
     }
     throwError(new Error(SharedException::NO_MORE_ITERATOR_ELEMENTS(), get_class($this), 1));
 }