diff --git a/language-snippets.ent b/language-snippets.ent index 8d65a705d5..e2dce5cbda 100644 --- a/language-snippets.ent +++ b/language-snippets.ent @@ -4958,6 +4958,19 @@ Les sources de hasard par ordre de priorité sont les suivantes : '> + + + Si l'URI résultante est invalide, une exception Uri\InvalidUriException est lancée. + +'> + + + Si l'URL résultante est invalide, une exception Uri\WhatWg\InvalidUrlException est lancée. + +'> + + + + + URI + URI + + + &reftitle.intro; + + Ce chapitre décrit les fonctions qui permettent de travailler avec + les identifiants de ressource uniformes (URI). Un URI est une chaîne de caractères + utilisée pour identifier une ressource. Les URI sont utilisés dans les technologies + web pour identifier des ressources sur Internet. + + + Cette extension implémente des fonctionnalités qui suivent les spécifications + RFC 3986, + Uniform Resource Identifier (URI): Generic Syntax et + WHATWG URL Standard. + + + + &reference.uri.uri.rfc3986.uri; + + &reference.uri.uri.whatwg.url; + + &reference.uri.uri.uricomparisonmode; + + &reference.uri.uri.uriexception; + &reference.uri.uri.urierror; + &reference.uri.uri.invaliduriexception; + &reference.uri.uri.whatwg.invalidurlexception; + &reference.uri.uri.whatwg.urlvalidationerror; + &reference.uri.uri.whatwg.urlvalidationerrortype; + + diff --git a/reference/uri/uri.invaliduriexception.xml b/reference/uri/uri.invaliduriexception.xml new file mode 100644 index 0000000000..bc4404a877 --- /dev/null +++ b/reference/uri/uri.invaliduriexception.xml @@ -0,0 +1,67 @@ + + + + La classe Uri\InvalidUriException + Uri\InvalidUriException + + +
+ &reftitle.intro; + + Indique qu'une URI donnée est invalide ou qu'une opération résulterait en une URI invalide. + +
+ +
+ &reftitle.classsynopsis; + + + Uri + + + + InvalidUriException + + + + extends + Uri\UriException + + + &InheritedProperties; + + + + + &InheritedMethods; + + + + + + + + +
+
+
+ diff --git a/reference/uri/uri.rfc3986.uri.xml b/reference/uri/uri.rfc3986.uri.xml new file mode 100644 index 0000000000..86b909ae63 --- /dev/null +++ b/reference/uri/uri.rfc3986.uri.xml @@ -0,0 +1,61 @@ + + + + La classe Uri\Rfc3986\Uri + Uri\Rfc3986\Uri + + +
+ &reftitle.intro; + + +
+ +
+ &reftitle.classsynopsis; + + + Uri\Rfc3986 + + + + final + readonly + Uri + + + &Methods; + + + + + + + + +
+
+ + &reference.uri.uri.rfc3986.entities.uri; + +
+ diff --git a/reference/uri/uri.uricomparisonmode.xml b/reference/uri/uri.uricomparisonmode.xml new file mode 100644 index 0000000000..44d72e21a9 --- /dev/null +++ b/reference/uri/uri.uricomparisonmode.xml @@ -0,0 +1,56 @@ + + + + L'énumération Uri\UriComparisonMode + Uri\UriComparisonMode + + +
+ &reftitle.intro; + + +
+ +
+ &reftitle.enumsynopsis; + + + Uri + + + UriComparisonMode + + + IncludeFragment + Le composant fragment est inclus dans la comparaison. + + + + ExcludeFragment + Le composant fragment est exclu de la comparaison. + + + +
+
+
+ diff --git a/reference/uri/uri.urierror.xml b/reference/uri/uri.urierror.xml new file mode 100644 index 0000000000..bec83b5462 --- /dev/null +++ b/reference/uri/uri.urierror.xml @@ -0,0 +1,67 @@ + + + + La classe Uri\UriError + Uri\UriError + + +
+ &reftitle.intro; + + La classe de base pour les Error qui surviennent lors du traitement des URI. + +
+ +
+ &reftitle.classsynopsis; + + + Uri + + + + UriError + + + + extends + Error + + + &InheritedProperties; + + + + + &InheritedMethods; + + + + + + + + +
+
+
+ diff --git a/reference/uri/uri.uriexception.xml b/reference/uri/uri.uriexception.xml new file mode 100644 index 0000000000..a7bead59c6 --- /dev/null +++ b/reference/uri/uri.uriexception.xml @@ -0,0 +1,67 @@ + + + + La classe Uri\UriException + Uri\UriException + + +
+ &reftitle.intro; + + La classe de base pour les Exception qui surviennent lors du traitement des URI. + +
+ +
+ &reftitle.classsynopsis; + + + Uri + + + + UriException + + + + extends + Exception + + + &InheritedProperties; + + + + + &InheritedMethods; + + + + + + + + +
+
+
+ diff --git a/reference/uri/uri.whatwg.invalidurlexception.xml b/reference/uri/uri.whatwg.invalidurlexception.xml new file mode 100644 index 0000000000..092177e757 --- /dev/null +++ b/reference/uri/uri.whatwg.invalidurlexception.xml @@ -0,0 +1,96 @@ + + + + La classe Uri\WhatWg\InvalidUrlException + Uri\WhatWg\InvalidUrlException + + +
+ &reftitle.intro; + + Indique qu'une URL donnée est invalide ou qu'une opération résulterait + en une URL invalide selon le standard + WHATWG URL Standard. + +
+ +
+ &reftitle.classsynopsis; + + + Uri\WhatWg + + + + InvalidUrlException + + + + extends + Uri\InvalidUriException + + + &Properties; + + public + readonly + array + errors + + + &InheritedProperties; + + + + + &Methods; + + + + + &InheritedMethods; + + + + + +
+ +
+ &reftitle.properties; + + + errors + + + Un &array; d'objets Uri\WhatWg\UrlValidationError. + + + + +
+
+ + &reference.uri.uri.whatwg.entities.invalidurlexception; + +
+ diff --git a/reference/uri/uri.whatwg.url.xml b/reference/uri/uri.whatwg.url.xml new file mode 100644 index 0000000000..8cdadbec1d --- /dev/null +++ b/reference/uri/uri.whatwg.url.xml @@ -0,0 +1,61 @@ + + + + La classe Uri\WhatWg\Url + Uri\WhatWg\Url + + +
+ &reftitle.intro; + + +
+ +
+ &reftitle.classsynopsis; + + + Uri\WhatWg + + + + final + readonly + Url + + + &Methods; + + + + + + + + +
+
+ + &reference.uri.uri.whatwg.entities.url; + +
+ diff --git a/reference/uri/uri.whatwg.urlvalidationerror.xml b/reference/uri/uri.whatwg.urlvalidationerror.xml new file mode 100644 index 0000000000..c0ea95493f --- /dev/null +++ b/reference/uri/uri.whatwg.urlvalidationerror.xml @@ -0,0 +1,108 @@ + + + + La classe Uri\WhatWg\UrlValidationError + Uri\WhatWg\UrlValidationError + + +
+ &reftitle.intro; + + Fournit des détails sur les erreurs détectées lors de l'analyse d'une URL avec + Uri\WhatWg\Url. + +
+ +
+ &reftitle.classsynopsis; + + + Uri\WhatWg + + + + final + readonly + UrlValidationError + + + &Properties; + + public + string + context + + + public + Uri\WhatWg\UrlValidationErrorType + type + + + public + bool + failure + + + &Methods; + + + + + +
+ +
+ &reftitle.properties; + + + context + + + L'URL d'entrée au point où l'erreur a été détectée. + + + + + type + + + Le type d'erreur. + + + + + failure + + + Si &true;, l'erreur a causé le rejet de l'URL comme invalide. Si &false;, + l'erreur est une erreur non fatale qui a été automatiquement corrigée lors de l'analyse. + + + + +
+
+ + &reference.uri.uri.whatwg.entities.urlvalidationerror; + +
+ diff --git a/reference/uri/uri.whatwg.urlvalidationerrortype.xml b/reference/uri/uri.whatwg.urlvalidationerrortype.xml new file mode 100644 index 0000000000..b7b7a9a4d0 --- /dev/null +++ b/reference/uri/uri.whatwg.urlvalidationerrortype.xml @@ -0,0 +1,201 @@ + + + + L'énumération Uri\WhatWg\UrlValidationErrorType + Uri\WhatWg\UrlValidationErrorType + + +
+ &reftitle.intro; + + +
+ +
+ &reftitle.enumsynopsis; + + + Uri\WhatWg + + + UrlValidationErrorType + + + DomainToAscii + Erreur lors du processus de conversion du nom de domaine en chaîne ASCII. + + + + DomainToUnicode + Erreur lors du processus de conversion du nom de domaine en chaîne Unicode. + + + + DomainInvalidCodePoint + L'hôte de l'entrée contient un code point de domaine interdit. + + + + HostInvalidCodePoint + Un hôte opaque (dans une URL qui n'est pas spéciale) contient un code point d'hôte interdit. + + + + Ipv4EmptyPart + Une adresse IPv4 se termine par un U+002E (.). + + + + Ipv4TooManyParts + Une adresse IPv4 ne comprend pas exactement 4 parties. + + + + Ipv4NonNumericPart + Une partie d'une adresse IPv4 n'est pas numérique. + + + + Ipv4NonDecimalPart + L'adresse IPv4 contient des nombres exprimés en chiffres hexadécimaux ou octaux. + + + + Ipv4OutOfRangePart + Une partie d'une adresse IPv4 dépasse 255. + + + + Ipv6Unclosed + Une adresse IPv6 ne possède pas le U+005D (]) de fermeture. + + + + Ipv6InvalidCompression + Une adresse IPv6 commence avec une compression incorrecte. + + + + Ipv6TooManyPieces + Une adresse IPv6 contient plus de 8 segments. + + + + Ipv6MultipleCompression + Une adresse IPv6 est compressée à plus d'un endroit. + + + + Ipv6InvalidCodePoint + + Une adresse IPv6 contient un code point qui n'est ni un chiffre hexadécimal ASCII + ni un U+003A (:). Ou elle se termine de manière inattendue. + + + + + Ipv6TooFewPieces + Une adresse IPv6 non compressée contient moins de 8 segments. + + + + Ipv4InIpv6TooManyPieces + Une adresse IPv6 avec une syntaxe d'adresse IPv4 : l'adresse IPv6 possède plus de 6 segments. + + + + Ipv4InIpv6InvalidCodePoint + Une adresse IPv6 avec une syntaxe d'adresse IPv4. + + + + Ipv4InIpv6OutOfRangePart + Une adresse IPv6 avec une syntaxe d'adresse IPv4 : une partie IPv4 dépasse 255. + + + + Ipv4InIpv6TooFewParts + Une adresse IPv6 avec une syntaxe d'adresse IPv4 : une adresse IPv4 contient trop peu de parties. + + + + InvalidUrlUnit + Un code point qui n'est pas une unité URL a été trouvé. + + + + SpecialSchemeMissingFollowingSolidus + Le schéma de l'entrée n'est pas suivi de //. + + + + MissingSchemeNonRelativeUrl + + L'entrée ne possède pas de schéma, car elle ne commence pas par un caractère alpha ASCII, et soit aucune URL + de base n'a été fournie, soit l'URL de base ne peut pas être utilisée car elle possède un chemin opaque. + + + + + InvalidReverseSoldius + L'URL possède un schéma spécial et utilise U+005C (\) + au lieu de U+002F (/). + + + + InvalidCredentials + L'entrée inclut des identifiants. + + + + HostMissing + L'entrée possède un schéma spécial, mais ne contient pas d'hôte. + + + + PortOutOfRange + Le port de l'entrée est trop grand. + + + + PortInvalid + Le port de l'entrée est invalide. + + + + FileInvalidWindowsDriveLetter + + L'entrée est une chaîne URL relative qui commence par une lettre de lecteur Windows et + le schéma de l'URL de base est file. + + + + + FileInvalidWindowsDriveLetterHost + L'hôte d'une URL file: est une lettre de lecteur Windows. + + + +
+
+
+ diff --git a/reference/uri/uri/rfc3986/uri/construct.xml b/reference/uri/uri/rfc3986/uri/construct.xml new file mode 100644 index 0000000000..ef032082e8 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/construct.xml @@ -0,0 +1,79 @@ + + + + + Uri\Rfc3986\Uri::__construct + Construit l'objet Uri + + + + &reftitle.description; + + public Uri\Rfc3986\Uri::__construct + stringuri + Uri\Rfc3986\UrinullbaseUrl&null; + + + Construit l'objet Uri\Rfc3986\Uri. + + + + + &reftitle.parameters; + + + uri + + + URI à analyser. + + + + + baseUrl + + + Lorsqu'une &string; est passée, uri est appliqué sur + baseUrl, si uri est une référence relative. + Si &null; est passé, ou si uri n'est pas une référence relative, alors + baseUrl n'a aucun effet. + + + + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::parse + Uri\Rfc3986\Uri::resolve + Uri\WhatWg\Url::__construct + + + + diff --git a/reference/uri/uri/rfc3986/uri/debuginfo.xml b/reference/uri/uri/rfc3986/uri/debuginfo.xml new file mode 100644 index 0000000000..dfbcdb1c28 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/debuginfo.xml @@ -0,0 +1,58 @@ + + + + + Uri\Rfc3986\Uri::__debugInfo + Retourne l'état interne de l'URI + + + + &reftitle.description; + + public arrayUri\Rfc3986\Uri::__debugInfo + + + + Retourne l'état interne de l'URI. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'état interne de l'URI sous forme d'un &array;. + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::__debugInfo + + + + diff --git a/reference/uri/uri/rfc3986/uri/equals.xml b/reference/uri/uri/rfc3986/uri/equals.xml new file mode 100644 index 0000000000..58801a8bc4 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/equals.xml @@ -0,0 +1,101 @@ + + + + + Uri\Rfc3986\Uri::equals + Vérifie si deux URI sont équivalentes + + + + &reftitle.description; + + public boolUri\Rfc3986\Uri::equals + Uri\Rfc3986\Uriuri + Uri\UriComparisonModecomparisonModeUri\UriComparisonMode::ExcludeFragment + + + Vérifie si deux URI sont équivalentes. + + + + + &reftitle.parameters; + + + uri + + + URI à comparer avec l'URI courante. + + + + + comparisonMode + + + Indique si le composant fragment est pris en compte dans la comparaison + (Uri\UriComparisonMode::IncludeFragment) ou non + (Uri\UriComparisonMode::ExcludeFragment). Par défaut, le fragment est exclu. + + + + + + + + &reftitle.returnvalues; + + Retourne &true; si les deux URI sont équivalentes, ou &false; sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::equals</methodname> + +equals($uri2)); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::equals + + + + diff --git a/reference/uri/uri/rfc3986/uri/getfragment.xml b/reference/uri/uri/rfc3986/uri/getfragment.xml new file mode 100644 index 0000000000..fe83c8adf1 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getfragment.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getFragment + Récupère le composant fragment normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getFragment + + + + Récupère le composant fragment normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant fragment normalisé sous forme de &string; si le composant fragment existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getFragment</methodname> + +getFragment(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawFragment + Uri\Rfc3986\Uri::withFragment + Uri\WhatWg\Url::getFragment + + + + diff --git a/reference/uri/uri/rfc3986/uri/gethost.xml b/reference/uri/uri/rfc3986/uri/gethost.xml new file mode 100644 index 0000000000..282cde4a00 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/gethost.xml @@ -0,0 +1,83 @@ + + + + + Uri\Rfc3986\Uri::getHost + Récupère le composant hôte normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getHost + + + + Récupère le composant hôte normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant hôte normalisé sous forme de &string; si le composant hôte existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getHost</methodname> + +getHost(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawHost + Uri\Rfc3986\Uri::withHost + Uri\WhatWg\Url::getAsciiHost + Uri\WhatWg\Url::getUnicodeHost + + + + diff --git a/reference/uri/uri/rfc3986/uri/getpassword.xml b/reference/uri/uri/rfc3986/uri/getpassword.xml new file mode 100644 index 0000000000..3cf91933b1 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getpassword.xml @@ -0,0 +1,87 @@ + + + + + Uri\Rfc3986\Uri::getPassword + Récupère le mot de passe normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getPassword + + + + Récupère la partie mot de passe normalisé (le texte après le premier caractère :) + du composant userinfo. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le mot de passe normalisé sous forme de &string; si le composant userinfo contient un caractère :. + Une chaîne vide est retournée lorsque le composant userinfo ne contient pas de caractère :. + &null; est retourné lorsque le composant userinfo n'existe pas. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getPassword</methodname> + +getPassword(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawPassword + Uri\Rfc3986\Uri::getRawUserInfo + Uri\Rfc3986\Uri::getUserInfo + Uri\Rfc3986\Uri::withPassword + Uri\WhatWg\Url::getPassword + + + + diff --git a/reference/uri/uri/rfc3986/uri/getpath.xml b/reference/uri/uri/rfc3986/uri/getpath.xml new file mode 100644 index 0000000000..b0fddc5ff2 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getpath.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getPath + Récupère le composant chemin normalisé + + + + &reftitle.description; + + public stringUri\Rfc3986\Uri::getPath + + + + Récupère le composant chemin normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant chemin normalisé sous forme de &string;. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getPath</methodname> + +getPath(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawPath + Uri\Rfc3986\Uri::withPath + Uri\WhatWg\Url::getPath + + + + diff --git a/reference/uri/uri/rfc3986/uri/getport.xml b/reference/uri/uri/rfc3986/uri/getport.xml new file mode 100644 index 0000000000..035c17898c --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getport.xml @@ -0,0 +1,81 @@ + + + + + Uri\Rfc3986\Uri::getPort + Récupère le composant port normalisé + + + + &reftitle.description; + + public intnullUri\Rfc3986\Uri::getPort + + + + Récupère le composant port normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant port normalisé sous forme d'un &integer; si le composant port existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getPort</methodname> + +getPort(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::withPort + Uri\WhatWg\Url::getPort + + + + diff --git a/reference/uri/uri/rfc3986/uri/getquery.xml b/reference/uri/uri/rfc3986/uri/getquery.xml new file mode 100644 index 0000000000..6103a29fb4 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getquery.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getQuery + Récupère le composant requête normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getQuery + + + + Récupère le composant requête normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant requête normalisé sous forme de &string; si le composant requête existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getQuery</methodname> + +getQuery(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawQuery + Uri\Rfc3986\Uri::withQuery + Uri\WhatWg\Url::getQuery + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawfragment.xml b/reference/uri/uri/rfc3986/uri/getrawfragment.xml new file mode 100644 index 0000000000..0061a6ba64 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawfragment.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getRawFragment + Récupère le composant fragment brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawFragment + + + + Récupère le composant fragment brut. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant fragment brut sous forme de &string; si le composant fragment existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawFragment</methodname> + +getRawFragment(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getFragment + Uri\Rfc3986\Uri::withFragment + Uri\WhatWg\Url::getFragment + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawhost.xml b/reference/uri/uri/rfc3986/uri/getrawhost.xml new file mode 100644 index 0000000000..6f8b3d6bc9 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawhost.xml @@ -0,0 +1,83 @@ + + + + + Uri\Rfc3986\Uri::getRawHost + Récupère le composant hôte brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawHost + + + + Récupère le composant hôte brut. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant hôte brut sous forme de &string; si le composant hôte existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawHost</methodname> + +getRawHost(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getHost + Uri\Rfc3986\Uri::withHost + Uri\WhatWg\Url::getAsciiHost + Uri\WhatWg\Url::getUnicodeHost + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawpassword.xml b/reference/uri/uri/rfc3986/uri/getrawpassword.xml new file mode 100644 index 0000000000..231922ca5e --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawpassword.xml @@ -0,0 +1,84 @@ + + + + + Uri\Rfc3986\Uri::getRawPassword + Récupère le mot de passe brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawPassword + + + + Récupère le mot de passe brut (non normalisé) du composant userinfo. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le mot de passe brut (non normalisé) sous forme de &string; si le composant userinfo contient un caractère :. + Une chaîne vide est retournée lorsque le composant userinfo ne contient pas de caractère :. + &null; est retourné lorsque le composant userinfo n'existe pas. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawPassword</methodname> + +getRawPassword(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getPassword + Uri\Rfc3986\Uri::withUserInfo + Uri\WhatWg\Url::getPassword + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawpath.xml b/reference/uri/uri/rfc3986/uri/getrawpath.xml new file mode 100644 index 0000000000..210b17eb3c --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawpath.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getRawPath + Récupère le composant chemin brut + + + + &reftitle.description; + + public stringUri\Rfc3986\Uri::getRawPath + + + + Récupère le composant chemin brut. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant chemin brut sous forme de &string;. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawPath</methodname> + +getRawPath(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getPath + Uri\Rfc3986\Uri::withPath + Uri\WhatWg\Url::getPath + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawquery.xml b/reference/uri/uri/rfc3986/uri/getrawquery.xml new file mode 100644 index 0000000000..8f4fa54c12 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawquery.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getRawQuery + Récupère le composant requête brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawQuery + + + + Récupère le composant requête brut. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant requête brut sous forme de &string; si le composant requête existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawQuery</methodname> + +getRawQuery(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getQuery + Uri\Rfc3986\Uri::withQuery + Uri\WhatWg\Url::getQuery + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawscheme.xml b/reference/uri/uri/rfc3986/uri/getrawscheme.xml new file mode 100644 index 0000000000..0695116b2e --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawscheme.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getRawScheme + Récupère le composant schéma brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawScheme + + + + Récupère le composant schéma brut. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant schéma brut sous forme de &string; si le composant schéma existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawScheme</methodname> + +getRawScheme(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getScheme + Uri\Rfc3986\Uri::withScheme + Uri\WhatWg\Url::getScheme + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml new file mode 100644 index 0000000000..af35213b4d --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawuserinfo.xml @@ -0,0 +1,85 @@ + + + + + Uri\Rfc3986\Uri::getRawUserInfo + Récupère le composant userinfo brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawUserInfo + + + + Récupère le composant userinfo brut. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant userinfo brut sous forme de &string; si le composant userinfo existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawUserInfo</methodname> + +getRawUserInfo(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getUserInfo + Uri\Rfc3986\Uri::getUsername + Uri\Rfc3986\Uri::getPassword + Uri\Rfc3986\Uri::withUserInfo + Uri\WhatWg\Url::getUsername + Uri\WhatWg\Url::getPassword + + + + diff --git a/reference/uri/uri/rfc3986/uri/getrawusername.xml b/reference/uri/uri/rfc3986/uri/getrawusername.xml new file mode 100644 index 0000000000..6d5258d360 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getrawusername.xml @@ -0,0 +1,83 @@ + + + + + Uri\Rfc3986\Uri::getRawUsername + Récupère le nom d'utilisateur brut + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getRawUsername + + + + Récupère le nom d'utilisateur brut (non normalisé). + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le nom d'utilisateur brut (non normalisé) sous forme de &string; si le composant userinfo existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getRawUsername</methodname> + +getRawUsername(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawUserInfo + Uri\Rfc3986\Uri::getUserInfo + Uri\Rfc3986\Uri::withUserInfo + Uri\WhatWg\Url::getUsername + + + + diff --git a/reference/uri/uri/rfc3986/uri/getscheme.xml b/reference/uri/uri/rfc3986/uri/getscheme.xml new file mode 100644 index 0000000000..868cc3aec5 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getscheme.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::getScheme + Récupère le composant schéma normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getScheme + + + + Récupère le composant schéma normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant schéma normalisé sous forme de &string; si le composant schéma existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getScheme</methodname> + +getScheme(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawScheme + Uri\Rfc3986\Uri::withScheme + Uri\WhatWg\Url::getScheme + + + + diff --git a/reference/uri/uri/rfc3986/uri/getuserinfo.xml b/reference/uri/uri/rfc3986/uri/getuserinfo.xml new file mode 100644 index 0000000000..f03b9ed1cd --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getuserinfo.xml @@ -0,0 +1,87 @@ + + + + + Uri\Rfc3986\Uri::getUserInfo + Récupère le composant userinfo normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getUserInfo + + + + Récupère le composant userinfo normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant userinfo normalisé sous forme de &string; si le composant userinfo existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getUserInfo</methodname> + +getUserInfo(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawUserInfo + Uri\Rfc3986\Uri::getRawUsername + Uri\Rfc3986\Uri::getUsername + Uri\Rfc3986\Uri::getRawPassword + Uri\Rfc3986\Uri::getPassword + Uri\Rfc3986\Uri::withUserInfo + Uri\WhatWg\Url::getUsername + Uri\WhatWg\Url::getPassword + + + + diff --git a/reference/uri/uri/rfc3986/uri/getusername.xml b/reference/uri/uri/rfc3986/uri/getusername.xml new file mode 100644 index 0000000000..d94a4953ae --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/getusername.xml @@ -0,0 +1,84 @@ + + + + + Uri\Rfc3986\Uri::getUsername + Récupère le nom d'utilisateur normalisé + + + + &reftitle.description; + + public stringnullUri\Rfc3986\Uri::getUsername + + + + Récupère le nom d'utilisateur normalisé. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le nom d'utilisateur normalisé sous forme de &string; si le composant userinfo existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::getUsername</methodname> + +getUsername(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawUsername + Uri\Rfc3986\Uri::getUserInfo + Uri\Rfc3986\Uri::getPassword + Uri\Rfc3986\Uri::withUserInfo + Uri\WhatWg\Url::getUsername + + + + diff --git a/reference/uri/uri/rfc3986/uri/parse.xml b/reference/uri/uri/rfc3986/uri/parse.xml new file mode 100644 index 0000000000..0e442795ac --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/parse.xml @@ -0,0 +1,107 @@ + + + + + Uri\Rfc3986\Uri::parse + Analyse une URI + + + + &reftitle.description; + + public static staticnullUri\Rfc3986\Uri::parse + stringuri + Uri\Rfc3986\UrinullbaseUrl&null; + + + Analyse une URI. + + + + + &reftitle.parameters; + + + uri + + + URI à analyser. + + + + + baseUrl + + + Lorsqu'une &string; est passée, uri est appliqué sur + baseUrl, si uri est une référence relative. + Si &null; est passé, ou si uri n'est pas une référence relative, alors + baseUrl n'a aucun effet. + + + + + + + + &reftitle.returnvalues; + + Retourne une instance de Uri\Rfc3986\Uri en cas de succès, ou &null; en cas d'échec. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::parse</methodname> + +toString(); +} else { + echo "URI invalide" +} +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::__construct + Uri\Rfc3986\Uri::resolve + Uri\WhatWg\Url::parse + + + + diff --git a/reference/uri/uri/rfc3986/uri/resolve.xml b/reference/uri/uri/rfc3986/uri/resolve.xml new file mode 100644 index 0000000000..88f42704f1 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/resolve.xml @@ -0,0 +1,97 @@ + + + + + Uri\Rfc3986\Uri::resolve + Résout une URI en utilisant l'objet courant comme URL de base + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::resolve + stringuri + + + Résout une URI — qui peut potentiellement être une référence relative — en utilisant l'objet courant comme URL de base. + + + + + &reftitle.parameters; + + + uri + + + Une URI à appliquer sur l'objet courant. + + + + + + + + &reftitle.returnvalues; + + Une nouvelle instance de Uri\Rfc3986\Uri. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::resolve</methodname> + +resolve("/foo"); + +echo $uri->toRawString(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::__construct + Uri\Rfc3986\Uri::parse + Uri\WhatWg\Url::resolve + + + + diff --git a/reference/uri/uri/rfc3986/uri/serialize.xml b/reference/uri/uri/rfc3986/uri/serialize.xml new file mode 100644 index 0000000000..733342098c --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/serialize.xml @@ -0,0 +1,59 @@ + + + + + Uri\Rfc3986\Uri::__serialize + Sérialise l'objet Uri + + + + &reftitle.description; + + public arrayUri\Rfc3986\Uri::__serialize + + + + Sérialise l'objet Uri\Rfc3986\Uri. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'URI sérialisée sous forme de &string;. + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::__unserialize + Uri\WhatWg\Url::__serialize + + + + diff --git a/reference/uri/uri/rfc3986/uri/torawstring.xml b/reference/uri/uri/rfc3986/uri/torawstring.xml new file mode 100644 index 0000000000..ab9065e29c --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/torawstring.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::toRawString + Recompose l'URI brute + + + + &reftitle.description; + + public stringUri\Rfc3986\Uri::toRawString + + + + Recompose l'URI brute (non normalisée) en une &string;. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'URI brute (non normalisée) recomposée sous forme de &string;. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::toRawString</methodname> + +toRawString(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::toString + Uri\WhatWg\Url::toAsciiString + Uri\WhatWg\Url::toUnicodeString + + + + diff --git a/reference/uri/uri/rfc3986/uri/tostring.xml b/reference/uri/uri/rfc3986/uri/tostring.xml new file mode 100644 index 0000000000..81a3c10854 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/tostring.xml @@ -0,0 +1,82 @@ + + + + + Uri\Rfc3986\Uri::toString + Recompose l'URI normalisée + + + + &reftitle.description; + + public stringUri\Rfc3986\Uri::toString + + + + Recompose l'URI normalisée en une &string;. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'URI normalisée recomposée sous forme de &string;. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::toString</methodname> + +toString(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::toRawString + Uri\WhatWg\Url::toAsciiString + Uri\WhatWg\Url::toUnicodeString + + + + diff --git a/reference/uri/uri/rfc3986/uri/unserialize.xml b/reference/uri/uri/rfc3986/uri/unserialize.xml new file mode 100644 index 0000000000..efed5716d2 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/unserialize.xml @@ -0,0 +1,78 @@ + + + + + Uri\Rfc3986\Uri::__unserialize + Désérialise le paramètre data en un objet Uri + + + + &reftitle.description; + + public voidUri\Rfc3986\Uri::__unserialize + arraydata + + + Désérialise un paramètre data en un objet Uri\Rfc3986\Uri. + + + + + &reftitle.parameters; + + + data + + + Les données sérialisées sous forme d'un array. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.errors; + + Si la méthode __unserialize est appelée sur une URI déjà existante, + une Error est lancée. + + + &uri.errors.invalidUriException; + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::__serialize + Uri\WhatWg\Url::__unserialize + + + + diff --git a/reference/uri/uri/rfc3986/uri/withfragment.xml b/reference/uri/uri/rfc3986/uri/withfragment.xml new file mode 100644 index 0000000000..fdc609fa84 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withfragment.xml @@ -0,0 +1,96 @@ + + + + + Uri\Rfc3986\Uri::withFragment + Modifie le composant fragment + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withFragment + stringnullfragment + + + Crée une nouvelle URI et modifie son composant fragment. + + + + + &reftitle.parameters; + + + fragment + + + Nouveau composant fragment. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withFragment</methodname> + +withFragment("bar"); + +echo $uri->getFragment(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getFragment + Uri\Rfc3986\Uri::getRawFragment + Uri\WhatWg\Url::withFragment + + + + diff --git a/reference/uri/uri/rfc3986/uri/withhost.xml b/reference/uri/uri/rfc3986/uri/withhost.xml new file mode 100644 index 0000000000..db739490bf --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withhost.xml @@ -0,0 +1,97 @@ + + + + + Uri\Rfc3986\Uri::withHost + Modifie le composant hôte + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withHost + stringnullhost + + + Crée une nouvelle URI et modifie son composant hôte. + + + + + &reftitle.parameters; + + + host + + + Nouveau composant hôte. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withHost</methodname> + +withHost("example.net"); + +echo $uri->getHost(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getHost + Uri\Rfc3986\Uri::getRawHost + Uri\WhatWg\Url::withHost + + + + diff --git a/reference/uri/uri/rfc3986/uri/withpath.xml b/reference/uri/uri/rfc3986/uri/withpath.xml new file mode 100644 index 0000000000..296201f5be --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withpath.xml @@ -0,0 +1,97 @@ + + + + + Uri\Rfc3986\Uri::withPath + Modifie le composant chemin + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withPath + stringpath + + + Crée une nouvelle URI et modifie son composant chemin. + + + + + &reftitle.parameters; + + + path + + + Nouveau composant chemin. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withPath</methodname> + +withPath("/baz"); + +echo $uri->getPath(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getPath + Uri\Rfc3986\Uri::getRawPath + Uri\WhatWg\Url::withPath + + + + diff --git a/reference/uri/uri/rfc3986/uri/withport.xml b/reference/uri/uri/rfc3986/uri/withport.xml new file mode 100644 index 0000000000..19e25980f4 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withport.xml @@ -0,0 +1,96 @@ + + + + + Uri\Rfc3986\Uri::withPort + Modifie le composant port + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withPort + intnullport + + + Crée une nouvelle URI et modifie son composant port. + + + + + &reftitle.parameters; + + + port + + + Nouveau composant port. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withPort</methodname> + +withPort(443); + +echo $uri->getPort(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getPort + Uri\WhatWg\Url::withPort + + + + diff --git a/reference/uri/uri/rfc3986/uri/withquery.xml b/reference/uri/uri/rfc3986/uri/withquery.xml new file mode 100644 index 0000000000..d1359a5bff --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withquery.xml @@ -0,0 +1,97 @@ + + + + + Uri\Rfc3986\Uri::withQuery + Modifie le composant requête + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withQuery + stringnullquery + + + Crée une nouvelle URI et modifie son composant requête. + + + + + &reftitle.parameters; + + + query + + + Nouveau composant requête. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withQuery</methodname> + +withQuery("foo=baz"); + +echo $uri->getQuery(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawQuery + Uri\Rfc3986\Uri::getQuery + Uri\WhatWg\Url::withQuery + + + + diff --git a/reference/uri/uri/rfc3986/uri/withscheme.xml b/reference/uri/uri/rfc3986/uri/withscheme.xml new file mode 100644 index 0000000000..58cd97c2cb --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withscheme.xml @@ -0,0 +1,97 @@ + + + + + Uri\Rfc3986\Uri::withScheme + Modifie le composant schéma + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withScheme + stringnullscheme + + + Crée une nouvelle URI et modifie son composant schéma. + + + + + &reftitle.parameters; + + + scheme + + + Nouveau composant schéma. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withScheme</methodname> + +withScheme("http"); + +echo $uri->getScheme(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawScheme + Uri\Rfc3986\Uri::getScheme + Uri\WhatWg\Url::withScheme + + + + diff --git a/reference/uri/uri/rfc3986/uri/withuserinfo.xml b/reference/uri/uri/rfc3986/uri/withuserinfo.xml new file mode 100644 index 0000000000..5624c84628 --- /dev/null +++ b/reference/uri/uri/rfc3986/uri/withuserinfo.xml @@ -0,0 +1,102 @@ + + + + + Uri\Rfc3986\Uri::withUserInfo + Modifie le composant userinfo + + + + &reftitle.description; + + public staticUri\Rfc3986\Uri::withUserInfo + #[\SensitiveParameter]stringnulluserinfo + + + Crée une nouvelle URI et modifie son composant userinfo. + + + + + &reftitle.parameters; + + + userinfo + + + Nouveau composant userinfo. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\Rfc3986\Uri modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUriException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\Rfc3986\Uri::withUserInfo</methodname> + +withUserInfo("userinfo"); + +echo $uri->getUserInfo(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::getRawUserInfo + Uri\Rfc3986\Uri::getUserInfo + Uri\Rfc3986\Uri::getRawUsername + Uri\Rfc3986\Uri::getUsername + Uri\Rfc3986\Uri::getRawPassword + Uri\Rfc3986\Uri::getPassword + Uri\WhatWg\Url::withUsername + Uri\WhatWg\Url::withPassword + + + + diff --git a/reference/uri/uri/whatwg/invalidurlexception/construct.xml b/reference/uri/uri/whatwg/invalidurlexception/construct.xml new file mode 100644 index 0000000000..a2fc1a5f30 --- /dev/null +++ b/reference/uri/uri/whatwg/invalidurlexception/construct.xml @@ -0,0 +1,80 @@ + + + + + Uri\WhatWg\InvalidUrlException::__construct + Construit un objet InvalidUrlException + + + + &reftitle.description; + + public Uri\WhatWg\InvalidUrlException::__construct + stringmessage"" + arrayerrors[] + intcode0 + Throwablenullprevious&null; + + + Construit un objet Uri\WhatWg\InvalidUrlException. + + + + + &reftitle.parameters; + + + message + + + Le message de l'exception. + + + + + errors + + + Un &array; d'objets Uri\WhatWg\UrlValidationError. + + + + + code + + + Le code de l'exception. + + + + + previous + + + L'exception précédente utilisée pour le chaînage d'exceptions. + + + + + + + diff --git a/reference/uri/uri/whatwg/url/construct.xml b/reference/uri/uri/whatwg/url/construct.xml new file mode 100644 index 0000000000..34404b71e2 --- /dev/null +++ b/reference/uri/uri/whatwg/url/construct.xml @@ -0,0 +1,89 @@ + + + + + Uri\WhatWg\Url::__construct + Construit l'objet Url + + + + &reftitle.description; + + public Uri\WhatWg\Url::__construct + stringuri + Uri\WhatWg\UrlnullbaseUrl&null; + arraysoftErrors&null; + + + Construit l'objet Uri\Rfc3986\Uri. + + + + + &reftitle.parameters; + + + uri + + + Une chaîne URL valide à analyser (par ex. /foo ou https://example.com/foo). + + + + + baseUrl + + + Lorsqu'une &string; est passée, uri est appliqué sur + baseUrl, si uri est une chaîne URL relative. + Si &null; est passé, ou si uri n'est pas une chaîne URL relative, alors + baseUrl n'a aucun effet. + + + + + softErrors + + + Un &array; pour passer par référence une liste d'instances de Uri\WhatWg\UrlValidationError + afin de fournir des informations étendues sur les erreurs déclenchées lors de l'analyse. + + + + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.seealso; + + Uri\WhatWg\Url::parse + Uri\WhatWg\Url::resolve + Uri\Rfc3986\Uri::__construct + + + + diff --git a/reference/uri/uri/whatwg/url/debuginfo.xml b/reference/uri/uri/whatwg/url/debuginfo.xml new file mode 100644 index 0000000000..4e9933d27b --- /dev/null +++ b/reference/uri/uri/whatwg/url/debuginfo.xml @@ -0,0 +1,58 @@ + + + + + Uri\WhatWg\Url::__debugInfo + Retourne l'état interne de l'URL + + + + &reftitle.description; + + public arrayUri\WhatWg\Url::__debugInfo + + + + Retourne l'état interne de l'URL. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'état interne de l'URL sous forme d'un &array;. + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::__debugInfo + + + + diff --git a/reference/uri/uri/whatwg/url/equals.xml b/reference/uri/uri/whatwg/url/equals.xml new file mode 100644 index 0000000000..1f1a681e9e --- /dev/null +++ b/reference/uri/uri/whatwg/url/equals.xml @@ -0,0 +1,101 @@ + + + + + Uri\WhatWg\Url::equals + Vérifie si deux URL sont équivalentes + + + + &reftitle.description; + + public boolUri\WhatWg\Url::equals + Uri\WhatWg\Urlurl + Uri\UriComparisonModecomparisonModeUri\UriComparisonMode::ExcludeFragment + + + Vérifie si deux URL sont équivalentes. + + + + + &reftitle.parameters; + + + url + + + URL à comparer avec l'URL courante. + + + + + comparisonMode + + + Indique si le composant fragment est pris en compte dans la comparaison + (Uri\UriComparisonMode::IncludeFragment) ou non + (Uri\UriComparisonMode::ExcludeFragment). Par défaut, le fragment est exclu. + + + + + + + + &reftitle.returnvalues; + + Retourne &true; si les deux URL sont équivalentes, ou &false; sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::equals</methodname> + +equals($url2)); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\Rfc3986\Uri::equals + + + + diff --git a/reference/uri/uri/whatwg/url/getasciihost.xml b/reference/uri/uri/whatwg/url/getasciihost.xml new file mode 100644 index 0000000000..07b69ca2eb --- /dev/null +++ b/reference/uri/uri/whatwg/url/getasciihost.xml @@ -0,0 +1,83 @@ + + + + + Uri\WhatWg\Url::getAsciiHost + Récupère le composant hôte sous forme de &string; ASCII + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getAsciiHost + + + + Récupère le composant hôte sous forme de &string; en utilisant la transcription punycode au lieu des caractères Unicode. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant hôte sous forme de &string; ASCII si le composant hôte existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getAsciiHost</methodname> + +getAsciiHost(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getUnicodeHost + Uri\WhatWg\Url::withHost + Uri\Rfc3986\Uri::getRawHost + Uri\Rfc3986\Uri::getHost + + + + diff --git a/reference/uri/uri/whatwg/url/getfragment.xml b/reference/uri/uri/whatwg/url/getfragment.xml new file mode 100644 index 0000000000..1215f6bc53 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getfragment.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::getFragment + Récupère le composant fragment + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getFragment + + + + Récupère le composant fragment. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant fragment sous forme de &string; si le composant fragment existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getFragment</methodname> + +getFragment(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withFragment + Uri\Rfc3986\Uri::getRawFragment + Uri\Rfc3986\Uri::getFragment + + + + diff --git a/reference/uri/uri/whatwg/url/getpassword.xml b/reference/uri/uri/whatwg/url/getpassword.xml new file mode 100644 index 0000000000..4c30533595 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getpassword.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::getPassword + Récupère le composant mot de passe + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getPassword + + + + Récupère le composant mot de passe. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant mot de passe sous forme de &string; si le composant mot de passe existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getPassword</methodname> + +getPassword(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withPassword + Uri\Rfc3986\Uri::getRawPassword + Uri\Rfc3986\Uri::getPassword + + + + diff --git a/reference/uri/uri/whatwg/url/getpath.xml b/reference/uri/uri/whatwg/url/getpath.xml new file mode 100644 index 0000000000..4906ef1897 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getpath.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::getPath + Récupère le composant chemin + + + + &reftitle.description; + + public stringUri\WhatWg\Url::getPath + + + + Récupère le composant chemin. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant chemin sous forme de &string;. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getPath</methodname> + +getPath(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withPath + Uri\Rfc3986\Uri::getRawPath + Uri\Rfc3986\Uri::getPath + + + + diff --git a/reference/uri/uri/whatwg/url/getport.xml b/reference/uri/uri/whatwg/url/getport.xml new file mode 100644 index 0000000000..a083e4968b --- /dev/null +++ b/reference/uri/uri/whatwg/url/getport.xml @@ -0,0 +1,81 @@ + + + + + Uri\WhatWg\Url::getPort + Récupère le composant port + + + + &reftitle.description; + + public intnullUri\WhatWg\Url::getPort + + + + Récupère le composant port. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant port sous forme d'un &integer; si le composant port existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getPort</methodname> + +getPort(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withPort + Uri\Rfc3986\Uri::getPort + + + + diff --git a/reference/uri/uri/whatwg/url/getquery.xml b/reference/uri/uri/whatwg/url/getquery.xml new file mode 100644 index 0000000000..f3884e3251 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getquery.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::getQuery + Récupère le composant requête + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getQuery + + + + Récupère le composant requête. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant requête sous forme de &string; si le composant requête existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getQuery</methodname> + +getQuery(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withQuery + Uri\Rfc3986\Uri::getRawQuery + Uri\Rfc3986\Uri::getQuery + + + + diff --git a/reference/uri/uri/whatwg/url/getscheme.xml b/reference/uri/uri/whatwg/url/getscheme.xml new file mode 100644 index 0000000000..6076c24bf4 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getscheme.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::getScheme + Récupère le composant schéma + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getScheme + + + + Récupère le composant schéma. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant schéma sous forme de &string; si le composant schéma existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getScheme</methodname> + +getScheme(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withScheme + Uri\Rfc3986\Uri::getRawScheme + Uri\Rfc3986\Uri::getScheme + + + + diff --git a/reference/uri/uri/whatwg/url/getunicodehost.xml b/reference/uri/uri/whatwg/url/getunicodehost.xml new file mode 100644 index 0000000000..1a0f77a5e8 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getunicodehost.xml @@ -0,0 +1,83 @@ + + + + + Uri\WhatWg\Url::getUnicodeHost + Récupère le composant hôte sous forme de &string; Unicode + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getUnicodeHost + + + + Récupère le composant hôte sous forme de &string;, qui peut contenir des caractères Unicode. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant hôte sous forme de &string; Unicode si le composant hôte existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getUnicodeHost</methodname> + +getUnicodeHost(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getAsciiHost + Uri\WhatWg\Url::withHost + Uri\Rfc3986\Uri::getRawHost + Uri\Rfc3986\Uri::getHost + + + + diff --git a/reference/uri/uri/whatwg/url/getusername.xml b/reference/uri/uri/whatwg/url/getusername.xml new file mode 100644 index 0000000000..ecf0724e84 --- /dev/null +++ b/reference/uri/uri/whatwg/url/getusername.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::getUsername + Récupère le composant nom d'utilisateur + + + + &reftitle.description; + + public stringnullUri\WhatWg\Url::getUsername + + + + Récupère le composant nom d'utilisateur. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne le composant nom d'utilisateur sous forme de &string; si le composant nom d'utilisateur existe, &null; est retourné sinon. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::getUsername</methodname> + +getUsername(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::withUsername + Uri\Rfc3986\Uri::getRawUsername + Uri\Rfc3986\Uri::getUsername + + + + diff --git a/reference/uri/uri/whatwg/url/parse.xml b/reference/uri/uri/whatwg/url/parse.xml new file mode 100644 index 0000000000..5915605674 --- /dev/null +++ b/reference/uri/uri/whatwg/url/parse.xml @@ -0,0 +1,117 @@ + + + + + Uri\WhatWg\Url::parse + Analyse une URL + + + + &reftitle.description; + + public static staticnullUri\WhatWg\Url::parse + stringuri + Uri\WhatWg\UrlnullbaseUrl&null; + arrayerrors&null; + + + Analyse une URL. + + + + + &reftitle.parameters; + + + uri + + + Une chaîne URL valide à analyser (par ex. /foo ou https://example.com/foo). + + + + + baseUrl + + + Lorsqu'une &string; est passée, uri est appliqué sur + baseUrl, si uri est une chaîne URL relative. + Si &null; est passé, ou si uri n'est pas une chaîne URL relative, alors + baseUrl n'a aucun effet. + + + + + errors + + + Un &array; pour passer par référence une liste d'instances de Uri\WhatWg\UrlValidationError + afin de fournir des informations étendues sur les erreurs déclenchées lors de l'analyse. + + + + + + + + &reftitle.returnvalues; + + Retourne une instance de Uri\WhatWg\Url en cas de succès, ou &null; en cas d'échec. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::parse</methodname> + +toAsciiString(); +} else { + echo "URL invalide" +} +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::__construct + Uri\WhatWg\Url::resolve + Uri\Rfc3986\Uri::parse + + + + diff --git a/reference/uri/uri/whatwg/url/resolve.xml b/reference/uri/uri/whatwg/url/resolve.xml new file mode 100644 index 0000000000..976d998b93 --- /dev/null +++ b/reference/uri/uri/whatwg/url/resolve.xml @@ -0,0 +1,108 @@ + + + + + Uri\WhatWg\Url::resolve + Résout une URL en utilisant l'objet courant comme URL de base + + + + &reftitle.description; + + public staticUri\WhatWg\Url::resolve + stringuri + arraysoftErrors&null; + + + Résout une chaîne URL valide — qui peut potentiellement être une chaîne URL relative — en utilisant l'objet courant comme URL de base. + + + + + &reftitle.parameters; + + + uri + + + Une chaîne URL valide (par ex. /foo ou https://example.com/foo) à appliquer + sur l'objet courant. + + + + + softErrors + + + Un &array; pour passer par référence une liste d'instances de Uri\WhatWg\UrlValidationError + afin de fournir des informations étendues sur les erreurs non fatales déclenchées lors de la résolution de la référence. + + + + + + + + &reftitle.returnvalues; + + Une nouvelle instance de Uri\WhatWg\Url. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::resolve</methodname> + +resolve("/foo"); + +echo $url->toAsciiString(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::__construct + Uri\WhatWg\Url::parse + Uri\Rfc3986\Uri::resolve + + + + diff --git a/reference/uri/uri/whatwg/url/serialize.xml b/reference/uri/uri/whatwg/url/serialize.xml new file mode 100644 index 0000000000..799ba4e271 --- /dev/null +++ b/reference/uri/uri/whatwg/url/serialize.xml @@ -0,0 +1,59 @@ + + + + + Uri\WhatWg\Url::__serialize + Sérialise l'objet Url + + + + &reftitle.description; + + public arrayUri\WhatWg\Url::__serialize + + + + Sérialise l'objet Uri\WhatWg\Url. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'URL sérialisée sous forme d'un &array;. + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::__unserialize + Uri\Rfc3986\Uri::__serialize + + + + diff --git a/reference/uri/uri/whatwg/url/toasciistring.xml b/reference/uri/uri/whatwg/url/toasciistring.xml new file mode 100644 index 0000000000..77a1f52cbb --- /dev/null +++ b/reference/uri/uri/whatwg/url/toasciistring.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::toAsciiString + Recompose l'URL sous forme de &string; ASCII + + + + &reftitle.description; + + public stringUri\WhatWg\Url::toAsciiString + + + + Recompose l'URL sous forme de &string; ASCII, en utilisant la transcription punycode au lieu des caractères Unicode dans le composant hôte. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'URL recomposée sous forme de &string; ASCII. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::toAsciiString</methodname> + +toAsciiString(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::toUnicodeString + Uri\Rfc3986\Uri::toRawString + Uri\Rfc3986\Uri::toString + + + + diff --git a/reference/uri/uri/whatwg/url/tounicodestring.xml b/reference/uri/uri/whatwg/url/tounicodestring.xml new file mode 100644 index 0000000000..02c2c9581a --- /dev/null +++ b/reference/uri/uri/whatwg/url/tounicodestring.xml @@ -0,0 +1,82 @@ + + + + + Uri\WhatWg\Url::toUnicodeString + Recompose l'URL sous forme de &string; Unicode + + + + &reftitle.description; + + public stringUri\WhatWg\Url::toUnicodeString + + + + Recompose l'URL sous forme de &string;, où le composant hôte peut contenir des caractères Unicode. + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + Retourne l'URL recomposée sous forme de &string; Unicode. + + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::toUnicodeString</methodname> + +toUnicodeString(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::toAsciiString + Uri\Rfc3986\Uri::toRawString + Uri\Rfc3986\Uri::toString + + + + diff --git a/reference/uri/uri/whatwg/url/unserialize.xml b/reference/uri/uri/whatwg/url/unserialize.xml new file mode 100644 index 0000000000..e737098a2b --- /dev/null +++ b/reference/uri/uri/whatwg/url/unserialize.xml @@ -0,0 +1,78 @@ + + + + + Uri\WhatWg\Url::__unserialize + Désérialise le paramètre data en un objet Url + + + + &reftitle.description; + + public voidUri\WhatWg\Url::__unserialize + arraydata + + + Désérialise un paramètre data en un objet Uri\WhatWg\Url. + + + + + &reftitle.parameters; + + + data + + + Les données sérialisées sous forme d'un array. + + + + + + + + &reftitle.returnvalues; + + &return.void; + + + + + &reftitle.errors; + + Si la méthode __unserialize est appelée sur une URL déjà existante, + une Error est lancée. + + + &uri.errors.invalidUrlException; + + + + &reftitle.seealso; + + Uri\WhatWg\Url::__serialize + Uri\Rfc3986\Uri::__unserialize + + + + diff --git a/reference/uri/uri/whatwg/url/withfragment.xml b/reference/uri/uri/whatwg/url/withfragment.xml new file mode 100644 index 0000000000..00b8dfa0de --- /dev/null +++ b/reference/uri/uri/whatwg/url/withfragment.xml @@ -0,0 +1,96 @@ + + + + + Uri\WhatWg\Url::withFragment + Modifie le composant fragment + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withFragment + stringnullfragment + + + Crée une nouvelle URL et modifie son composant fragment. + + + + + &reftitle.parameters; + + + fragment + + + Nouveau composant fragment. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withFragment</methodname> + +withFragment("bar"); + +echo $url->getFragment(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getFragment + Uri\Rfc3986\Uri::withFragment + + + + diff --git a/reference/uri/uri/whatwg/url/withhost.xml b/reference/uri/uri/whatwg/url/withhost.xml new file mode 100644 index 0000000000..0210a96980 --- /dev/null +++ b/reference/uri/uri/whatwg/url/withhost.xml @@ -0,0 +1,97 @@ + + + + + Uri\WhatWg\Url::withHost + Modifie le composant hôte + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withHost + stringnullhost + + + Crée une nouvelle URL et modifie son composant hôte. + + + + + &reftitle.parameters; + + + host + + + Nouveau composant hôte. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withHost</methodname> + +withHost("example.net"); + +echo $url->getAsciiHost(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getAsciiHost + Uri\WhatWg\Url::getUnicodeHost + Uri\Rfc3986\Uri::withHost + + + + diff --git a/reference/uri/uri/whatwg/url/withpassword.xml b/reference/uri/uri/whatwg/url/withpassword.xml new file mode 100644 index 0000000000..0c7b0d17fa --- /dev/null +++ b/reference/uri/uri/whatwg/url/withpassword.xml @@ -0,0 +1,97 @@ + + + + + Uri\WhatWg\Url::withPassword + Modifie le composant mot de passe + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withPassword + #[\SensitiveParameter]stringnullpassword + + + Crée une nouvelle URL et modifie son composant mot de passe. + + + + + &reftitle.parameters; + + + password + + + Nouveau composant mot de passe. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withPassword</methodname> + +withPassword("pass"); + +echo $url->getPassword(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getPassword + Uri\WhatWg\Url::getUsername + Uri\Rfc3986\Uri::withUserInfo + + + + diff --git a/reference/uri/uri/whatwg/url/withpath.xml b/reference/uri/uri/whatwg/url/withpath.xml new file mode 100644 index 0000000000..0b58dcba6e --- /dev/null +++ b/reference/uri/uri/whatwg/url/withpath.xml @@ -0,0 +1,96 @@ + + + + + Uri\WhatWg\Url::withPath + Modifie le composant chemin + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withPath + stringpath + + + Crée une nouvelle URL et modifie son composant chemin. + + + + + &reftitle.parameters; + + + path + + + Nouveau composant chemin. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withPath</methodname> + +withPath("/baz"); + +echo $url->getPath(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getPath + Uri\Rfc3986\Uri::withPath + + + + diff --git a/reference/uri/uri/whatwg/url/withport.xml b/reference/uri/uri/whatwg/url/withport.xml new file mode 100644 index 0000000000..5c2ad54a74 --- /dev/null +++ b/reference/uri/uri/whatwg/url/withport.xml @@ -0,0 +1,96 @@ + + + + + Uri\WhatWg\Url::withPort + Modifie le composant port + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withPort + intnullport + + + Crée une nouvelle URL et modifie son composant port. + + + + + &reftitle.parameters; + + + port + + + Nouveau composant port. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withPort</methodname> + +withPort(443); + +echo $url->getPort(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getPort + Uri\Rfc3986\Uri::withPort + + + + diff --git a/reference/uri/uri/whatwg/url/withquery.xml b/reference/uri/uri/whatwg/url/withquery.xml new file mode 100644 index 0000000000..ac8a09ed3c --- /dev/null +++ b/reference/uri/uri/whatwg/url/withquery.xml @@ -0,0 +1,96 @@ + + + + + Uri\WhatWg\Url::withQuery + Modifie le composant requête + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withQuery + stringnullquery + + + Crée une nouvelle URL et modifie son composant requête. + + + + + &reftitle.parameters; + + + query + + + Nouveau composant requête. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withQuery</methodname> + +withQuery("foo=baz"); + +echo $url->getQuery(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getQuery + Uri\Rfc3986\Uri::withQuery + + + + diff --git a/reference/uri/uri/whatwg/url/withscheme.xml b/reference/uri/uri/whatwg/url/withscheme.xml new file mode 100644 index 0000000000..dca79fd572 --- /dev/null +++ b/reference/uri/uri/whatwg/url/withscheme.xml @@ -0,0 +1,96 @@ + + + + + Uri\WhatWg\Url::withScheme + Modifie le composant schéma + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withScheme + stringscheme + + + Crée une nouvelle URL et modifie son composant schéma. + + + + + &reftitle.parameters; + + + scheme + + + Nouveau composant schéma. + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withScheme</methodname> + +withScheme("http"); + +echo $url->getScheme(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getScheme + Uri\Rfc3986\Uri::withScheme + + + + diff --git a/reference/uri/uri/whatwg/url/withusername.xml b/reference/uri/uri/whatwg/url/withusername.xml new file mode 100644 index 0000000000..a1faf04f15 --- /dev/null +++ b/reference/uri/uri/whatwg/url/withusername.xml @@ -0,0 +1,98 @@ + + + + + Uri\WhatWg\Url::withUsername + Modifie le composant nom d'utilisateur + + + + &reftitle.description; + + public staticUri\WhatWg\Url::withUsername + stringnullusername + + + Crée une nouvelle URL et modifie son composant nom d'utilisateur. + + + + + &reftitle.parameters; + + + username + + + Nouveau composant nom d'utilisateur. + + + + + + + + + &reftitle.returnvalues; + + L'instance Uri\WhatWg\Url modifiée. + + + + + &reftitle.errors; + &uri.errors.invalidUrlException; + + + + &reftitle.examples; + + Exemple simple avec <methodname>Uri\WhatWg\Url::withUsername</methodname> + +withUsername("usr"); + +echo $url->getUsername(); +?> +]]> + + &example.outputs; + + + + + + + + &reftitle.seealso; + + Uri\WhatWg\Url::getUsername + Uri\WhatWg\Url::getPassword + Uri\Rfc3986\Uri::withUserInfo + + + + diff --git a/reference/uri/uri/whatwg/urlvalidationerror/construct.xml b/reference/uri/uri/whatwg/urlvalidationerror/construct.xml new file mode 100644 index 0000000000..f52664d07c --- /dev/null +++ b/reference/uri/uri/whatwg/urlvalidationerror/construct.xml @@ -0,0 +1,72 @@ + + + + + Uri\WhatWg\UrlValidationError::__construct + Construit un objet UrlValidationError + + + + &reftitle.description; + + public Uri\WhatWg\UrlValidationError::__construct + stringcontext + Uri\WhatWg\UrlValidationErrorTypetype + boolfailure + + + Construit un objet Uri\WhatWg\UrlValidationError. + + + + + &reftitle.parameters; + + + context + + + L'URL d'entrée au point où l'erreur a été détectée. + + + + + type + + + Le type d'erreur. + + + + + failure + + + Si &true;, l'erreur a causé le rejet de l'URL comme invalide. Si &false;, + l'erreur est une erreur non fatale qui a été automatiquement corrigée lors de l'analyse. + + + + + + +