<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.yaf-dispatcher.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'yaf-dispatcher.dispatch.php',
    1 => 'Yaf_Dispatcher::dispatch',
    2 => 'Dispatch a request',
  ),
  'up' => 
  array (
    0 => 'class.yaf-dispatcher.php',
    1 => 'Yaf_Dispatcher',
  ),
  'prev' => 
  array (
    0 => 'yaf-dispatcher.disableview.php',
    1 => 'Yaf_Dispatcher::disableView',
  ),
  'next' => 
  array (
    0 => 'yaf-dispatcher.enableview.php',
    1 => 'Yaf_Dispatcher::enableView',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_dispatcher/dispatch.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-dispatcher.dispatch" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Dispatcher::dispatch</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Dispatcher::dispatch</span> &mdash; <span class="dc-title">Dispatch a request</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-dispatcher.dispatch-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Yaf_Dispatcher::dispatch</strong></span>(<span class="methodparam"><span class="type"><a href="class.yaf-request-abstract.php" class="type Yaf_Request_Abstract">Yaf_Request_Abstract</a></span> <code class="parameter">$request</code></span>): <span class="type"><a href="class.yaf-response-abstract.php" class="type Yaf_Response_Abstract">Yaf_Response_Abstract</a></span></div>

  <p class="para rdfs-comment">
   This method does the heavy work of the
   <span class="classname"><a href="class.yaf-dispatcher.php" class="classname">Yaf_Dispatcher</a></span>. It take a request object.
  </p>
  <p class="para">
   The dispatch process has three distinct events:
  <ul class="simplelist">
   <li>Routing</li>
   <li>Dispatching</li>
   <li>Response</li>
  </ul>
   Routing takes place exactly once, using the values in the request object
   when <span class="function"><strong>Yaf_Dispatcher::dispatch()</strong></span> is called. Dispatching takes place in a loop; a request may
   either indicate multiple actions to dispatch, or the controller or a plugin
   may reset the request object to force additional actions to dispatch(see
   <span class="classname"><a href="class.yaf-plugin-abstract.php" class="classname">Yaf_Plugin_Abstract</a></span>. When all is done, the 
   <span class="classname"><a href="class.yaf-dispatcher.php" class="classname">Yaf_Dispatcher</a></span> returns a response.
  </p>



 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-dispatcher.dispatch-parameters">
  <h3 class="title">Параметри</h3>
  <dl>
   
    <dt><code class="parameter">request</code></dt>
    <dd>
     <p class="para">
      
     </p>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-yaf-dispatcher.dispatch-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
  </p>
 </div>



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