Get current item.

@return mixed current value depending on CURRENT_* flags
437579
public function current()
    {
        switch ($this->flags & 0x0F) {
            default:
            case self::CURRENT_ARRAY:
                return [$this->lhs->current(), $this->rhs->current()];
            case self::CURRENT_LHS:
                return $this->lhs->current();
            case self::CURRENT_RHS:
                return $this->rhs->current();
            case self::CURRENT_0:
                return null;
        }
    }
412266
public function current()
    {
        $extractor = $this->_value;
        $current = $this->_fetchCurrent();
        $spacer = str_repeat($this->_spacer, $this->getDepth());

        return $spacer . $extractor($current, parent::key(), $this);
    }
149820
public function current()
	{
		if ( is_null( $this->facts ) )
		{
			return null;
		}

		$fact = $this->facts->current();
		$this->yieldedFact = $fact;

		return $fact;
	}
495006
public function current()
    {
        $port = Current::port();
        if (! $port || ! $prefix = $port->prefix()) {
            return $this->to($this->request->getPathInfo());
        }

        return $this->to($this->getPathInfo());
    }
1176898
public function current()
    {
        if (!$this->valid()) {
            return null;
        }

        if (null === $this->valueMapper) {
            return parent::current();
        }

        $map = $this->valueMapper;
        return $map(parent::current(), parent::key());
    }
481539
public function current()
	{
		if ( is_callable($this->callback) ) {
			$tmp = $this->issues[$this->offset];
			$callback = $this->callback;

			return $callback($tmp);
		}
		else {
			return $this->issues[$this->offset];
		}
	}
912831
public function current()
    {
        return isset($this->items[$this->counter]) ? $this->items[$this->counter] : false;
    }
741999
public function current()
    {
        if (isset($this->keys[$this->pos])) {
            return $this->getAt($this->keys[$this->pos]);
        }
        return null;
    }
342866
public function current()
    {
        $page = $this->pageIterator->current();

        return isset($page[$this->pageIndex])
            ? $page[$this->pageIndex]
            : null;
    }
470198
public function current()
    {
        return isset($this->mappedEnums[$this->iteratorIndex])
            ? $this->valueMap[$this->mappedEnums[$this->iteratorIndex]->getConstName()]
            : null;
    }
1149432
public function current()
    {
        $offset = 0;

        foreach ($this->observer as $observer) {
            if ($offset === $this->position) {
                return $observer;
            }
            ++$offset;
        }
    }
902115
public function current()
    {
        if (!isset($this->rs)) {
            $this->doRs();
        }

        return $this->rs[$this->currentKey];
    }
655188
final public function current()
    {
        if ($this->position === -1) {
            $this->next();
        }

        Util::ensure(
            true,
            array_key_exists($this->position, $this->results),
            '\OutOfBoundsException',
            ['Collection contains no element at current position']
        );

        return call_user_func_array($this->loader, [$this->results[$this->position]]);
    }
91471
public function current() : array
    {
        return $this->result->fetch(\PDO::FETCH_ASSOC, \PDO::FETCH_ORI_ABS, $this->pointer);
    }
1238842
public function current()
    {
        $consumeValue = $this->valueConsumer;
        $current = parent::current();
        $consumeValue($current);
        return $current;
    }
394891
public function get_current_instance() {
        if ($this->get_status() == self::INSTANCE_STATUS_ACTIVE || $this->get_status() == self::INSTANCE_STATUS_NEEDUPDATE) {
            return $this;
        }
        return $this->get_controller()->get_current_instance($this->data->raterid, $this->data->itemid);
    }
781985
public static function get(){
        if(empty(self::$currentMode)){
            self::$currentMode = self::getCurrentMode();
        }
        return self::$currentMode;
    }