‪TYPO3CMS  9.5
Response.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
25  protected ‪$content;
26 
32  public function ‪setContent(‪$content)
33  {
34  $this->content = ‪$content;
35  }
36 
42  public function ‪appendContent(‪$content)
43  {
44  $this->content .= ‪$content;
45  }
46 
52  public function ‪getContent()
53  {
54  return ‪$this->content;
55  }
56 
62  public function ‪shutdown()
63  {
64  ‪$content = $this->‪getContent();
65  $this->‪setContent('');
66  return ‪$content;
67  }
68 
74  public function ‪__toString()
75  {
76  return $this->‪getContent();
77  }
78 }
‪TYPO3\CMS\Extbase\Mvc\Response\$content
‪string $content
Definition: Response.php:24
‪TYPO3\CMS\Extbase\Mvc\Response\shutdown
‪string shutdown()
Definition: Response.php:61
‪TYPO3\CMS\Extbase\Mvc\Response\getContent
‪string getContent()
Definition: Response.php:51
‪TYPO3\CMS\Extbase\Mvc\ResponseInterface
Definition: ResponseInterface.php:21
‪TYPO3\CMS\Extbase\Mvc\Response\__toString
‪string __toString()
Definition: Response.php:73
‪TYPO3\CMS\Extbase\Mvc
‪TYPO3\CMS\Extbase\Mvc\Response
Definition: Response.php:21
‪TYPO3\CMS\Extbase\Mvc\Response\appendContent
‪appendContent($content)
Definition: Response.php:41
‪TYPO3\CMS\Extbase\Mvc\Response\setContent
‪setContent($content)
Definition: Response.php:31