Gets all flash values for the *next* request.

@param mixed $alt An alternative value to return if no flash values set.

@return mixed The flash values themselves.
332426
public function getAllFlashNext($alt = [])
    {
        $this->resumeSession();

        return $_SESSION[Session::FLASH_NEXT][$this->name] ?? $alt;
    }
258131
public function getFlash($key, $alt = null)
    {
        $this->resumeSession();

        return $_SESSION[Session::FLASH_NOW][$this->name][$key] ?? $alt;
    }
41113
private function altImagesToUnique()
    {
        if ($this->alternateImageUrls->count() === 0) {
            return;
        }
        $images = $this->getAlternateImageUrls();
        $resetImages = false;
        $duplicates = array_count_values($images);
        foreach ($duplicates as $val => $count) {
            if ($count > 1) {
                $resetImages = true;
                $images = array_unique($images);
                break;
            }
        }
        $key = array_search($this->getImageUrl(), $images, true);
        if ($key !== false) {
            $resetImages = true;
            unset($images[$key]);
        }
        if ($resetImages) {
            $this->setAlternateImageUrls(array_values($images));
        }
    }
1096798
public function image($url, $alt = null, $options = [])
    {
        $options['alt'] = $alt;

        return '<img src="'.$this->_generator->asset($url).'"'.self::attributes($options).'>';
    }
366766
protected function flashGet( $key ) {
		if ( isset( $this->slim->environment['slim.flash'] ) ) {
			return $this->slim->environment['slim.flash'][$key];
		} else {
			return null;
		}
	}
1218991
public function getFlashData($key = null)
    {
        if ($key === null) {
            return $this->lastFlashData;
        }

        return isset($this->lastFlashData[$key]) ? $this->lastFlashData[$key] : null;
    }
731222
public function setImage($src, $alt = null)
    {
        $this->image = new Element('img');

        if (strpos($src, 'holder.js') !== false) {
            $parts = explode('/', $src);
            $size = end($parts);
            $this->image->attributes->addAttribute('data-src', $src);

            $alt = empty($alt) ? $size : $alt;
        } else {
            $this->image->attributes->addAttribute('src', $src);
        }

        $this->image->attributes->addAttribute('alt', $alt);

        return $this;
    }
611367
public function url($return = null, $altRealm = null)
    {
        $useHttps = !empty($_SERVER['HTTPS']) || (!empty($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https');
        if (!is_null($return)) {
            if (!$this->validateUrl($return)) {
                throw new Exception('The return URL must be a valid URL with a URI Scheme or http or https.');
            }
        }
        else {
            if($altRealm == null)
                $return = ($useHttps ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME'];
            else
                $return = $altRealm . $_SERVER['SCRIPT_NAME'];
        }

        $params = array(
            'openid.ns'         => 'http://specs.openid.net/auth/2.0',
            'openid.mode'       => 'checkid_setup',
            'openid.return_to'  => $return,
            'openid.realm'      => $altRealm != null ? $altRealm : (($useHttps ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST']),
            'openid.identity'   => 'http://specs.openid.net/auth/2.0/identifier_select',
            'openid.claimed_id' => 'http://specs.openid.net/auth/2.0/identifier_select',
        );

        return self::$openId . '?' . http_build_query($params);
    }
1185367
public function getCurrent(string $name, $alt = null)
    {
        return $this->curr->get($name, $alt);
    }
1204246
public function allFlashes()
    {
        if ( ! $this->isOpened()) {
            $this->start();
        }
        if (!empty($this->old_flashes)) {
            $_oldf = $this->old_flashes;
            $this->old_flashes = array();
            return $_oldf;
        }
        return null;
    }
652412
public function get($key, $valueDefault = null)
    {
        if (is_array($key)) {
            $values = [];
            foreach ($key as $key) {
                $values[$key] = array_key_exists($key, $_SESSION[$this->name])
                    ? $_SESSION[$this->name][$key] : $valueDefault;
            }
            return $values;
        }

        return array_key_exists($key, $_SESSION[$this->name])
            ? $_SESSION[$this->name][$key] : $valueDefault;
    }
1033872
public function get($key, $defaultValue = array())
    {
        $this->populateFlash($key);

        if ($this->has($key)) {
            return $this->data[$key];
        }

        return $defaultValue;
    }
951439
public function get($action, $alt = "xml")
    {
        if (array_key_exists($action, $this->actions)) {
            if (!in_array($alt, $this->actions[$action])) {
                throw new \Exception("Invalid Format: ". $alt);
            }
            $response = $this->client->get('/'. strtolower(get_class($this)) .'/'.$this->name. '/' .$action, $alt);
            return $response;
        } else {
            throw new \Exception("Invalid Action: ". $action);
        }
    }
731696
public function resource($name, $alt = "xml")
    {
        $response = $this->client->get('/project/'.$this->name. '/resource/' .$name, $alt);
        return $response;
    }
841115
public function flash($message = null)
    {
        // set
        if ($message !== null) {
            $this->set('@flash', $message);
        } else { // get
            $message = $this->get('@flash');
            $this->remove('@flash');
            return $message;
        }
    }
1121172
public function getNextUrl($absolute = false)
    {
        return $this->hasNext() ? $this->getUrl($this->getNext(), $absolute) : null;
    }
421851
public function flash($key, $value)
    {
        return $this->session->flash($this->getSessionKey($key), $value);
    }