<?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 => 'en',
  ),
  'this' => 
  array (
    0 => 'yaf-request-abstract.isdispatched.php',
    1 => 'Yaf_Request_Abstract::isDispatched',
    2 => 'Determine if the request is dispatched',
  ),
  'up' => 
  array (
    0 => 'class.yaf-request-abstract.php',
    1 => 'Yaf_Request_Abstract',
  ),
  'prev' => 
  array (
    0 => 'yaf-request-abstract.isdelete.php',
    1 => 'Yaf_Request_Abstract::isDelete',
  ),
  'next' => 
  array (
    0 => 'yaf-request-abstract.isget.php',
    1 => 'Yaf_Request_Abstract::isGet',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_request_abstract/isdispatched.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

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

 </div>

 <div class="refsect1 description" id="refsect1-yaf-request-abstract.isdispatched-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="modifier">function</span> <span class="methodname"><strong>Yaf_Request_Abstract::isDispatched</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 dispatched.</p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-request-abstract.isdispatched-parameters">
  <h3 class="title">Parameters</h3>
  <p class="simpara">This function has no parameters.</p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-yaf-request-abstract.isdispatched-returnvalues">
  <h3 class="title">Return Values</h3>
<p class="simpara">Returns <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> if the request has been dispatched, <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.isdispatched-examples">
  <h3 class="title">Examples</h3>
  <div class="example" id="example-1">
   <p><strong>Example #1 <span class="methodname"><strong>Yaf_Request_Abstract::isDispatched()</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">IndexController </span><span style="color: #007700">extends </span><span style="color: #0000BB">Yaf_Controller_Abstract
</span><span style="color: #007700">{
    public function </span><span style="color: #0000BB">indexAction</span><span style="color: #007700">()
    {
        </span><span style="color: #FF8000">// Stop the dispatch loop, no further action will be dispatched
        </span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getRequest</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">setDispatched</span><span style="color: #007700">();

        </span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$this</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">getRequest</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">isDispatched</span><span style="color: #007700">());
    }
}
</span><span style="color: #0000BB">?&gt;</span></code></pre></div>
   </div>

   <div class="example-contents"><p>The above example will output
something similar to:</p></div>
   <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">bool(true)</pre>
</div>
   </div>
  </div>
 </div>


 <div class="refsect1 seealso" id="refsect1-yaf-request-abstract.isdispatched-seealso">
  <h3 class="title">See Also</h3>
  <ul class="simplelist">
   <li><span class="methodname"><a href="yaf-dispatcher.dispatch.php" class="methodname" rel="rdfs-seeAlso">Yaf_Dispatcher::dispatch()</a> - Dispatch a request</span></li>
   <li><span class="methodname"><a href="yaf-request-abstract.setdispatched.php" class="methodname" rel="rdfs-seeAlso">Yaf_Request_Abstract::setDispatched()</a> - Mark the request as dispatched</span></li>
  </ul>
 </div>

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