ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\Data\URI Class Reference

The scope of this class is split ilias-conform URI's into components. More...

+ Collaboration diagram for ILIAS\Data\URI:

Public Member Functions

 __construct (string $uri_string)
 
 getSchema ()
 
 withSchema (string $schema)
 Get URI with modified schema. More...
 
 getAuthority ()
 
 withAuthority (string $authority)
 Get URI with modified authority. More...
 
 getPort ()
 
 withPort (?int $port=null)
 Get URI with modified port. More...
 
 getHost ()
 
 withHost (string $host)
 Get URI with modified host. More...
 
 getPath ()
 
 withPath (?string $path=null)
 Get URI with modified path. More...
 
 getQuery ()
 
 withQuery (?string $query=null)
 Get URI with modified query. More...
 
 getFragment ()
 
 withFragment (?string $fragment=null)
 Get URI with modified fragment. More...
 
 getBaseURI ()
 Get a well-formed URI consisting only of schema, authority and port. More...
 
 __toString ()
 
 getParameters ()
 Get all parameters as associative array. More...
 
 getParameter (string $param)
 Get the value of the given parameter (or null) More...
 
 withParameters (array $parameters)
 Get URI with modified parameters. More...
 
 withParameter (string $key, $value)
 Get URI with modified parameters. More...
 

Protected Member Functions

 digestSchema (string $schema)
 Check schema formating. More...
 
 digestHost (string $host)
 Check host formating. More...
 
 digestPort (?int $port=null)
 Check port formating. More...
 
 digestPath (?string $path=null)
 Check path formating. More...
 
 digestQuery (?string $query=null)
 Check query formating. More...
 
 digestFragment (?string $fragment=null)
 Check fragment formating. More...
 
 checkCorrectFormatOrThrow (string $regexp, string $string)
 Check wether a string fits a regexp. More...
 

Protected Attributes

string $schema
 
string $host
 
int $port
 
string $path
 
string $query
 
string $fragment
 

Private Attributes

const PATH_DELIM = '/'
 
const ALPHA = '[A-Za-z]'
 Relevant character-groups as defined in RFC 3986 Appendix 1. More...
 
const DIGIT = '[0-9]'
 
const ALPHA_DIGIT = '[A-Za-z0-9]'
 
const HEXDIG = '[0-9A-Fa-f]'
 
const PCTENCODED = '%' . self::HEXDIG . self::HEXDIG
 
const PIMP = '[\\+\\-\\.]'
 point|minus|plus to be used in schema. More...
 
const SUBDELIMS = '[\\$,;=!&\'\\‍(\\‍)\\*\\+]'
 valid subdelims according to RFC 3986 Appendix 1: "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "=" More...
 
const BASEURI_SUBDELIMS = '[\\$,;&\'\\*]'
 subdelims without jsf**k characters +!() and = More...
 
const UNRESERVED = self::ALPHA_DIGIT . '|[\\-\\._~]'
 
const UNRESERVED_NO_DOT = self::ALPHA_DIGIT . '|[\\-_~]'
 
const PCHAR = self::UNRESERVED . '|' . self::SUBDELIMS . '|' . self::PCTENCODED
 
const SCHEMA = '#^' . self::ALPHA . '(' . self::ALPHA_DIGIT . '|' . self::PIMP . ')*$#'
 
const DOMAIN_LABEL = self::ALPHA_DIGIT . '((' . self::UNRESERVED_NO_DOT . '|' . self::PCTENCODED . '|' . self::BASEURI_SUBDELIMS . ')*' . self::ALPHA_DIGIT . ')*'
 
const HOST_REG_NAME = '^' . self::DOMAIN_LABEL . '(\\.' . self::DOMAIN_LABEL . ')*$'
 
const HOST_IPV4_EMBEDDED = '(' . self::DIGIT . '{1,3})(\\.' . self::DIGIT . '{1,3}){3}'
 
const HOST_IPV4 = '^' . self::HOST_IPV4_EMBEDDED . '$'
 
const IPV6_COUNT_COLONS = '(' . self::HEXDIG . '{1,4}:)'
 
const IPV6_COLONS_BETWEEN = '(' . self::HEXDIG . '{0,4}:' . self::HEXDIG . '{0,4})'
 
const IPV6_LEFT_SHORT = '(' . self::HEXDIG . '{1,4}|' . self::HEXDIG . '{1,4}(:' . self::HEXDIG . '{1,4})*)?'
 
