<?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-abstract.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaf-request-abstract.isrouted.php',
    1 => 'Yaf_Request_Abstract::isRouted',
    2 => 'Determine if the request has been routed',
  ),
  'up' => 
  array (
    0 => 'class.yaf-request-abstract.php',
    1 => 'Yaf_Request_Abstract',
  ),
  'prev' => 
  array (
    0 => 'yaf-request-abstract.isput.php',
    1 => 'Yaf_Request_Abstract::isPut',
  ),
  'next' => 
  array (
    0 => 'yaf-request-abstract.isxmlhttprequest.php',
    1 => 'Yaf_Request_Abstract::isXmlHttpRequest',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_request_abstract/isrouted.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-request-abstract.isrouted" class="refentry">
 <div class="refnamediv">
<h1 class="refname">Yaf_Request_Abstract::isRouted</h1>
<p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Request_Abstract::isRouted</span> &mdash; <span class="dc-title">Determine if the request has been routed</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-request-abstract.isrouted-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>Yaf_Request_Abstract::isRouted</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">Determine whether the request has been routed.</p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-request-abstract.isrouted-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-abstract.isrouted-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
<p class="simpara">Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the request has been routed, <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> otherwise.</p>
 </div>


 <div class="refsect1 examples" id="refsect1-yaf-request-abstract.isrouted-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaf_Request_Abstract::isRouted()</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: #007700">class </span><span style="color: #0000BB">ApiRouter </span><span style="color: #007700">extends </span><span style="color: #0000BB">Yaf_Route_Interface
</span><span style="color: #007700">{
    public function </span><span style="color: #0000BB">route</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaf_Request_Abstract $request</span><span style="color: #007700">)
    {
        </span><span style="color: #FF8000">// Skip if another router already routed this request
        </span><span style="color: #007700">if (</span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">isRouted</span><span style="color: #007700">()) {
            return </span><span style="color: #0000BB">false</span><span style="color: #007700">;
        }

        if (</span><span style="color: #0000BB">0 </span><span style="color: #007700">=== </span><span style="color: #0000BB">strpos</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: #DD0000">"/api/"</span><span style="color: #007700">)) {
            </span><span style="color: #0000BB">$request</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">setControllerName</span><span style="color: #007700">(</span><span style="color: #DD0000">"Api"</span><span style="color: #007700">)
                    -&gt;</span><span style="color: #0000BB">setActionName</span><span style="color: #007700">(</span><span style="color: #DD0000">"handle"</span><span style="color: #007700">);
            return </span><span style="color: #0000BB">true</span><span style="color: #007700">;
        }

        return </span><span style="color: #0000BB">false</span><span style="color: #007700">;
    }

    public function </span><span style="color: #0000BB">assemble</span><span style="color: #007700">(array </span><span style="color: #0000BB">$info</span><span style="color: #007700">, array </span><span style="color: #0000BB">$query </span><span style="color: #007700">= </span><span style="color: #0000BB">null</span><span style="color: #007700">) {}
}
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-request-abstract.isrouted-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="yaf-router.route.php" class="methodname" rel="rdfs-seeAlso">Yaf_Router::route()</a> - Route a request</span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.setrouted.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::setRouted()</a> - Mark the request as routed</span></li>
  </ul>
 </div>

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