Iterator: get current item.

@return array
491862
public function current()
    {
        if ($this->buffer === null) {
            $this->buffer = -2; // implicitly disable buffering from here on
        } elseif (is_array($this->buffer) && isset($this->buffer[$this->position])) {
            return $this->buffer[$this->position];
        }
        $data = $this->dataSource->current();
        
        if (is_array($this->buffer)) {
            $this->buffer[$this->position] = $data;
        }
        
        if ($this->returnType === self::TYPE_ARRAYOBJECT && is_array($data)) {
            $ao = clone $this->arrayObjectPrototype;
            if ($ao instanceof ArrayObject || method_exists($ao, 'exchangeArray')) {
                if ($ao instanceof AbstractModel) {
                    if(null === $this->array_prefix) {
                        $tab = [];
                        foreach ($data as $k => $v){
                            if(strpos($k, '$')!==false) {
                                $tab[] = explode('$', $k)[0];
                            }
                        }
                        $this->array_prefix = array_unique($tab);
                    }
                    $ao->setArrayPrefix($this->array_prefix);
                }
                $ao->exchangeArray($data);
            }
            $data = $ao;
        }
            
        if ($this->bufferArrayObjectPrototype && $this->buffer[$this->position] !== $data) {
            $this->buffer[$this->position] = $data;
        }

        return $data;
    }
697936
public function current()
    {
    	$data = $this->dbi->current();
		$class_name = $this->__class_name;
		$object = new $class_name($data['id']);
//		$object->set_id($data['id']);
		$object->data = $data;
		$object->set_is_loaded(true);
		return $object;
    }
465438
public function current()
    {
        if (array_key_exists($this->position, $this->results)) {
            return $this->results[$this->position];
        }
    }
35850
public function current()
    {
        if ($this->mode & self::CURRENT_AS_RESOURCE) {
            return current($this->resources);
        }

        if ($this->mode & self::CURRENT_AS_PATH) {
            return current($this->resources)->getPath();
        }

        return current($this->resources)->getName();
    }
1041239
public function current()
	{
		$doc = new DOMDocument();
		$object = simplexml_import_dom($doc->importNode($this->reader->expand(), true));
		return json_decode(json_encode($object));
	}
555649
public function iterate()
    {
        $this->current = $this->getNext();
        $this->key = $this->getNextKey();

        $valid = $this->current !== null;

        if ($valid) {
            $this->iterator->next();
        }

        return $valid;
    }
533660
protected function getNext()
    {
        if (!$this->current)
        {
            return null;
        }
        if ($this->next !== -1)
        {
            return $this->next;
        }
        $this->load();
        for ($i = 0; $i < count($this->items); $i++)
        {
            if ($this->items[$i]->id == $this->current->id)
            {
                if ($i + 1 < count($this->items))
                {
                    $this->next = $this->items[$i + 1];
                    return $this->next;
                }
                break;
            }
        }
        return null;
    }
639857
public function current()
    {
        $row = null;

        if ($this->valid()) {
            $row = $this->getRowData($this->index);
        }

        return $row;
    }
680641
protected function getVisibleItems()
    {
        if (count($this->data) <= $this->visibleCount) {
            return $this->data;
        }
        $visible = [];
        $iterator = (new ArrayObject($this->data))->getIterator();
        while (count($visible) < $this->visibleCount && $iterator->valid()) {
            $visible[] = $iterator->current();
            $iterator->next();
        }

        return $visible;
    }
964112
public function current()
    {
        $row = parent::current();

        if (!$this->_validValues) {
            return $row;
        }

        $pointer =& $row;
        foreach ($this->_path as $step) {
            if (!isset($pointer[$step])) {
                return $row;
            }
            $pointer =& $pointer[$step];
        }

        $pointer[$this->_target] = $this->_values->current();

        return $row;
    }
1109494
public function current()
    {
        $row = null;

        if ($this->valid()) {
            /* @var $schemaManager SchemaManager */
            $schemaManager = $this->schemaManager;

            $schemas = $schemaManager->listSchemas();

            $schema = $schemas[$this->index];

            $row = [
                'CATALOG_NAME' => null,
                'SCHEMA_NAME' => $schema,
                'DEFAULT_CHARACTER_SET_NAME' => null,
                'DEFAULT_COLLATION_NAME' => null,
                'SQL_PATH' => null,
            ];
        }

        return $row;
    }
992597
public function current()
    {
        $callback = $this->_callback;

        return $callback(parent::current(), $this->key(), $this->_innerIterator);
    }
16482
public function getCurrent()
    {
        if ($this->current === null) {
            $this->current = false;

            $item = $this->getFromSession();
            if (!$item) {
                $item = $this->getFromCookie();
            }

            if ($item && $this->checkAccessCurrent($item)) {
                $this->beforeSetCurrent($item);
                $this->setAndSaveCurrent($item);
            } else {
                $this->setCurrent($this->getCurrentDefault());
            }
        }

        return $this->current;
    }
1038937
public function current()
    {
        return isset($this->items[$this->pos]) ? $this->items[$this->pos] : null;
    }
91471
public function current() : array
    {
        return $this->result->fetch(\PDO::FETCH_ASSOC, \PDO::FETCH_ORI_ABS, $this->pointer);
    }
1212463
public function current()
    {
        $sKey = key($this->values);

        return (true === isset($this->values[$sKey])) ? $this->values[$sKey] : null;
    }
930411
public function current()
    {
        if (!$this->page) {
            $this->page = $this->executeCall();
        }

        if (isset($this->page['prefixes'])) {
            $this->updatePrefixes();
        }

        return $this->get($this->itemsPath, $this->page);
    }