const HOST_IPV6_LONG = '^\\[' . self::IPV6_COUNT_COLONS . '{7}' . self::HEXDIG . '{1,4}\\]$'
 
const HOST_IPV6_SHORT
 
const HOST_IPV6_EMBEDDED_IPV4_LONG = '^\\[' . self::IPV6_COUNT_COLONS . '{5}' . self::HEXDIG . '{1,4}:' . self::HOST_IPV4_EMBEDDED . '\\]$'
 
const HOST_IPV6_EMBEDDED_IPV4_SHORT
 
const HOST_IPV6_EMBEDDED_IPV4 = self::HOST_IPV6_EMBEDDED_IPV4_SHORT . '|' . self::HOST_IPV6_EMBEDDED_IPV4_LONG
 
const HOST_IPV6 = self::HOST_IPV6_LONG . '|' . self::HOST_IPV6_SHORT . '|' . self::HOST_IPV6_EMBEDDED_IPV4
 
const HOST = '#' . self::HOST_IPV4 . '|' . self::HOST_REG_NAME . '|' . self::HOST_IPV6 . '#'
 
const PORT = '#^' . self::DIGIT . '+$#'
 
const PATH = '#^(?!//)(?!:)(' . self::PCHAR . '|' . self::PATH_DELIM . ')+$#'
 
const QUERY = '#^(' . self::PCHAR . '|' . self::PATH_DELIM . '|\\?)+$#'
 
const FRAGMENT = '#^(' . self::PCHAR . '|' . self::PATH_DELIM . '|\\?|\\#)+$#'
 

Detailed Description

The scope of this class is split ilias-conform URI's into components.

Please refer to RFC 3986 for details. Notice, ilias-confor URI's will form a SUBSET of RFC 3986:

  • Notice the restrictions on baseuri-subdelims.
  • We require a schema and an authority to be present.
  • If any part is located and it is invalid an exception will be thrown instead of just omiting it.
  • IPv6 is now supported.
  • The IPv6 conforms to https://datatracker.ietf.org/doc/html/rfc4291#section-2.2.

Definition at line 34 of file URI.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Data\URI::__construct ( string  $uri_string)

Definition at line 110 of file URI.php.

111 {
112 $this->schema = $this->digestSchema(parse_url($uri_string, PHP_URL_SCHEME));
113 $this->host = $this->digestHost(parse_url($uri_string, PHP_URL_HOST));
114 $this->port = $this->digestPort(parse_url($uri_string, PHP_URL_PORT));
115 $this->path = $this->digestPath(parse_url($uri_string, PHP_URL_PATH));
116 $this->query = $this->digestQuery(parse_url($uri_string, PHP_URL_QUERY));
117 $this->fragment = $this->digestFragment(parse_url($uri_string, PHP_URL_FRAGMENT));
118 }
digestPath(?string $path=null)
Check path formating.
Definition: URI.php:147
digestPort(?int $port=null)
Check port formating.
Definition: URI.php:139
digestHost(string $host)
Check host formating.
Definition: URI.php:131
digestSchema(string $schema)
Check schema formating.
Definition: URI.php:123
digestFragment(?string $fragment=null)
Check fragment formating.
Definition: URI.php:177
digestQuery(?string $query=null)
Check query formating.
Definition: URI.php:162

References ILIAS\Data\URI\digestFragment(), ILIAS\Data\URI\digestHost(), ILIAS\Data\URI\digestPath(), ILIAS\Data\URI\digestPort(), ILIAS\Data\URI\digestQuery(), and ILIAS\Data\URI\digestSchema().

+ Here is the call graph for this function:

Member Function Documentation

◆ __toString()

ILIAS\Data\URI::__toString ( )

Definition at line 336 of file URI.php.

336 : string
337 {
338 $uri = $this->getBaseURI();
339 $query = $this->getQuery();
340 if ($query) {
341 $uri .= '?' . $query;
342 }
343 $fragment = $this->getFragment();
344 if ($fragment) {
345 $uri .= '#' . $fragment;
346 }
347 return $uri;
348 }
string $query
Definition: URI.php:107
getFragment()
Definition: URI.php:307
getBaseURI()
Get a well-formed URI consisting only of schema, authority and port.
Definition: URI.php:327
string $fragment
Definition: URI.php:108

