<?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-simple.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaf-request-simple.construct.php',
    1 => 'Yaf_Request_Simple::__construct',
    2 => 'Constructor of Yaf_Request_Simple',
  ),
  'up' => 
  array (
    0 => 'class.yaf-request-simple.php',
    1 => 'Yaf_Request_Simple',
  ),
  'prev' => 
  array (
    0 => 'class.yaf-request-simple.php',
    1 => 'Yaf_Request_Simple',
  ),
  'next' => 
  array (
    0 => 'class.yaf-response-abstract.php',
    1 => 'Yaf_Response_Abstract',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_request_simple/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

 </div>

 <div class="refsect1 description" id="refsect1-yaf-request-simple.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_Simple::__construct</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$method</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$module</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$controller</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$action</code><span class="initializer"> = ?</span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$params</code><span class="initializer"> = ?</span></span><br>)</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-simple.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-simple.construct-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">

  </p>
 </div>



 <div class="refsect1 examples" id="refsect1-yaf-request-simple.construct-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaf_Request_Simple::__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">/**
 * In a CLI script, build a request that skips the routing
 * process by giving the MVC names directly.
 */
</span><span style="color: #0000BB">$request </span><span style="color: #007700">= new </span><span style="color: #0000BB">Yaf_Request_Simple</span><span style="color: #007700">(
    </span><span style="color: #DD0000">"CLI"</span><span style="color: #007700">,            </span><span style="color: #FF8000">// method
    </span><span style="color: #DD0000">"Index"</span><span style="color: #007700">,          </span><span style="color: #FF8000">// module
    </span><span style="color: #DD0000">"Product"</span><span style="color: #007700">,        </span><span style="color: #FF8000">// controller
    </span><span style="color: #DD0000">"detail"</span><span style="color: #007700">,         </span><span style="color: #FF8000">// action
    </span><span style="color: #007700">array(</span><span style="color: #DD0000">"id" </span><span style="color: #007700">=&gt; </span><span style="color: #0000BB">10</span><span style="color: #007700">) </span><span style="color: #FF8000">// request parameters
</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">isRouted</span><span style="color: #007700">()); </span><span style="color: #FF8000">/* requests with MVC names are pre-routed */
</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">getModuleName</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">getControllerName</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">getActionName</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">getParam</span><span style="color: #007700">(</span><span style="color: #DD0000">"id"</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">bool(true)
string(5) &quot;Index&quot;
string(7) &quot;Product&quot;
string(6) &quot;detail&quot;
int(10)</pre>
</div>
   </div>
  </div>
 </div>



 <div class="refsect1 seealso" id="refsect1-yaf-request-simple.construct-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="classname"><a href="class.yaf-request-http.php" class="classname">Yaf_Request_Http</a></span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.isrouted.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::isRouted()</a> - Determine if the request has been routed</span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.getparam.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::getParam()</a> - Retrieve a parameter</span></li>
  </ul>
 </div>


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