Packages

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • NAppForm
  • NApplication
  • NCliRouter
  • NControl
  • NDownloadResponse
  • NForwardingResponse
  • NJsonResponse
  • NLink
  • NMultiRouter
  • NPresenter
  • NPresenterComponent
  • NPresenterLoader
  • NPresenterRequest
  • NRedirectingResponse
  • NRenderResponse
  • NRoute
  • NSimpleRouter

Interfaces

  • IPartiallyRenderable
  • IPresenter
  • IPresenterLoader
  • IPresenterResponse
  • IRenderable
  • IRouter
  • ISignalReceiver
  • IStatePersistent

Exceptions

  • NAbortException
  • NApplicationException
  • NBadRequestException
  • NBadSignalException
  • NForbiddenRequestException
  • NInvalidLinkException
  • NInvalidPresenterException
  • Overview
  • Package
  • Class
  • Tree
  • Other releases
 1: <?php
 2: 
 3: /**
 4:  * This file is part of the Nette Framework (https://nette.org)
 5:  *
 6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
 7:  *
 8:  * For the full copyright and license information, please view
 9:  * the file license.txt that was distributed with this source code.
10:  * @package Nette\Application
11:  */
12: 
13: 
14: 
15: /**
16:  * Rendering presenter response.
17:  *
18:  * @author     David Grudl
19:  * @package Nette\Application
20:  */
21: class NRenderResponse extends NObject implements IPresenterResponse
22: {
23:     /** @var mixed */
24:     private $source;
25: 
26: 
27: 
28:     /**
29:      * @param  mixed  renderable variable
30:      */
31:     public function __construct($source)
32:     {
33:         $this->source = $source;
34:     }
35: 
36: 
37: 
38:     /**
39:      * @return mixed
40:      */
41:     final public function getSource()
42:     {
43:         return $this->source;
44:     }
45: 
46: 
47: 
48:     /**
49:      * Sends response to output.
50:      * @return void
51:      */
52:     public function send()
53:     {
54:         if ($this->source instanceof ITemplate) {
55:             $this->source->render();
56: 
57:         } else {
58:             echo $this->source;
59:         }
60:     }
61: 
62: }
63: 
Nette Framework 0.9.7 (for PHP 5.2) API documentation generated by ApiGen 2.3.0