References ILIAS\Data\URI\$fragment, ILIAS\Data\URI\$query, ILIAS\Data\URI\getBaseURI(), ILIAS\Data\URI\getFragment(), and ILIAS\Data\URI\getQuery().

Referenced by ILIAS\UI\Implementation\Component\Link\Bulky\__construct(), and ILIAS\UI\Implementation\Component\Prompt\State\State\withRedirect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkCorrectFormatOrThrow()

ILIAS\Data\URI::checkCorrectFormatOrThrow ( string  $regexp,
string  $string 
)
protected

Check wether a string fits a regexp.

Return it, if so, throw otherwise.

Definition at line 190 of file URI.php.

190 : string
191 {
192 if (preg_match($regexp, $string) === 1) {
193 return $string;
194 }
195 throw new \InvalidArgumentException('ill-formated component "' . $string . '" expected "' . $regexp . '"');
196 }

Referenced by ILIAS\Data\URI\digestFragment(), ILIAS\Data\URI\digestHost(), ILIAS\Data\URI\digestPath(), ILIAS\Data\URI\digestQuery(), ILIAS\Data\URI\digestSchema(), and ILIAS\Data\URI\withAuthority().

+ Here is the caller graph for this function:

◆ digestFragment()

ILIAS\Data\URI::digestFragment ( ?string  $fragment = null)
protected

Check fragment formating.

Return it in case of success.

Definition at line 177 of file URI.php.

177 : ?string
178 {
179 if ($fragment === null) {
180 return null;
181 }
182 return $this->checkCorrectFormatOrThrow(self::FRAGMENT, $fragment);
183 }
checkCorrectFormatOrThrow(string $regexp, string $string)
Check wether a string fits a regexp.
Definition: URI.php:190

References ILIAS\Data\URI\$fragment, and ILIAS\Data\URI\checkCorrectFormatOrThrow().

Referenced by ILIAS\Data\URI\__construct(), and ILIAS\Data\URI\withFragment().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ digestHost()

ILIAS\Data\URI::digestHost ( string  $host)
protected

Check host formating.

Return it in case of success.

Definition at line 131 of file URI.php.

131 : string
132 {
133 return $this->checkCorrectFormatOrThrow(self::HOST, $host);
134 }
string $host
Definition: URI.php:104

References ILIAS\Data\URI\$host, and ILIAS\Data\URI\checkCorrectFormatOrThrow().

Referenced by ILIAS\Data\URI\__construct(), ILIAS\Data\URI\withAuthority(), and ILIAS\Data\URI\withHost().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ digestPath()

ILIAS\Data\URI::digestPath ( ?string  $path = null)
protected

Check path formating.

Return it in case of success.

Definition at line 147 of file URI.php.

147 : ?string
148 {
149 if ($path === null) {
150 return null;
151 }
152 $path = trim($this->checkCorrectFormatOrThrow(self::PATH, $path), self::PATH_DELIM);
153 if ($path === '') {
154 $path = null;
155 }
156 return $path;
157 }
string $path
Definition: URI.php:106

References ILIAS\Data\URI\$path, and ILIAS\Data\URI\checkCorrectFormatOrThrow().

Referenced by ILIAS\Data\URI\__construct(), and ILIAS\Data\URI\withPath().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ digestPort()

ILIAS\Data\URI::digestPort ( ?int  $port = null)
protected

Check port formating.

Return it in case of success.

Definition at line 139 of file URI.php.

139 : ?int
140 {
141 return $port ?? null;
142 }
int $port
Definition: URI.php:105

References ILIAS\Data\URI\$port.

Referenced by ILIAS\Data\URI\__construct(), and ILIAS\Data\URI\withPort().

+ Here is the caller graph for this function:

◆ digestQuery()

ILIAS\Data\URI::digestQuery ( ?string  $query = null)
protected

Check query formating.

Return it in case of success.

Definition at line 162 of file URI.php.

162 : ?string
163 {
164 if ($query === null) {
165 return null;
166 }
167 $qparts = explode('&', $query);
168 foreach ($qparts as $q) {
169 $this->checkCorrectFormatOrThrow(self::QUERY, $q);
170 }
171 return $query;
172 }
$q
Definition: shib_logout.php:23

References $q, ILIAS\Data\URI\$query, and ILIAS\Data\URI\checkCorrectFormatOrThrow().

Referenced by ILIAS\Data\URI\__construct(), and ILIAS\Data\URI\withQuery().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ digestSchema()

ILIAS\Data\URI::digestSchema ( string  $schema)
protected

