<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'yaf-dispatcher.getresponse.php',
    1 => 'Yaf_Dispatcher::getResponse',
    2 => 'Get the response object',
  ),
  'up' => 
  array (
    0 => 'class.yaf-dispatcher.php',
    1 => 'Yaf_Dispatcher',
  ),
  'prev' => 
  array (
    0 => 'yaf-dispatcher.getrequest.php',
    1 => 'Yaf_Dispatcher::getRequest',
  ),
  'next' => 
  array (
    0 => 'yaf-dispatcher.getrouter.php',
    1 => 'Yaf_Dispatcher::getRouter',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/yaf/yaf_dispatcher/getresponse.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="yaf-dispatcher.getresponse" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Yaf_Dispatcher::getResponse</h1>
  <p class="verinfo">(Yaf &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">Yaf_Dispatcher::getResponse</span> &mdash; <span class="dc-title">Get the response object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-yaf-dispatcher.getresponse-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_Dispatcher::getResponse</strong></span>(): <span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="class.yaf-response-abstract.php" class="type Yaf_Response_Abstract">Yaf_Response_Abstract</a></span></span></div>

  <p class="simpara">
   Retrieve the <span class="classname"><a href="class.yaf-response-abstract.php" class="classname">Yaf_Response_Abstract</a></span> instance used
   by the dispatcher.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-yaf-dispatcher.getresponse-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-dispatcher.getresponse-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   The <span class="classname"><a href="class.yaf-response-abstract.php" class="classname">Yaf_Response_Abstract</a></span> instance, or <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> if
   the application is not initialized.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-yaf-dispatcher.getresponse-examples">
  <h3 class="title">Örnekler</h3>
  <div class="example" id="example-1">
   <p><strong>Örnek 1 <span class="methodname"><strong>Yaf_Dispatcher::getResponse()</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">CharsetPlugin </span><span style="color: #007700">extends </span><span style="color: #0000BB">Yaf_Plugin_Abstract
</span><span style="color: #007700">{
    public function </span><span style="color: #0000BB">preDispatch</span><span style="color: #007700">(</span><span style="color: #0000BB">Yaf_Request_Abstract $request</span><span style="color: #007700">, </span><span style="color: #0000BB">Yaf_Response_Abstract $response</span><span style="color: #007700">)
    {
        </span><span style="color: #FF8000">// Same response object as the one held by the dispatcher
        </span><span style="color: #0000BB">Yaf_Dispatcher</span><span style="color: #007700">::</span><span style="color: #0000BB">getInstance</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">getResponse</span><span style="color: #007700">()-&gt;</span><span style="color: #0000BB">setHeader</span><span style="color: #007700">(
            </span><span style="color: #DD0000">"Content-Type"</span><span style="color: #007700">, </span><span style="color: #DD0000">"text/html; charset=utf-8"
        </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-dispatcher.getresponse-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="methodname"><a href="yaf-dispatcher.setresponse.php" class="methodname" rel="rdfs-seeAlso">Yaf_Dispatcher::setResponse()</a> - Set the response object</span></li>
    <li><span class="classname"><a href="class.yaf-response-abstract.php" class="classname">Yaf_Response_Abstract</a></span></li>
   </ul>
  </p>
 </div>


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