public function current() {

        if (!$this->recordset->valid()) {
            return false;
        }

        if (!$record = $this->recordset->current()) {
            return false;
        }

        // Apply callback and return.
        if (!is_null($this->callbackextra)) {
            return call_user_func($this->callback, $record, $this->callbackextra);
        } else {
            return call_user_func($this->callback, $record);
        }
    }
public function current() {

        if (!$this->recordset->valid()) {
            return false;
        }

        if (!$record = $this->recordset->current()) {
            return false;
        }

        // Apply callback and return.
        if (!is_null($this->callbackextra)) {
            return call_user_func($this->callback, $record, $this->callbackextra);
        } else {
            return call_user_func($this->callback, $record);
        }
    }
public function current ( ) { if ( ! $ this -> recordset -> valid ( ) ) { return false ; } if ( ! $ record = $ this -> recordset -> current ( ) ) { return false ; } // Apply callback and return. if ( ! is_null ( $ this -> callbackextra ) ) { return call_user_func ( $ this -> callback , $ record , $ this -> callbackextra ) ; } else { return call_user_func ( $ this -> callback , $ record ) ; } }
Returns the current element after applying the callback.

@return mixed|bool The returned value type will depend on the callback.
Returns the current element after applying the callback .