Check schema formating.

Return it in case of success.

Definition at line 123 of file URI.php.

123 : string
124 {
125 return $this->checkCorrectFormatOrThrow(self::SCHEMA, $schema);
126 }
string $schema
Definition: URI.php:103

References ILIAS\Data\URI\$schema, and ILIAS\Data\URI\checkCorrectFormatOrThrow().

Referenced by ILIAS\Data\URI\__construct(), and ILIAS\Data\URI\withSchema().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAuthority()

ILIAS\Data\URI::getAuthority ( )

Definition at line 214 of file URI.php.

214 : string
215 {
216 $port = $this->getPort();
217 if ($port === null) {
218 return $this->getHost();
219 }
220 return $this->getHost() . ':' . $port;
221 }

References ILIAS\Data\URI\$port, ILIAS\Data\URI\getHost(), and ILIAS\Data\URI\getPort().

Referenced by ILIAS\Data\URI\getBaseURI().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getBaseURI()

ILIAS\Data\URI::getBaseURI ( )

Get a well-formed URI consisting only of schema, authority and port.

Definition at line 327 of file URI.php.

327 : string
328 {
329 $path = $this->getPath();
330 if ($path === null) {
331 return $this->getSchema() . '://' . $this->getAuthority();
332 }
333 return $this->getSchema() . '://' . $this->getAuthority() . '/' . $path;
334 }
getAuthority()
Definition: URI.php:214

References ILIAS\Data\URI\$path, ILIAS\Data\URI\getAuthority(), ILIAS\Data\URI\getPath(), and ILIAS\Data\URI\getSchema().

Referenced by ILIAS\Data\URI\__toString().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getFragment()

ILIAS\Data\URI::getFragment ( )

Definition at line 307 of file URI.php.

307 : ?string
308 {
309 return $this->fragment;
310 }

References ILIAS\Data\URI\$fragment.

Referenced by ILIAS\Data\URI\__toString().

+ Here is the caller graph for this function:

◆ getHost()

ILIAS\Data\URI::getHost ( )

Definition at line 259 of file URI.php.

259 : string
260 {
261 return $this->host;
262 }

References ILIAS\Data\URI\$host.

Referenced by ILIAS\Data\URI\getAuthority().

+ Here is the caller graph for this function:

◆ getParameter()

ILIAS\Data\URI::getParameter ( string  $param)

Get the value of the given parameter (or null)

Returns
mixed|null

Definition at line 367 of file URI.php.

368 {
369 $params = $this->getParameters();
370
371 return $params[$param] ?? null;
372 }
getParameters()
Get all parameters as associative array.
Definition: URI.php:353
if(! $DIC->user() ->getId()||!ilLTIConsumerAccess::hasCustomProviderCreationAccess()) $params
Definition: ltiregstart.php:31
$param
Definition: xapitoken.php:44

References $param, $params, and ILIAS\Data\URI\getParameters().

+ Here is the call graph for this function:

◆ getParameters()

ILIAS\Data\URI::getParameters ( )

Get all parameters as associative array.

Definition at line 353 of file URI.php.

353 : array
354 {
355 $params = [];
356 $query = $this->getQuery();
357 if (!is_null($query)) {
358 parse_str($query, $params);
359 }
360 return $params;
361 }

References $params, ILIAS\Data\URI\$query, and ILIAS\Data\URI\getQuery().

Referenced by ILIAS\Data\URI\getParameter(), and ILIAS\Data\URI\withParameter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getPath()

ILIAS\Data\URI::getPath ( )

Definition at line 275 of file URI.php.

275 : ?string
276 {
277 return $this->path;
278 }

References ILIAS\Data\URI\$path.

Referenced by ILIAS\Data\URI\getBaseURI(), and ILIAS\StaticURL\Handler\HandlerService\performRedirect().

+ Here is the caller graph for this function:

◆ getPort()

ILIAS\Data\URI::getPort ( )

Definition at line 243 of file URI.php.

243 : ?int
244 {
245 return $this->port;
246 }

References ILIAS\Data\URI\$port.

Referenced by ILIAS\Data\URI\getAuthority().

+ Here is the caller graph for this function:

◆ getQuery()

ILIAS\Data\URI::getQuery ( )

Definition at line 291 of file URI.php.

291 : ?string
292 {
293 return $this->query;
294 }

References ILIAS\Data\URI\$query.

