<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.uri-whatwg-url.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'fr',
  ),
  'this' => 
  array (
    0 => 'uri-whatwg-url.construct.php',
    1 => 'Uri\\WhatWg\\Url::__construct',
    2 => 'Construit l\'objet Url',
  ),
  'up' => 
  array (
    0 => 'class.uri-whatwg-url.php',
    1 => 'Uri\\WhatWg\\Url',
  ),
  'prev' => 
  array (
    0 => 'class.uri-whatwg-url.php',
    1 => 'Uri\\WhatWg\\Url',
  ),
  'next' => 
  array (
    0 => 'uri-whatwg-url.debuginfo.php',
    1 => 'Uri\\WhatWg\\Url::__debugInfo',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    'path' => 'reference/uri/uri/whatwg/url/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="uri-whatwg-url.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Uri\WhatWg\Url::__construct</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.5.0)</p><p class="refpurpose"><span class="refname">Uri\WhatWg\Url::__construct</span> &mdash; <span class="dc-title">Construit l&#039;objet Url</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-uri-whatwg-url.construct-description">
  <h3 class="title">Description</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Uri\WhatWg\Url::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$uri</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.uri-whatwg-url.php" class="type Uri\WhatWg\Url">Uri\WhatWg\Url</a></span></span> <code class="parameter">$baseUrl</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter reference">&$softErrors</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>)</div>

  <p class="simpara">
   Construit l&#039;objet <span class="classname"><a href="class.uri-rfc3986-uri.php" class="classname">Uri\Rfc3986\Uri</a></span>.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-uri-whatwg-url.construct-parameters">
  <h3 class="title">Liste de paramètres</h3>
  <dl>
   
    <dt><code class="parameter">uri</code></dt>
    <dd>
     <span class="simpara">
      Une chaîne URL valide à analyser (par ex. <code class="literal">/foo</code> ou <code class="literal">https://example.com/foo</code>).
     </span>
    </dd>
   
   
    <dt><code class="parameter">baseUrl</code></dt>
    <dd>
     <span class="simpara">
      Lorsqu&#039;une <a href="language.types.string.php" class="link">chaîne de caractères</a> est passée, <code class="parameter">uri</code> est appliqué sur
      <code class="parameter">baseUrl</code>, si <code class="parameter">uri</code> est une chaîne URL relative.
      Si <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> est passé, ou si <code class="parameter">uri</code> n&#039;est pas une chaîne URL relative, alors
      <code class="parameter">baseUrl</code> n&#039;a aucun effet.
     </span>
    </dd>
   
   
    <dt><code class="parameter">softErrors</code></dt>
    <dd>
     <span class="simpara">
      Un <a href="language.types.array.php" class="link">tableau</a> pour passer par référence une liste d&#039;instances de <span class="classname"><a href="class.uri-whatwg-urlvalidationerror.php" class="classname">Uri\WhatWg\UrlValidationError</a></span>
      afin de fournir des informations étendues sur les erreurs déclenchées lors de l&#039;analyse.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 errors" id="refsect1-uri-whatwg-url.construct-errors">
  <h3 class="title">Erreurs / Exceptions</h3>
  
  <p class="simpara">
   Si l&#039;URL résultante est invalide, une exception <span class="exceptionname"><a href="class.uri-whatwg-invalidurlexception.php" class="exceptionname">Uri\WhatWg\InvalidUrlException</a></span> est lancée.
  </p>

 </div>


 <div class="refsect1 seealso" id="refsect1-uri-whatwg-url.construct-seealso">
  <h3 class="title">Voir aussi</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="uri-whatwg-url.parse.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::parse()</a> - Analyse une URL</span></li>
   <li><span class="methodname"><a href="uri-whatwg-url.resolve.php" class="methodname" rel="rdfs-seeAlso">Uri\WhatWg\Url::resolve()</a> - R&eacute;sout une URL en utilisant l'objet courant comme URL de base</span></li>
   <li><span class="methodname"><a href="uri-rfc3986-uri.construct.php" class="methodname" rel="rdfs-seeAlso">Uri\Rfc3986\Uri::__construct()</a> - Construit l'objet Uri</span></li>
  </ul>
 </div>

</div><?php manual_footer($setup); ?>