<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yaf-request-http.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaf-request-http.construct.php',
    1 => 'Yaf_Request_Http::__construct',
    2 => 'Constructor of Yaf_Request_Http',
  ),
  'up' => 
  array (
    0 => 'class.yaf-request-http.php',
    1 => 'Yaf_Request_Http',
  ),
  'prev' => 
  array (
    0 => 'class.yaf-request-http.php',
    1 => 'Yaf_Request_Http',
  ),
  'next' => 
  array (
    0 => 'class.yaf-request-simple.php',
    1 => 'Yaf_Request_Simple',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_request_http/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-request-http.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Request_Http::__construct</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Request_Http::__construct</span> &mdash; <span class="dc-title">Constructor of Yaf_Request_Http</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-request-http.construct-description">
  <h3 class="title">Açıklama</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>Yaf_Request_Http::__construct</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$request_uri</code><span class="initializer"> = ?</span></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$base_uri</code><span class="initializer"> = ?</span></span>)</div>

  <p class="para rdfs-comment">

  </p>

  <div class="warning"><strong class="warning">Uyarı</strong><p class="simpara">Bu işlev hala
belgelendirilmemiştir; sadece bağımsız değişken listesi
mevcuttur.</p></div>

 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-request-http.construct-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">Bu işlevin bağımsız değişkeni yoktur.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaf-request-http.construct-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">

  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-yaf-request-http.construct-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaf_Request_Http::__construct()</strong></span> example</strong></p>
   <div class="example-contents">
<div class="phpcode"><pre><code style="color: #000000"><span style="color: #0000BB">&lt;?php
</span><span style="color: #FF8000">/**
 * Build a http request explicitly with an URI and a base URI.
 *
 * If the request URI is omitted, it is retrieved from the usual
 * $_SERVER variables ($_SERVER["PATH_INFO"], $_SERVER["REQUEST_URI"], ...).
 */
</span><span style="color: #0000BB">$request </span><span style="color: #007700">= new </span><span style="color: #0000BB">Yaf_Request_Http</span><span style="color: #007700">(</span><span style="color: #DD0000">"/product/detail/id/10"</span><span style="color: #007700">, </span><span style="color: #DD0000">"/product"</span><span style="color: #007700">);

</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getMethod</span><span style="color: #007700">());
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getRequestUri</span><span style="color: #007700">());
</span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getBaseUri</span><span style="color: #007700">());
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>
Yukarıdaki örnek şuna benzer bir çıktı üretir:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">string(3) &quot;GET&quot;
string(21) &quot;/product/detail/id/10&quot;
string(8) &quot;/product&quot;</pre>
</div>
   </div>
  </div>
 </div>



 <div class="refsect1 seealso" id="refsect1-yaf-request-http.construct-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="classname"><a href="class.yaf-request-simple.php" class="classname">Yaf_Request_Simple</a></span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.getmethod.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::getMethod()</a> - Retrieve the request method</span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.getrequesturi.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::getRequestUri()</a> - Retrieve the request URI</span></li>
  </ul>
 </div>


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