Referenced by ILIAS\Data\URI\__toString(), and ILIAS\Data\URI\getParameters().

+ Here is the caller graph for this function:

◆ getSchema()

ILIAS\Data\URI::getSchema ( )

Definition at line 198 of file URI.php.

198 : string
199 {
200 return $this->schema;
201 }

References ILIAS\Data\URI\$schema.

Referenced by ILIAS\Data\URI\getBaseURI().

+ Here is the caller graph for this function:

◆ withAuthority()

ILIAS\Data\URI::withAuthority ( string  $authority)

Get URI with modified authority.

Definition at line 226 of file URI.php.

226 : URI
227 {
228 $parts = explode(':', $authority);
229 if (count($parts) > 2) {
230 throw new \InvalidArgumentException('ill-formated component ' . $authority);
231 }
232 $host = $this->digestHost($parts[0]);
233 $port = null;
234 if (array_key_exists(1, $parts)) {
235 $port = (int) $this->checkCorrectFormatOrThrow(self::PORT, (string) $parts[1]);
236 }
237 $other = clone $this;
238 $other->host = $host;
239 $other->port = $port;
240 return $other;
241 }
if($clientAssertionType !='urn:ietf:params:oauth:client-assertion-type:jwt-bearer'|| $grantType !='client_credentials') $parts
Definition: ltitoken.php:61

References ILIAS\Data\URI\$host, $parts, ILIAS\Data\URI\$port, ILIAS\Data\URI\checkCorrectFormatOrThrow(), ILIAS\Data\URI\digestHost(), and ILIAS\Repository\int().

+ Here is the call graph for this function:

◆ withFragment()

ILIAS\Data\URI::withFragment ( ?string  $fragment = null)

Get URI with modified fragment.

Definition at line 315 of file URI.php.

315 : URI
316 {
318 $other = clone $this;
319 $other->fragment = $fragment;
320 return $other;
321 }

References ILIAS\Data\URI\$fragment, and ILIAS\Data\URI\digestFragment().

+ Here is the call graph for this function:

◆ withHost()

ILIAS\Data\URI::withHost ( string  $host)

Get URI with modified host.

Definition at line 267 of file URI.php.

267 : URI
268 {
269 $host = $this->digestHost($host);
270 $other = clone $this;
271 $other->host = $host;
272 return $other;
273 }

References ILIAS\Data\URI\$host, and ILIAS\Data\URI\digestHost().

+ Here is the call graph for this function:

◆ withParameter()

◆ withParameters()

ILIAS\Data\URI::withParameters ( array  $parameters)

Get URI with modified parameters.

Definition at line 377 of file URI.php.

377 : URI
378 {
379 return $this->withQuery(
380 http_build_query($parameters)
381 );
382 }
withQuery(?string $query=null)
Get URI with modified query.
Definition: URI.php:299

References ILIAS\Data\URI\withQuery().

Referenced by ILIAS\Data\URI\withParameter().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withPath()

ILIAS\Data\URI::withPath ( ?string  $path = null)

Get URI with modified path.

Definition at line 283 of file URI.php.

283 : URI
284 {
285 $path = $this->digestPath($path);
286 $other = clone $this;
287 $other->path = $path;
288 return $other;
289 }

References ILIAS\Data\URI\$path, and ILIAS\Data\URI\digestPath().

Referenced by ILIAS\StaticURL\Handler\HandlerService\performRedirect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withPort()

ILIAS\Data\URI::withPort ( ?int  $port = null)

Get URI with modified port.

Definition at line 251 of file URI.php.

251 : URI
252 {
253 $port = $this->digestPort($port);
254 $other = clone $this;
255 $other->port = $port;
256 return $other;
257 }

References ILIAS\Data\URI\$port, and ILIAS\Data\URI\digestPort().

+ Here is the call graph for this function:

◆ withQuery()

ILIAS\Data\URI::withQuery ( ?string  $query = null)

Get URI with modified query.

Definition at line 299 of file URI.php.

299 : URI
300 {
301 $query = $this->digestQuery($query);
302 $other = clone $this;
303 $other->query = $query;
304 return $other;
305 }

References ILIAS\Data\URI\$query, and ILIAS\Data\URI\digestQuery().

Referenced by ILIAS\Data\URI\withParameters().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ withSchema()

ILIAS\Data\URI::withSchema ( string  $schema)

Get URI with modified schema.

Definition at line 206 of file URI.php.

