public function purgeCurrent()
    {
        if (!$this->valid()) {
            return;
        }

        if ($this->current()->hasUid()) {
            $uid = $this->current()->getUid();
            if (isset($this->uids[$uid])) {
                unset($this->uids[$uid]);
            }
        }

        $this->detach($this->current());

        $this->markAsDirty();
    }
public function purgeCurrent()
    {
        if (!$this->valid()) {
            return;
        }

        if ($this->current()->hasUid()) {
            $uid = $this->current()->getUid();
            if (isset($this->uids[$uid])) {
                unset($this->uids[$uid]);
            }
        }

        $this->detach($this->current());

        $this->markAsDirty();
    }
public function purgeCurrent ( ) { if ( ! $ this -> valid ( ) ) { return ; } if ( $ this -> current ( ) -> hasUid ( ) ) { $ uid = $ this -> current ( ) -> getUid ( ) ; if ( isset ( $ this -> uids [ $ uid ] ) ) { unset ( $ this -> uids [ $ uid ] ) ; } } $ this -> detach ( $ this -> current ( ) ) ; $ this -> markAsDirty ( ) ; }
Drops the current element from the list and sets the pointer to the
next element.

If the pointer does not point to a valid element, this function is a
no-op.

@return void
Drops the current element from the list and sets the pointer to the next element .