TYPO3 CMS  TYPO3_7-6
Content.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 
20 class Content
21 {
27  protected $uid = 0;
28 
34  protected $pageId = 0;
35 
41  protected $typoscript = [];
42 
49  public function setUid($uid)
50  {
51  $this->uid = (int)$uid;
52  }
53 
59  public function getUid()
60  {
61  return $this->uid;
62  }
63 
70  public function setPageId($pageId)
71  {
72  $this->pageId = (int)$pageId;
73  }
74 
80  public function getPageId()
81  {
82  return $this->pageId;
83  }
84 
91  public function setTyposcript(array $typoscript)
92  {
93  $this->typoscript = (array)$typoscript;
94  }
95 
101  public function getTyposcript()
102  {
103  return $this->typoscript;
104  }
105 }
setTyposcript(array $typoscript)
Definition: Content.php:91