206 : URI
207 {
208 $shema = $this->digestSchema($schema);
209 $other = clone $this;
210 $other->schema = $schema;
211 return $other;
212 }

References ILIAS\Data\URI\$schema, and ILIAS\Data\URI\digestSchema().

+ Here is the call graph for this function:

Field Documentation

◆ $fragment

string ILIAS\Data\URI::$fragment
protected

◆ $host

string ILIAS\Data\URI::$host
protected

◆ $path

string ILIAS\Data\URI::$path
protected

◆ $port

◆ $query

string ILIAS\Data\URI::$query
protected

◆ $schema

string ILIAS\Data\URI::$schema
protected

◆ ALPHA

const ILIAS\Data\URI::ALPHA = '[A-Za-z]'
private

Relevant character-groups as defined in RFC 3986 Appendix 1.

Definition at line 41 of file URI.php.

◆ ALPHA_DIGIT

const ILIAS\Data\URI::ALPHA_DIGIT = '[A-Za-z0-9]'
private

Definition at line 43 of file URI.php.

◆ BASEURI_SUBDELIMS

const ILIAS\Data\URI::BASEURI_SUBDELIMS = '[\\$,;&\'\\*]'
private

subdelims without jsf**k characters +!() and =

Definition at line 59 of file URI.php.

◆ DIGIT

const ILIAS\Data\URI::DIGIT = '[0-9]'
private

Definition at line 42 of file URI.php.

◆ DOMAIN_LABEL

const ILIAS\Data\URI::DOMAIN_LABEL = self::ALPHA_DIGIT . '((' . self::UNRESERVED_NO_DOT . '|' . self::PCTENCODED . '|' . self::BASEURI_SUBDELIMS . ')*' . self::ALPHA_DIGIT . ')*'
private

Definition at line 67 of file URI.php.

◆ FRAGMENT

const ILIAS\Data\URI::FRAGMENT = '#^(' . self::PCHAR . '|' . self::PATH_DELIM . '|\\?|\\#)+$#'
private

Definition at line 101 of file URI.php.

◆ HEXDIG

const ILIAS\Data\URI::HEXDIG = '[0-9A-Fa-f]'
private

Definition at line 44 of file URI.php.

◆ HOST

const ILIAS\Data\URI::HOST = '#' . self::HOST_IPV4 . '|' . self::HOST_REG_NAME . '|' . self::HOST_IPV6 . '#'
private

Definition at line 97 of file URI.php.

◆ HOST_IPV4

const ILIAS\Data\URI::HOST_IPV4 = '^' . self::HOST_IPV4_EMBEDDED . '$'
private

Definition at line 70 of file URI.php.

◆ HOST_IPV4_EMBEDDED

const ILIAS\Data\URI::HOST_IPV4_EMBEDDED = '(' . self::DIGIT . '{1,3})(\\.' . self::DIGIT . '{1,3}){3}'
private

Definition at line 69 of file URI.php.

◆ HOST_IPV6

const ILIAS\Data\URI::HOST_IPV6 = self::HOST_IPV6_LONG . '|' . self::HOST_IPV6_SHORT . '|' . self::HOST_IPV6_EMBEDDED_IPV4
private

Definition at line 96 of file URI.php.

◆ HOST_IPV6_EMBEDDED_IPV4

const ILIAS\Data\URI::HOST_IPV6_EMBEDDED_IPV4 = self::HOST_IPV6_EMBEDDED_IPV4_SHORT . '|' . self::HOST_IPV6_EMBEDDED_IPV4_LONG
private

Definition at line 94 of file URI.php.

◆ HOST_IPV6_EMBEDDED_IPV4_LONG

const ILIAS\Data\URI::HOST_IPV6_EMBEDDED_IPV4_LONG = '^\\[' . self::IPV6_COUNT_COLONS . '{5}' . self::HEXDIG . '{1,4}:' . self::HOST_IPV4_EMBEDDED . '\\]$'
private

Definition at line 86 of file URI.php.

◆ HOST_IPV6_EMBEDDED_IPV4_SHORT

const ILIAS\Data\URI::HOST_IPV6_EMBEDDED_IPV4_SHORT
private
Initial value:
= '^\\[(?=' . self::IPV6_COLONS_BETWEEN . '{2,6}' . self::HOST_IPV4_EMBEDDED . '\\]$)' .
self::IPV6_LEFT_SHORT . '::' .
'(' . self::HEXDIG . '{1,4}|(' . self::HEXDIG . '{1,4}:)*' . self::HEXDIG . '{0,4})?' . self::HOST_IPV4_EMBEDDED . '\\]$'

