TYPO3 CMS  TYPO3_7-6
TtContent.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 {
27  protected $uid = '';
28 
34  protected $pid = '';
35 
39  protected $header;
40 
47  protected $image;
48 
52  public function __construct()
53  {
54  $this->image = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
55  }
56 
62  public function getUid()
63  {
64  return $this->uid;
65  }
66 
72  public function getPid()
73  {
74  return $this->pid;
75  }
76 
82  public function getHeader()
83  {
84  return $this->header;
85  }
86 
92  public function setHeader($header)
93  {
94  $this->header = $header;
95  }
96 
100  public function getImage()
101  {
102  return $this->image;
103  }
104 
108  public function setImage(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $image)
109  {
110  $this->image = $image;
111  }
112 
118  public function __toString()
119  {
120  return $this->getHeader();
121  }
122 }
setImage(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $image)
Definition: TtContent.php:108