Return the data URI.

@return string
336736
public function getDataUri()
    {
        if (empty($this->image)) {
            $this->create();
        }

        ob_start();
        call_user_func('image'.$this->image_type, $this->image);
        $contents = ob_get_clean();

        return 'data:image/'.$this->image_type.';base64,'.base64_encode($contents);
    }
1307049
public function getData()
    {
        $properties = $this->formProperties;

        foreach ($properties as $index => $property) {
            if ($this->doesExist() && $property['uri'] == 'http://www.tao.lu/Ontologies/generis.rdf#login') {
                $properties[$index]['widget'] = 'http://www.tao.lu/datatypes/WidgetDefinitions.rdf#Readonly';
                break;
            }
        }

        if ($this->doesExist()) {
            foreach ($properties as $key => $property) {
                if ($property['uri'] == GenerisRdf::PROPERTY_USER_PASSWORD && isset($property['value'])) {
                    $properties[$key]['value'] = '';
                    break;
                }
            }
        }

        return [
            self::PROPERTIES => $properties,
            self::RANGES => $this->ranges,
        ];
    }
56608
protected function getURLData()
    {
        $data = base64_encode(file_get_contents($this->src));
        $im = getimagesize($this->src);
        $data = "data:" . $im['mime'] . ";base64," . $data;

        return $data;
    }
601448
public function getCurrentUri() : string
    {
        $basePath = $this->getBaseUrl();
        $uri = $this->currentUrl;

        $this->base = $basePath;
        $uri = substr($uri, strlen($basePath));

        // Don't take query params into account on the URL
        if (strstr($uri, '?')) {
            $uri = substr($uri, 0, strpos($uri, '?'));
        }

        // Remove trailing slash + enforce a slash at the start
        $uri = '/'.trim($uri, '/');

        return $uri;
    }
460889
public function getRequestUri() {

		if (NULL === $this->requestUri) {
			$this->requestUri = $this->prepareRequestUri();
		}

		return $this->requestUri;

	}
979115
public function uri() {
		$uri = self::uriTrim();
		$webRoot = self::webRoot();
		$uri = str_replace($webRoot, '', $uri);
		$uri = trim($uri, '/');
		return $uri;
	}
734036
public static function getUri() {
        if (self::$_uri === null) {
            $uri = explode('?', $_SERVER['REQUEST_URI'], 2)[0];
            self::$_uri = self::fixUri(substr($uri, strlen(BASE_URI)));
        }
        return self::$_uri;
    }
1010531
public function findUri()
	{
		$uri = parse_url($_SERVER["REQUEST_URI"], PHP_URL_PATH);

		return ($this->lowerCase) ? strtolower($uri) : $uri;
	}
90542
public function getRequestedURI()
    {
        $endpoint = parse_url($this->apiEndpoint);

        // Replace Path of endpoint with requested path from curl
        $header = explode(' ', $this->curl->request_headers[0]);
        $endpoint['path'] = $header[1];

        return $endpoint['scheme'].'://'.$endpoint['host'].$endpoint['path'];
    }
1117325
public function getRedirectUri()
    {
        // find ? in redirect uri and determine if is last character
        // if not, we assume that there are query params so we add &
        // otherwise just add http query params
        $uri = $this->authorizationCode->getRedirectUri();
        $state = $this->authorizationCode->getState();
        $query = strpos($uri, '?');

        if ($query === false) {
            $uri .= '?';
        } else if ($query !== strlen($uri) - 1) {
            $uri .= '&';
        }

        return $uri . http_build_query(
            ['code' => $this->authorizationCode->getId()] + ($state ? ['state' => $state] : [])
        );
    }
1130164
public function getUri() {

		if (NULL !== $qs = $this->getQueryString()) {
			$qs = '?' . $qs;
		}

		return $this->getSchemeAndHttpHost() . $this->getBaseUrl() . $this->getPathInfo() . $qs;

	}
939148
private function uriTrim() {
		$uri = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '';
		$uri = trim($uri, '/\^$');
		if(strpos($uri,'?')) $uri = substr($uri,0,strpos($uri,'?'));
		return $uri;
	}
782287
public function uri()
    {
        $uri = (!empty($this->url['scheme']) ? $this->url['scheme'] . '://' : Server::getInstance()->get('scheme', ''));
        $uri .= (!empty($this->url['user']) ? $this->url['user'] . ':' . $this->url['pass'] . '@' : '');
        $uri .= (!empty($this->url['host']) ? $this->url['host'] : Server::getInstance()->get('host', ''));
        $uri .= (!empty($this->url['port']) ? ':' . $this->url['port'] : '');
        $uri .= (!empty($this->url['path']) ? $this->url['path'] : '');
        $uri .= (!empty($this->url['query']) ? '?' . $this->url['query'] : '');
        $uri .= (!empty($this->url['fragment']) ? '#' . $this->url['fragment'] : '');

        return $uri;
    }
255383
public function getUri()
    {
        $schema = "http";

        if ($this->isSecure) {
            $schema = "https";
        }
        
        $uri = sprintf(
            "%s://%s%s",
            $schema,
            $this->serverName,
            $this->path
        );
        
        return new Uri($uri);
    }
1132425
protected function getBaseUrl()
    {
        $uri = '';

        $scheme = $this->getScheme();
        if ($scheme !== '') {
            $uri .= $scheme . ':';
        }

        $authority = $this->getAuthority();
        if ($authority !== '' || $scheme === 'file') {
            $uri .= '//' . $authority;
        }

        return $uri;
    }
686315
public function getUrl()
    {
        if ($this->findDocumentRootInScriptFileName() === $this->removeLastSlash($this->root)) {
            return $this->getRequestUri();
        }
        $path = $this->server->get('PATH_INFO');

        return $path;
    }
407557
public function getUri()
    {
        if ( $this->hasChildren() )
        {
            foreach( $this->getChildren() as $child )
            {
                $uri = $child->getUri();

                if ( '#' != $uri[0] )
                {
                    return $uri;
                }
            }
        }
        else
        {
            return '#';
        }
    }