Definition at line 88 of file URI.php.

◆ HOST_IPV6_LONG

const ILIAS\Data\URI::HOST_IPV6_LONG = '^\\[' . self::IPV6_COUNT_COLONS . '{7}' . self::HEXDIG . '{1,4}\\]$'
private

Definition at line 78 of file URI.php.

◆ HOST_IPV6_SHORT

const ILIAS\Data\URI::HOST_IPV6_SHORT
private
Initial value:
= '^\\[(?=' . self::IPV6_COLONS_BETWEEN . '{2,7}\\]$)' .
self::IPV6_LEFT_SHORT . '::' .
'(' . self::HEXDIG . '{1,4}|(' . self::HEXDIG . '{1,4}:)*' . self::HEXDIG . '{1,4})?\\]$'

Definition at line 80 of file URI.php.

◆ HOST_REG_NAME

const ILIAS\Data\URI::HOST_REG_NAME = '^' . self::DOMAIN_LABEL . '(\\.' . self::DOMAIN_LABEL . ')*$'
private

Definition at line 68 of file URI.php.

◆ IPV6_COLONS_BETWEEN

const ILIAS\Data\URI::IPV6_COLONS_BETWEEN = '(' . self::HEXDIG . '{0,4}:' . self::HEXDIG . '{0,4})'
private

Definition at line 73 of file URI.php.

◆ IPV6_COUNT_COLONS

const ILIAS\Data\URI::IPV6_COUNT_COLONS = '(' . self::HEXDIG . '{1,4}:)'
private

Definition at line 72 of file URI.php.

◆ IPV6_LEFT_SHORT

const ILIAS\Data\URI::IPV6_LEFT_SHORT = '(' . self::HEXDIG . '{1,4}|' . self::HEXDIG . '{1,4}(:' . self::HEXDIG . '{1,4})*)?'
private

Definition at line 74 of file URI.php.

◆ PATH

const ILIAS\Data\URI::PATH = '#^(?!//)(?!:)(' . self::PCHAR . '|' . self::PATH_DELIM . ')+$#'
private

Definition at line 99 of file URI.php.

◆ PATH_DELIM

const ILIAS\Data\URI::PATH_DELIM = '/'
private

Definition at line 36 of file URI.php.

◆ PCHAR

const ILIAS\Data\URI::PCHAR = self::UNRESERVED . '|' . self::SUBDELIMS . '|' . self::PCTENCODED
private

Definition at line 64 of file URI.php.

◆ PCTENCODED

const ILIAS\Data\URI::PCTENCODED = '%' . self::HEXDIG . self::HEXDIG
private

Definition at line 45 of file URI.php.

◆ PIMP

const ILIAS\Data\URI::PIMP = '[\\+\\-\\.]'
private

point|minus|plus to be used in schema.

Definition at line 49 of file URI.php.

◆ PORT

const ILIAS\Data\URI::PORT = '#^' . self::DIGIT . '+$#'
private

Definition at line 98 of file URI.php.

◆ QUERY

const ILIAS\Data\URI::QUERY = '#^(' . self::PCHAR . '|' . self::PATH_DELIM . '|\\?)+$#'
private

Definition at line 100 of file URI.php.

◆ SCHEMA

const ILIAS\Data\URI::SCHEMA = '#^' . self::ALPHA . '(' . self::ALPHA_DIGIT . '|' . self::PIMP . ')*$#'
private

Definition at line 66 of file URI.php.

◆ SUBDELIMS

const ILIAS\Data\URI::SUBDELIMS = '[\\$,;=!&\'\\‍(\\‍)\\*\\+]'
private

valid subdelims according to RFC 3986 Appendix 1: "!" "$" "&" "'" "(" ")" "*" "+" "," ";" "="

Definition at line 55 of file URI.php.

◆ UNRESERVED

const ILIAS\Data\URI::UNRESERVED = self::ALPHA_DIGIT . '|[\\-\\._~]'
private

Definition at line 61 of file URI.php.

◆ UNRESERVED_NO_DOT

const ILIAS\Data\URI::UNRESERVED_NO_DOT = self::ALPHA_DIGIT . '|[\\-_~]'
private

Definition at line 62 of file URI.php.


The documentation for this class was generated from the following file: